[U-Boot-Users] What is u-boot relocation address?

Vladimir "Farcaller" Pouzanov farcaller at gmail.com
Mon Oct 16 18:09:31 CEST 2006


Vladimir "Farcaller" Pouzanov wrote:
> Is it ok that TEXT_BASE of 0x0 leads to crash? Also U-boot seems to follow
> TEXT_BASE value after relocation:

Now I'm completely confused...

CFG_MONITOR_BASE is u-boot startting location before relocation? 
CFG_FLASH_BASE is the same?
TEXT_BASE is... hm... (same as both constants above) 0x0? Doesn't work. And
shouldn't work:
        adr     r0, _start              /* r0 <- current position of code   */
        ldr     r1, _TEXT_BASE          /* test if we run from flash or RAM */
        cmp     r0, r1                  /* don't reloc during debug         */
        beq     stack_setup
_start == 0 so is _TEXT_BASE, result = no relocation and crash....

Please help :(

-- 
Sincerely,
Vladimir "Farcaller" Pouzanov
http://hackndev.com





More information about the U-Boot mailing list