- 论坛徽章:
- 0
|
看crt0_gnu.S:
/* Branch on C code Main function (with interworking) */
_branch_main:
ldr r4, = main
mov lr, pc
bx r4
/* Branch to the application at the end of the bootstrap init */
_go:
ldr r1, =MACH_TYPE
mov lr, pc
bx r0 /*跳到Uboot*/
在main.c 中,把u-boot从dataflash 读入内存
main()
load_df(AT91C_SPI_PCS_DATAFLASH, IMG_ADDRESS, IMG_SIZE, JUMP_ADDR)
return JUMP_ADDR
在at91sam9260ek.h中已经定义了U-boot 在dataflash中的地址 和将读入到内存中的地址
#define JUMP_ADDR 0x23F00000 /* Final Jump Address
#define IMG_ADDRESS 0x8400 /* Image Address in Data
Flash */
#define IMG_SIZE 0x33900 /* Image Size in DataFla
sh */ |
评分
-
查看全部评分
|