[U-Boot] Compiling the latest u-boot-2009.06 with Cross-2.95, and errors came out

Johnson Yu johnson.yn83 at yahoo.co.uk
Mon Jun 29 08:40:36 CEST 2009


Hi Detlev Z,


Thanks for your suggestions, and after I upgraded the toolchain to v3.2, 
those problems went away.

However, new errors turned up as expected:

1) the invocations of U_BOOT_CMD in several .c files, common/cmd_bootm.c 
line 923, common/cmd_source.c line 232, common/cmd_ximg.c line 186 
terminated the make process for the "unterminated argument list invoking 
macro "U_BOOT_CMD" ", known as the "parse error". So, I set the last 
argument of U_BOOT_CMD marco to NULL, and then make went silent.

2) this error came at the linking stage:

  
"arm-linux-ld:/home/johnson-yn/GEARI/u-boot-2009.06/board/atmel/at91rm9200dk/u-boot.lds:40: 
parse error
make: *** [u-boot] Error 1"

and the line 40 of u-boot.lds is :

 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }

how should I solve this?


If I just don't need use NAND flash module in u-boot, what are the steps 
I should take??


Regards,

Johnson Yu



Detlev Zundel wrote:
> Hi Johnson Y,
>
>   
>> I met several compiling errors as below:
>>
>> make -C cpu/arm920t/at91rm9200/
>> make[1]: Entering directory 
>> `/home/johnson-yn/GEARI/u-boot-2009.06/cpu/arm920t/at91rm9200'
>> arm-linux-gcc: lowlevel_init.o: No such file or directory
>> arm-linux-gcc: unrecognized option `-MQ'
>>     
>
> [...]
>
>   
>> Is that possibly because of the version of the cross compiler?? and 
>> should I raise it to cross 3.2 or higher to solve this problem??
>>     
>
> The error message is clear - the U-Boot build uses an option which your
> compiler does not understand.  You have two ways of fixing this
>
> 1) upgrade your toolchain to a compiler understanding -MQ
> 2) "downgrade" the U-Boot buildprocess for your toolchain
>
> I advise 1) as 2) invests time into something you will need to abandon
> sometime anyhow.
>
> Cheers
>   Detlev
>
>   


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html



More information about the U-Boot mailing list