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 setCFG_MONITOR_BASE CFG_FLASH_BASE + 0x10000.
Any hints how to reserve 64KB at 0xFFF80000 would be appreciated.
Thanks in advance.
Best regards
Signature · 1 line
Niklaus Giger
Quoted 3 lines · In message <[email protected]> you wrote:
I tried to change
CFG_FLASH_BASEfrom0xFFF80000to0xFFFC0000as the U-board code uses less than 3*64 kB.
And TEXT_BASE ?
Quoted 1 line
Any hints how to reserve 64KB at
0xFFF80000would 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
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You could end up being oddly sad and full of a strange, diffuse com-
passion which would lead you to believe that it might be a good idea
to wipe out the whole human race and start again with amoebas.
- Terry Pratchett, _Guards! Guards!_Am Samstag, 29. Juli 2006 14:42 schrieb Wolfgang Denk:
Quoted 4 lines
Quoted 2 lines · In message <[email protected]> you wrote:
I tried to change
CFG_FLASH_BASEfrom0xFFF80000to0xFFFC0000as the U-board code uses less than 3*64 kB.
Quoted 8 lines
And
TEXT_BASE?Quoted 1 line
Any hints how to reserve 64KB at
0xFFF80000would 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
README +1 -0
@@ -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,
Signature · 1 line
Niklaus Giger