
In message 200604211401.00461.andre.schwarz@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.
Best regards,
Wolfgang Denk