public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: MPC5200 Lowboot config
Date: Wed, 03 Dec 2003 23:47:54 +0100	[thread overview]
Message-ID: <20031203224759.CD990C5F5F@atlas.denx.de> (raw)
In-Reply-To: Your message of "Wed, 03 Dec 2003 14:03:12 PST." <3FCDED20.12076.98E0C8@localhost>

In message <3FCDED20.12076.98E0C8@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

  reply	other threads:[~2003-12-03 22:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-14 19:09 [U-Boot-Users] Re: environment in flash not loaded Richard Klingler
2003-11-14 19:41 ` Nye Liu
2003-11-14 20:19   ` Wolfgang Denk
2003-11-14 22:02     ` Nye Liu
2003-11-20  2:10     ` 최광일
2003-11-20  8:12       ` Wolfgang Denk
2003-11-20 19:43         ` [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling Victor Wren
2003-11-20 19:56           ` Nye Liu
2003-11-20 20:44           ` Wolfgang Denk
2003-11-26 18:34             ` [U-Boot-Users] Help request, MPC5200 Lite, Monitor Victor Wren
2003-11-26 22:41               ` Wolfgang Denk
2003-12-03 22:03           ` [U-Boot-Users] Re: MPC5200 Lowboot config Victor Wren
2003-12-03 22:47             ` Wolfgang Denk [this message]
2003-12-04  0:57               ` Victor Wren
2003-12-04  8:41                 ` Wolfgang Denk
2003-12-04 23:09                   ` [U-Boot-Users] Re: MPC5200 build Victor Wren
2003-12-05  0:30                     ` Wolfgang Denk
2003-12-05 20:29                       ` Victor Wren
2003-12-05 20:59                         ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031203224759.CD990C5F5F@atlas.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox