LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2006, 11:00 PM   #1
jackliu1019
LQ Newbie
 
Registered: Apr 2006
Location: China
Posts: 3

Rep: Reputation: 0
Question A question about compiling u-boot


Hi All:
I am trying to compile xsbase255 module in u-boot1.1.4, first,I enter "make xsbase255_config",it works well, then I enter "make" to compile, but I get the following output.

code:
make[1]: Entering directory `/home/jackliu/u-boot-1.1.4/tools'
make[1]: “.depend”是最新的 /*.depend is latest*/
make[1]: Leaving directory `/home/jackliu/u-boot-1.1.4/tools'
make[1]: Entering directory `/home/jackliu/u-boot-1.1.4/examples'
make[1]: “.depend”是最新的 /*.depend is latest*/
make[1]: Leaving directory `/home/jackliu/u-boot-1.1.4/examples'
make[1]: Entering directory `/home/jackliu/u-boot-1.1.4/post'
make[1]: “.depend”是最新的 /*.depend is latest*/
make[1]: Leaving directory `/home/jackliu/u-boot-1.1.4/post'
make[1]: Entering directory `/home/jackliu/u-boot-1.1.4/post/cpu'
make[1]: “.depend”是最新的 /*.depend is latest*/
make[1]: Leaving directory `/home/jackliu/u-boot-1.1.4/post/cpu'
make -C tools all
make[1]: Entering directory `/home/jackliu/u-boot-1.1.4/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c mkimage.c
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c crc32.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c envcrc.c
gcc -g -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -c environment.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c gen_eth_addr.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/jackliu/u-boot-1.1.4/include/bmp_logo.h
make[1]: Leaving directory `/home/jackliu/u-boot-1.1.4/tools'
make -C examples all
make[1]: Entering directory `/home/jackliu/u-boot-1.1.4/examples'
/usr/local/hybus-arm-linux-R1.1/bin/arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0xa3080000 -I/home/jackliu/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/hybus-arm-linux-R1.1/lib/gcc-lib/arm-linux/2.95.3/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv5 -mtune=xscale -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
cc1: Invalid option `abi=apcs-gnu'
cc1: bad value (xscale) for -mtune= switch
cc1: bad value (armv5) for -march= switch
make[1]: *** [hello_world.o] error 1
make[1]: Leaving directory `/home/jackliu/u-boot-1.1.4/examples'
make: *** [examples] error 2

Gcc version is 2.95.3, and the kernel version is 2.6.12-9-386
Could you help me? Thanks a lot!
 
Old 04-13-2006, 01:59 AM   #2
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Try a newer compiler, 2.95 is quite outdated.
 
Old 04-13-2006, 06:49 AM   #3
jackliu1019
LQ Newbie
 
Registered: Apr 2006
Location: China
Posts: 3

Original Poster
Rep: Reputation: 0
thank you for your help! the question has been handled by using the method.
 
Old 07-27-2006, 01:22 AM   #4
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
Hiii, jackliu

Can you please tell me what is the method you have used which has help you?? cos i m facing the same problem of mkimage command not found.... please tell me the method.

Thanks in advance,
Nishant Desai
 
Old 08-01-2006, 09:15 PM   #5
jackliu1019
LQ Newbie
 
Registered: Apr 2006
Location: China
Posts: 3

Original Poster
Rep: Reputation: 0
I used the cross compile tools ELDK4.0 to compile the u-boot1.1.4, and then I handled the question.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling question phil81 Linux - Software 5 06-02-2004 08:46 AM
g++ Compiling Question ErikJohnson Linux - General 9 04-01-2004 07:48 AM
compiling question glo Linux - Newbie 0 07-28-2003 10:50 AM
Compiling Question fotoguy Linux - Software 0 05-24-2003 04:41 AM
Compiling Question Bigun Linux - Software 2 01-03-2003 03:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration