[U-Boot-Users] re: error: invalid option `cpu=4kc

Philippe De Swert philippedeswert at scarlet.be
Mon Dec 13 10:45:24 CET 2004


Hi Jattin,

>I have following installed on my machine and want to develop a BPS for mips
>based board.
> 
> - eldk 3.1 mips-linux-x86
> - U-Boot 1.1.1
> 
> I have setup the path to the installed eldk bins and setup the export
>CROSS_COMPILE to
>mips_4KC-.
> 
> I wanted to ensure that everything is setup correctly, so tried building the
>mips based
>boards such as purple and tb0229. In each case I get the following compile
>error.
> 
> mips_4KC-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000
>-I/home/jdudakia/u-boot-1.1.1/include -fno-builtin -ffreestanding -nostdinc
>-isystem
>/opt/eldk3.1/usr/bin/../lib/gcc-lib/mips-linux/3.3.3/include -pipe 
>-DCONFIG_MIPS -D__MIPS__
>-mcpu=4kc -EB -mabicalls -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
> cc1: error: invalid option `cpu=4kc"
> make[1]: *** [stubs.o] Error 1
> make[1]: Leaving directory `/home/jdudakia/u-boot-1.1.1/examples"
> make: *** [examples] Error 2

Your setup is ok. In newer toolchains (I believe it is actually in binutils,
but I don't know which version causes this) the mcpu=4kc option does not exist
anymore. You have to use -march=...  --mtune=...

See this for more info:

http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/MIPS-Options.html#MIPS%20Options
 
The relevant file you have to edit is cpu/mips/config.mk.

Hope this helps.

Philippe
| Philippe De Swert -GNU/linux - uClinux freak-      
|      
| Stag developer http://stag.mind.be/  
| Emdebian developer: http://www.emdebian.org  
|   
| Please do not send me documents in a closed format. (*.doc,*.xls,*.ppt)    
| Use the open alternatives. (*.pdf,*.ps,*.html,*.txt)    
| Why? http://pallieter.is-a-geek.org:7832/~johan/word/english/    





-------------------------------------------------------
NOTE! My email address is changing to ... @scarlet.be
Please make the necessary changes in your address book. 







More information about the U-Boot mailing list