Skip to contentSkip to conversation

Booting MPC8272ADS from flash base

U-Boot-Users alebas at televes.com 2 participants 3 messages Oct 17, 2005 – Oct 18, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 51DB8827D393D411BB69003048003F4601D96B83@tvesntr

#1 lore raw

Alex,

Again at work. I have some comment over those changes

Quoted 10 lines

For the record here is the change I needed to make to u-boot-1.1.3.

Index: board/mpc8260ads/config.mk
===================================================================
RCS file: /newcvs/pq2-linux/u-boot/board/mpc8260ads/config.mk,v retrieving revision 1.1.1.1
diff -u -r1.1.1.1 config.mk

mpc8260ads/config.mk line 32

Quoted 5 lines
mpc8260ads/config.mk +1 -1
@@ -29,4 +29,4 @@
 # MPC8260ADS, MPC8266ADS, and PQ2FADS-ZU/VR boards
 #
 
-TEXT_BASE = 0xfff00000
+TEXT_BASE = 0xff800000

Are you sure you are using u-boot-1.1.3?
Patch from Jerry Van Baren already made some changes to this file to allow the use of a different TEXT__BASE for lowboot in MPC8272ADS selecting it from Makefile config target.
I have this changes already applied in 1.1.3.

Quoted 12 lines

Index: include/configs/MPC8260ADS.h
===================================================================
RCS file: /newcvs/pq2-linux/u-boot/include/configs/MPC8260ADS.h,v retrieving revision 1.1.1.1
diff -u -r1.1.1.1 MPC8260ADS.h

configs/MPC8260ADS.h +1 -0
@@ -294,13 +294,8 @@
 #define CFG_GBL_DATA_OFFSET	(CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
 #define CFG_INIT_SP_OFFSET	CFG_GBL_DATA_OFFSET
 
+#define CFG_HRCW_MASTER 0x0e72b605   /* like BCSR version, but with CIP=1,
Quoted 1 line

BMS=1 */

In order lowboot patch from Jerry to work (which has been applied to u-boot source, so I recommned you to use) in MPC8272ADS, ISB must also be ISB=100, not ISB=010 as in BCSR.

Also, from MPC8272RM, bits 20-21 are reserved and should be cleared. So, LBPC=00, although 01 works.

And finally a question. You use MODCK_H = 0101 whereas I use in my patch MODCK_H=1010, while trying to set MODCK to 1010_100. Am I mis-understanding something?

Best regards,

Alex Bastos

#2 lore raw
Quoted 18 lines · On Mon, 17 Oct 2005 12:29:45 +0200 alebas at televes.com wrote:

Alex,

Again at work. I have some comment over those changes

Quoted 14 lines

For the record here is the change I needed to make to u-boot-1.1.3.

Index: board/mpc8260ads/config.mk
=================================================================
== RCS file: /newcvs/pq2-linux/u-boot/board/mpc8260ads/config.mk,v retrieving revision 1.1.1.1
diff -u -r1.1.1.1 config.mk

mpc8260ads/config.mk +0 -0
@@ -29,4 +29,4 @@
 # MPC8260ADS, MPC8266ADS, and PQ2FADS-ZU/VR boards
 #
 
Quoted 9 lines

mpc8260ads/config.mk line 32

Quoted 2 lines
mpc8260ads/config.mk +1 -1
-TEXT_BASE = 0xfff00000
+TEXT_BASE = 0xff800000

Are you sure you are using u-boot-1.1.3?
Patch from Jerry Van Baren already made some changes to this file to allow the use of a different TEXT__BASE for lowboot in MPC8272ADS selecting it from Makefile config target.
I have this changes already applied in 1.1.3.

I am using u-boot-1.1.3 from Denx ELDK 3.1.1. There is lowboot support in the top level Makefile - but not for any of the 82xx ADS platforms.

Quoted 11 lines
Quoted 11 lines

Index: include/configs/MPC8260ADS.h
=================================================================
== RCS file:
/newcvs/pq2-linux/u-boot/include/configs/MPC8260ADS.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 MPC8260ADS.h
--- include/configs/MPC8260ADS.h 24 Aug 2005 12:17:01 -0000
1.1.1.1+++ include/configs/MPC8260ADS.h 14 Oct 2005 08:36:46 -0000

mpc8260ads/config.mk +0 -0
@@ -294,13 +294,8 @@
 #define CFG_GBL_DATA_OFFSET	(CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
 #define CFG_INIT_SP_OFFSET	CFG_GBL_DATA_OFFSET
 
