[U-Boot-Users] precious boot sectors @ lowboot
wd at denx.de
Fri Apr 21 17:52:24 CEST 2006
In message <200604211401.00461.andre.schwarz at matrix-vision.de> you wrote:
> MPC5200 processor using low boot, i.e. reset vector @ 0x00000100.
> 8MB bottom boot sector flash with 8*8k sectors + 127*64k.
> u-boot startup code uses the first 2 sectors, followed by the 8k embedded
> environment @ 0x8000. After that follows the rest of u-boot code.
> It would be very fine if there would be a possibility to place the rest of
> u-boot code @ offset 0x10000, i.e. sector 8+.
Just do it, then. All you need to change is your linker script.
> I have modified "common/environment.c" with the attached patch, so there is a
> possibility to define "CFG_ENV_ADD_SPACE" which results in the above
> mentioned code offset. Of course "CFG_ENV_ADD_SPACE" must end on a sector
> boundary ....
Sorry, but I reject your patch. It makes IMHO no sense to modify a global source file when all you need to do is adjusting your linker script.
> Should I use u-boot.lds instead ?
Yes, of course.
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Premature optimization is the root of all evil. -- D.E. Knuth
More information about the U-Boot