
Dear Trent Piepho,
In message Pine.LNX.4.64.0810131647450.3399@t2.domain.actdsltmp you wrote:
U-Boot should *never* assume static flash bank sizes. The whole design is based on the idea to automatically determine the actual size of flash and RAM that is fit on a specific board, and to auto-adjust for this.
The bank size here is only used for linking u-boot. The actual u-boot code is no different that it is now.
How is this expected to work if the flash bank size used to link the u-boot image is different from the real flash bank size present on the board?
In order to boot on mpc85xx, the u-boot image must be linked to locate the boot page as the last page in the flash bank. There is no way to do this at run time, it's the boot page. All existing 85xx platforms hard code the location of the boot page in the u-boot image one way or another. I'm just changing the linker script to do it in a way where the same script will work on all 85xx boards.
But in the patch you submit you hard-wire certain flash bank sizes into the linker scriopts, don't you?
Best regards,
Wolfgang Denk