《嵌入式LINUX应用开发完全手册》+mini2440 交叉环境的搭建
我一开始使用《嵌入式LINUX应用开发完全手册》中的方法建立了交叉环境,
$ arm-linux-gcc -v
Reading specs from /home/dc/work/tools/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/specs
Configured with: /work/tools/create_crosstools/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/work/tools/gcc-3.4.5-glibc-2.3.6 --with-float=soft --with-headers=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux/include --with-local-prefix=/work/tools/gcc-3.4.5-glibc-2.3.6/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 3.4.5
说是
3.4.5的
但是我今天试着编译友善光盘中的
u-boot-1.1.6-FA24x0.tar.gz
但报错不知为什么?
看了手册7.3.1节中:
(注意:要编译U-Boot 请使用光盘带的arm-linux-gcc-
3.4.1 编译器,这是带有浮点处理功能的编译器。U-Boot 源代码包位于光盘的/OpenSourceBootloader 目录中
) 所以我将arm-linux-gcc-3.4.1.tgz解压,目录为home/dc/mini2440/l
#tar xvzf arm-linux-gcc-3.4.1.tgz (手册中是#tar xvzf arm-linux-gcc-3.4.1.tgz
-C,但我试了不行)
然后添加PATH
我的environent文件内容是
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dc/work/tools/gcc-3.4.5-glibc-2.3.6/bin
:/home/dc/mini2440/l/usr/local/arm/3.4.1/bin"
我回到U-BOOT 的目录
在makefile中有:
open24x0_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t open24x0 NULL s3c24x0还是不行
$ make open24x0_config
make: Warning: File `Makefile' has modification time 8.1e+02 s in the future
make: /home/dc/mini2440/OpenSourceBootloader/u-boot-1.1.6/mkconfig: Command not found
make: *** [open24x0_config] Error 127
$ make
make: Warning: File `Makefile' has modification time 8e+02 s in the future
System not configured - see README
make: *** [all] Error 1
也不行
大侠们看看我哪做错了
[ 此帖被ducha在2009-02-22 20:51重新编辑 ]