[U-Boot-Users] after relocate_code in board_init_r, it hang at operation with gd

zhuzhenhua zzh.hust at gmail.com
Wed Nov 16 02:49:28 CET 2005


i am porting u-boot for mips 4kec
first i set the cache write through, and then run into board_init_f,
it run correctly, and output
....
Top of RAM usable for U-Boot at: 84000000
Reserving 69k for U-Boot at: 83fec000
Reserving 192k for malloc() at: 83fbc000
Reserving 44 Bytes for Board Info at: 83fbbfd4
Reserving 36 Bytes for Global Data at: 83fbbfb0
Reserving 128k for boot params() at: 83f9bfb0
Stack Pointer at: 83f9bf98
...

and after relocate_code, it run into board_init_r, after the line
"gd = id"
, it hang on the cmd relocate
if i remove the cmd relocate, it hang on the line
"bd = gd->bd"

what's problem with gd?

t




More information about the U-Boot mailing list