[U-Boot-Users] Howto reserve the first 64kB sector in the boot flash

Hi
I successfully adapted the Git-Version of U-Boot to our PPC405 board using the jse-board as an example.
Now my Linux kernel and our legacy vxWorks start up.
We use a 512kB 8-bit Boot-Flash 28F640 starting at 0xfff80000.
I had however reserved the first 64 kB of it for the vxWorks bootparameters, and evidently the U-boot version string is not a valid vxWorks boot parameter.
I tried to change CFG_FLASH_BASE from 0xFFF80000 to 0xFFFC0000 as the U-board code uses less than 3*64 kB. Then U-Boot starts up and after emitting "New Stack Pointer is: 01fa0b38" nothing happens.
The same behaviour results when I leave CFG_FLASH_BASE at 0xFFF80000 and set CFG_MONITOR_BASE CFG_FLASH_BASE + 0x10000.
Any hints how to reserve 64KB at 0xFFF80000 would be appreciated.
Thanks in advance.
Best regards

In message 200607291428.05648.niklaus.giger@member.fsf.org you wrote:
I tried to change CFG_FLASH_BASE from 0xFFF80000 to 0xFFFC0000 as the U-board code uses less than 3*64 kB.
And TEXT_BASE ?
Any hints how to reserve 64KB at 0xFFF80000 would be appreciated.
It should be no problem to move U-Boot to any address you like, but you must make sure to come up with a consistent configuration, i. e. take care that all addresses (like TEXT_BASE, CFG_FLASH_BASE, etc.) match.
Best regards,
Wolfgang Denk

Am Samstag, 29. Juli 2006 14:42 schrieb Wolfgang Denk:
In message 200607291428.05648.niklaus.giger@member.fsf.org you wrote:
I tried to change CFG_FLASH_BASE from 0xFFF80000 to 0xFFFC0000 as the U-board code uses less than 3*64 kB.
And TEXT_BASE ?
Any hints how to reserve 64KB at 0xFFF80000 would be appreciated.
It should be no problem to move U-Boot to any address you like, but you must make sure to come up with a consistent configuration, i. e. take care that all addresses (like TEXT_BASE, CFG_FLASH_BASE, etc.) match.
Thanks a lot for your tip. It solved my problem, once I discovered that besides the <board>.h also the config.mk had to be changed.
However I would suggest a small patch for the README, like this diff --git a/README b/README index e772c1a..b358161 100644 --- a/README +++ b/README @@ -1747,6 +1747,7 @@ Configuration Settings: make config files to be same as the text base address (TEXT_BASE) used when linking) - same as CFG_FLASH_BASE when booting from flash. + Note: TEXT_BASE is defined in the config.mk of each board
- CFG_MONITOR_LEN: Size of memory reserved for monitor code, used to
Best regards,
participants (2)
-
Niklaus Giger
-
Wolfgang Denk