[U-Boot-Users] Re: MPC5200 Lowboot config

Wolfgang Denk wd at denx.de
Wed Dec 3 23:47:54 CET 2003


In message <3FCDED20.12076.98E0C8 at localhost> you wrote:
> I'm having some trouble with the lowboot config on the MPC5200LITE.

You are right. There is a bug in this configuration.

> Since the u-boot image goes from FF000000 to FF035250, this would 

This is the problem. The U-Boot image should never get that big. It's a bug.

Please change this:

Index: include/configs/IceCube.h
===================================================================
RCS file: /cvsroot/u-boot/include/configs/IceCube.h,v
retrieving revision 1.15
diff -u -r1.15 IceCube.h
--- include/configs/IceCube.h	6 Nov 2003 23:08:11 -0000	1.15
+++ include/configs/IceCube.h	3 Dec 2003 22:44:09 -0000
@@ -206,7 +206,7 @@
 #   define CFG_RAMBOOT		1
 #endif
 
-#define CFG_MONITOR_LEN		(256 << 10)	/* Reserve 256 kB for Monitor	*/
+#define CFG_MONITOR_LEN		(192 << 10)	/* Reserve 192 kB for Monitor	*/
 #define CFG_MALLOC_LEN		(128 << 10)	/* Reserve 128 kB for malloc()	*/
 #define CFG_BOOTMAPSZ		(8 << 20)	/* Initial Memory map for Linux */
 

> When I write a virgin copy of u-boot to the flash, the addresses at FF0030000
> appear to hold something other than environment values.  After saveenv, they

Yes, there was a configuration error which caused the environment  to
get embedded instead of placed at the intended location.

> Is there a particular reason for having the ENV below the end of the u-boot 
> image?  Is there a better place to put it? Possibly the beginning of the next 
> sector (0xFF040000)

The location at 0x0xFF030000 is OK (as long as  U-Boot  doesn't  grow
much); just the configuration was wrong. Sorry.

Thanks for pointing this out!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Most legends have their basis in facts.
	-- Kirk, "And The Children Shall Lead", stardate 5029.5




More information about the U-Boot mailing list