
19 Jun
2006
19 Jun
'06
12:30 p.m.
Hi Scut Paradise,
If you think you're going to get more help the more times you resend you message, you are probably wrong.
"陈洪宝" scut.paradise@gmail.com writes:
int board_init (void) { DECLARE_GLOBAL_DATA_PTR;
/* memory and cpu-speed are setup before relocation */ /* so we do _nothing_ here */
/* arch number of cerf PXA Board */ gd->bd->bi_arch_number = MACH_TYPE_XHYPER255;
/* adress of boot parameters */ gd->bd->bi_boot_params = 0xa0000100; return(0);
The fact that the "DECLARE_GLOBAL_DATA_PTR" is defined inside board_init indicates that you are not using top of the tree U-Boot. Please switch to current sourcen first of all. The DECLARE_GLOBAL_DATA_PTR statement needs to be defined globally due to gcc misbehaviour.
Regards
Markus Klotzbuecher