From: Wolfgang Denk Date: Wed, 16 Apr 2003 22:46:53 +0200 Subject: [U-Boot-Users] IVT on 405GP In-Reply-To: Your message of "Wed, 16 Apr 2003 16:32:01 EDT." Message-ID: <20030416204658.C0641C58B9@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message you wrote: > > Thanks for the response. I think my problem may be the base uboot address. > The > address is 0x3fcf000. The mask is 3fff. If my uboot started on a nice 16 bit > address then the result would be 0(3fc0000 & 3fff) but I was getting > 0xf000(3fcf000 & 3fff). So I think that the fix is to move uboot down to > 0x3fc0000 or 0x3fc8000. I have warned often enough NOT to try to start U-Boot from RAM unless you know _EXACTLY_ what you are doing. You tried, and you failed. You kind of got what you deserved ;-) Put U-Boot in flash, and start it from the reset entry point like it was designed for, and everything will be fine. Actually I have to admit that I don't remember why the target address was computed using "& 3fff" instead of a hard-wired 0x100. I don't even remember where I got this code fragment from. A similar assumption is buried in the code relocation stuff - see llandre's problem when setting CFG_MONITOR_BASE to a value that was not a multiple of 16 k. We probably should get rid of this ASAP. 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 How does a project get to be a year late? ... One day at a time.