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

Niklaus Giger niklaus.giger at member.fsf.org
Sat Jul 29 18:31:42 CEST 2006


Am Samstag, 29. Juli 2006 14:42 schrieb Wolfgang Denk:
> In message <200607291428.05648.niklaus.giger at 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,

-- 
Niklaus Giger




More information about the U-Boot mailing list