[U-Boot-Users] u-boot relocate code for nand boot

梁洪飞 gyslhf at msn.com
Sat Jan 5 07:14:34 CET 2008


hi all:
         i'm new,i'm porting u-boot for s3c2410 base board . The u-boot relocate code
#ifndef CONFIG_SKIP_RELOCATE_UBOOT 
relocate:                      /* relocate U-Boot to RAM       */ 
       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 
       ldr   r2, _armboot_start 
       ldr   r3, _bss_start  
       sub  r2, r3, r2       /* r2 <- size of armboot            */ 
       add  r2, r0, r2       /* r2 <- source end address         */ 
copy_loop: 
…………….
#endif     /* CONFIG_SKIP_RELOCATE_UBOOT */ #ifndef CONFIG_SKIP_RELOCATE_UBOOT
 

Are these codes useful in the nand flash boot mode?
   best regards
   liang
 
_________________________________________________________________
MSN圣诞礼物火热登场,免费发放中,快来领取吧!
http://im.live.cn/emoticons/?ID=18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080105/cab0229b/attachment.htm 


More information about the U-Boot mailing list