* Value of .bootpg and TEXT_BASE for ppc440 in U-Boot
@ 2009-11-18 6:13 Mihir Punjabi
0 siblings, 0 replies; only message in thread
From: Mihir Punjabi @ 2009-11-18 6:13 UTC (permalink / raw)
To: u-boot, linuxppc-dev, Linuxppc-embedded; +Cc: mihir124
Hi,
I am currently trying to port U-Boot onto a board with PPC440x5. My board has 16MB of flash whose base address is 0xFC000000.
I have set ".bootpg" in u-boot.lds to 0xFCFFF000 (End of Flash - 4 KB) and "TEXT_BASE" in config.mk to 0xFCF80000 (End of Flash - 512 KB). I obtained an error saying "Not enough room for program headers (allocated 3, need 4)"
I get the above error even if I set ".bootpg" to 0xFCF80000 (End of Flash - 512 KB) & "TEXT_BASE" to 0xFCF00000 (End of Flash - 1 MB) - I know these are high values, but just wanted to ensure that enough space is available.
But, I still got the same error.
Can someone tell me what the problem here is? Is my understanding that ".bootpg" should be at a value (End of Flash - 4 KB) wrong?
Further, I harcoded the "SIZEOF_HEADERS" in u-boot.lds to 1024, reverted ".bootpg" to 0xFCFFF000 & "TEXT_BASE" to 0xFCF80000.
I obtained the following error:
cpu/ppc4xx/resetvec.o:(.resetvec+0x0): relocation truncated to fit: R_PPC_REL24 against symbol `_start_440' defined in .bootpg section in cpu/ppc4xx/start.o
Please let me know what exactly should .bootpg & TEXT_BASE be set to?
I am suspecting these 2 values because my code compiles successfully if I:
1) Set TEXT_BASE to 0xFFFC0000
2) Remove the hardcoding of "SIZEOF_HEADERS" &
3) Set .bootpg to 0xFFFFF000 (set by all ppc440 boards)
Thanks and Regards,
Mihir Punjabi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-18 6:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 6:13 Value of .bootpg and TEXT_BASE for ppc440 in U-Boot Mihir Punjabi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox