[问题]构造ARM+uclinux时的问题,帮忙看看阿。

内核编译和嵌入式产品的设计与开发
回复
hhttee
帖子: 16
注册时间: 2007-01-22 17:12
送出感谢: 0
接收感谢: 0

[问题]构造ARM+uclinux时的问题,帮忙看看阿。

#1

帖子 hhttee » 2007-03-17 16:41

由于毕业设计需要和本身兴趣,要构造ARM+uclinux,在本机上安装了www.uclinux.org上下的arm-elf-tools,
然后arm-elf-gcc-v,显示如下
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)

但是在编译内核时显示
tangzichao@My-Computer:~/uClinux-dist$ make
make -C tools/ucfront
make[1]: Entering directory `/home/tangzichao/uClinux-dist/tools/ucfront'
cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront ucfront.c args.c util.c execute.c
cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront-ld ucfront-ld.c args.c util.c exec ute.c
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/tools/ucfront'
ln -sf /home/tangzichao/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc
ln -sf /home/tangzichao/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++
ln -sf /home/tangzichao/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld
make -C tools/sg-cksum
make[1]: Entering directory `/home/tangzichao/uClinux-dist/tools/sg-cksum'
cc -Werror -Wall -DHAVE_MKSTEMP -o cksum cksum.c crc.c print.c sum1.c sum2.c crc 32.c
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/tools/sg-cksum'
ln -sf /home/tangzichao/uClinux-dist/tools/sg-cksum/cksum tools/cksum
make ARCH=arm CROSS_COMPILE=arm-linux- -j4 -C linux-2.6.x || exit 1
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
scripts/kconfig/conf -s arch/arm/Kconfig
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c44b0x
SYMLINK include/asm -> include/asm-arm
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: arm-linux-gcc: command not found
make[3]: *** [scripts/mod/empty.o] 错误 127
make[2]: *** [scripts/mod] 错误 2
make[1]: *** [scripts] 错误 2
make[1]: *** 正在等待未完成的任务....
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
make: *** [linux] 错误 1


为什么会显示ARM-ELF-GCC:COMMAND NOT FIND 啊?
难道是环境变量没设置好,如果是没设置好那为什么arm-elf-gcc-v能出来东西呢?如果是环境变量问题那该怎么设置呢?

麻烦各位大大了,本人初学,很多地方不懂
bass339
帖子: 9
注册时间: 2006-11-11 18:26
送出感谢: 0
接收感谢: 0

#2

帖子 bass339 » 2007-03-17 21:23

应该是交叉编译工具路径没弄好,
要不在makefile中设绝对路径,要不加到变量中去
chenhuafei
帖子: 1
注册时间: 2007-03-22 21:07
送出感谢: 0
接收感谢: 0

[报到]

#3

帖子 chenhuafei » 2007-03-22 21:14

bin/sh: arm-linux-gcc: command not found

而你装的是arm-elf-gcc ,自然不成了,
楼上的说得对,应该是哪里的变量没有设对,但我也不知道怎么改,
当然你可以下个 arm-linux-gcc,就行了ftp://ftp.arm.linux.org.uk/pub/armlinux/有下
netfarming
帖子: 2
注册时间: 2007-04-26 20:13
送出感谢: 0
接收感谢: 0

#4

帖子 netfarming » 2007-04-29 21:17

对于arm-linux-gcc:命令未找到
可以命令 ln -s arm-elf-gcc arm-linux-gcc

不过uc2007也许太新了,我也是了无数次,不成功,
需要升级编译器,
但是 arm-elf-gcc是针对没有mmu的arm7,

找了很久,没找到新的,看来得自己动手
回复

回到 “内核及嵌入式开发”