Quoted 8 lines
Quoted 2 lines
mpc8260ads/config.mk +1 -0
+#define CFG_HRCW_MASTER 0x0e72b605   /* like BCSR version, but

with CIP=1, BMS=1 */

In order lowboot patch from Jerry to work (which has been applied to u-boot source, so I recommned you to use) in MPC8272ADS, ISB must also be ISB=100, not ISB=010 as in BCSR.

I think either are fine, as they result in an internal register space that doesn't conflict with the boot code (which is initially mapped by the CPU to 0x0...0x01ffffff). The startup assembly code remaps it anyway.

Quoted 2 lines

Also, from MPC8272RM, bits 20-21 are reserved and should be cleared. So, LBPC=00, although 01 works.

I used 01 because this is what the MPC8272ADS User Manual says the BCSR delivers in this field. But you are right - this does seem to contradict MPC8272RM. I've changed this now to 00.

Quoted 5 lines

And finally a question. You use MODCK_H = 0101 whereas I use in my patch MODCK_H=1010, while trying to set MODCK to 1010_100. Am I mis-understanding something?

You are right. I was overclocking my MPC8272. It has max ratings of 400/200/100 and I had it going at 450/200/100. My new HRCW is:

	0x0e72b20a
Quoted 4 lines

Best regards,

Alex Bastos

Thanks,

Alex Zeffertt

#3 lore raw
Quoted 50 lines
Quoted 13 lines
Quoted 13 lines

Index: board/mpc8260ads/config.mk
=================================================================
== RCS file: /newcvs/pq2-linux/u-boot/board/mpc8260ads/config.mk,v retrieving revision 1.1.1.1
diff -u -r1.1.1.1 config.mk

mpc8260ads/config.mk +0 -0
@@ -29,4 +29,4 @@
 # MPC8260ADS, MPC8266ADS, and PQ2FADS-ZU/VR boards
 #
 
Quoted 9 lines

mpc8260ads/config.mk line 32

Quoted 2 lines
mpc8260ads/config.mk +1 -1
-TEXT_BASE = 0xfff00000
+TEXT_BASE = 0xff800000

Are you sure you are using u-boot-1.1.3?
Patch from Jerry Van Baren already made some changes to this file to allow the use of a different TEXT__BASE for lowboot in MPC8272ADS selecting it from Makefile config target.
I have this changes already applied in 1.1.3.

I am using u-boot-1.1.3 from Denx ELDK 3.1.1. There is lowboot support in the top level Makefile - but not for any of the 82xx ADS platforms.

Quoted 11 lines
Quoted 11 lines

Index: include/configs/MPC8260ADS.h
=================================================================
== RCS file:
/newcvs/pq2-linux/u-boot/include/configs/MPC8260ADS.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 MPC8260ADS.h
--- include/configs/MPC8260ADS.h 24 Aug 2005 12:17:01 -0000
1.1.1.1+++ include/configs/MPC8260ADS.h 14 Oct 2005 08:36:46 -0000

mpc8260ads/config.mk +0 -0
@@ -294,13 +294,8 @@
 #define CFG_GBL_DATA_OFFSET	(CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
 #define CFG_INIT_SP_OFFSET	CFG_GBL_DATA_OFFSET
 
Quoted 8 lines
Quoted 2 lines
mpc8260ads/config.mk +1 -0
+#define CFG_HRCW_MASTER 0x0e72b605   /* like BCSR version, but

with CIP=1, BMS=1 */

In order lowboot patch from Jerry to work (which has been applied to u-boot source, so I recommned you to use) in MPC8272ADS, ISB must also be ISB=100, not ISB=010 as in BCSR.

Quoted 5 lines

I think either are fine, as they result in an internal register space that doesn't conflict with the boot code (which is initially mapped by the CPU to 0x0...0x01ffffff). The startup assembly code remaps it anyway.

ISB=100 is needed when you use the MPC8272ADS_lowboot_config target which is in the u-boot-1.1.3 branch at CVS. Jerry's patch has been applied there and you can find many other differences.

When using this, it assumes as the initial IMMR 0xF0000000 (so ISB=100) as this is the value expected by Linux kernel. When using BCSR, u-boot has to change it from 0x0F000000 to 0xF0000000. So if we have the control of HRCW, why don't do things in the simpliest way. :-)

See enclosed Jerry's patch applied 04-November-2004

Best regard,

Alex Bastos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: APPLIED_1.1.3-20041104_lowboot.patch
Type: text/x-diff
Size: 4830 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20051018/94cd97c5/attachment.patch