[U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD

Markus Klotzbücher mk at denx.de
Mon Jun 19 12:30:27 CEST 2006


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 at 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;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!!
> 			
> 	/* 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




More information about the U-Boot mailing list