Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239307
  • 博文数量: 51
  • 博客积分: 1065
  • 博客等级: 少尉
  • 技术积分: 556
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-11 14:50
文章分类

全部博文(51)

文章存档

2012年(1)

2011年(6)

2010年(39)

2008年(1)

2007年(4)

分类: LINUX

2007-01-11 14:52:19

ELDK交叉编译环境 & u-boot 1.1.4:  OS:FC4&FC6
 
[root@localhost u-boot-1.1.4]# arm-linux-gcc -v
Using built-in specs.
Target: arm-linux
Configured with: /opt/eldk/build/arm-2006-01-16/work/usr/src/denx/BUILD/crosstool-0.35/build/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/gcc-4.0.0/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux --with-headers=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux/include --with-local-prefix=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)
[root@localhost u-boot-1.1.4]#

[root@localhost u-boot-1.1.4]# make s3c2410_config
Configuring for s3c2410 board...
[root@localhost u-boot-1.1.4]# make all ARCH=arm
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c > .depend
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/tools'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/tools'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/tools'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/examples'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/opt/eldk/arm/usr/src/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes hello_world.c stubs.c  > .depend
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/examples'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/examples'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/examples'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/opt/eldk/arm/usr/src/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes cache_8xx.S cache.c codec.c cpu.c dsp.c ether.c i2c.c memory.c post.c rtc.c spr.c sysmon.c tests.c uart.c usb.c watchdog.c > .depend
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post/cpu'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/opt/eldk/arm/usr/src/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes asm.S cmp.c cmpi.c two.c twox.c three.c threex.c threei.c andi.c srawi.c rlwnm.c rlwinm.c rlwimi.c store.c load.c cr.c b.c multi.c string.c complex.c > .depend
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post/cpu'
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post/cpu'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c mkimage.c
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c crc32.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c envcrc.c
gcc -g  -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -c environment.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c gen_eth_addr.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/opt/eldk/arm/usr/src/u-boot-1.1.4/include/bmp_logo.h
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/tools'
make -C examples all
make[1]: Entering directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/examples'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/opt/eldk/arm/usr/src/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/opt/eldk/arm/usr/src/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
arm-linux-ar crv libstubs.a  stubs.o
a - stubs.o
make[1]: *** 没有规则可以创建“all”需要的目标“hello_world.srec”。 停止。
make[1]: Leaving directory `/opt/eldk/arm/usr/src/u-boot-1.1.4/examples'
make: *** [examples] 错误 2
 
 
arm-linux-gcc 2.95.3 & u-boot 1.1.4:
 
[root@localhost u-boot-1.1.4]# arm-linux-gcc -v
Reading specs from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
[root@localhost u-boot-1.1.4]# make s3c2410_config
Configuring for s3c2410 board...
[root@localhost u-boot-1.1.4]# make all ARCH=arm
make[1]: Entering directory `/root/embed/u-boot-1.1.4/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c > .depend
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/tools'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/tools'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/tools'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/examples'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/root/embed/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes hello_world.c stubs.c  > .depend
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/examples'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/examples'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/examples'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/post'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/root/embed/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes cache_8xx.S cache.c codec.c cpu.c dsp.c ether.c i2c.c memory.c post.c rtc.c spr.c sysmon.c tests.c uart.c usb.c watchdog.c > .depend
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/post'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/post'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/post'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/post/cpu'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/root/embed/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes asm.S cmp.c cmpi.c two.c twox.c three.c threex.c threei.c andi.c srawi.c rlwnm.c rlwinm.c rlwimi.c store.c load.c cr.c b.c multi.c string.c complex.c > .depend
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/post/cpu'
make[1]: Entering directory `/root/embed/u-boot-1.1.4/post/cpu'
make[1]: “.depend”是最新的。
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/post/cpu'
make -C tools all
make[1]: Entering directory `/root/embed/u-boot-1.1.4/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c mkimage.c
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c crc32.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c envcrc.c
gcc -g  -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -c environment.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c gen_eth_addr.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/root/embed/u-boot-1.1.4/include/bmp_logo.h
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/tools'
make -C examples all
make[1]: Entering directory `/root/embed/u-boot-1.1.4/examples'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/root/embed/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
cc1: Invalid option `abi=apcs-gnu'
make[1]: *** [hello_world.o] 错误 1
make[1]: Leaving directory `/root/embed/u-boot-1.1.4/examples'
make: *** [examples] 错误? 2
[root@localhost u-boot-1.1.4]#
阅读(2597) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~