主题 : 《嵌入式LINUX应用开发完全手册》+mini2440 交叉环境的搭建 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 2459
精华: 0
发帖: 21
金钱: 155 两
威望: 111 点
综合积分: 42 分
注册时间: 2008-11-18
最后登录: 2019-02-17
楼主  发表于: 2009-02-22 17:31

 《嵌入式LINUX应用开发完全手册》+mini2440 交叉环境的搭建

《嵌入式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重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-02-22 20:09
大哥, 说你为什么不行, 否则神仙也帮不了你.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 2459
精华: 0
发帖: 21
金钱: 155 两
威望: 111 点
综合积分: 42 分
注册时间: 2008-11-18
最后登录: 2019-02-17
2楼  发表于: 2009-02-22 20:50
不好意思啊
我刚刚改了一下,请大家再看看
Happy your life, healthy on the road...
级别: 新手上路
UID: 3725
精华: 0
发帖: 25
金钱: 260 两
威望: 260 点
综合积分: 50 分
注册时间: 2009-02-04
最后登录: 2009-05-06
3楼  发表于: 2009-02-23 12:50
楼主:

我也是用的mini2440,在你说的这个地方没有遇到问题。按照
说明书:#tar xvzf arm-linux-gcc-3.4.1.tgz -C /
而不是你所说的
手册中是#tar xvzf arm-linux-gcc-3.4.1.tgz -C

要看仔细咯
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-02-23 16:08
make: /home/dc/mini2440/OpenSourceBootloader/u-boot-1.1.6/mkconfig: Command not found

这和交叉编译环境没关系, 是你用的u-boot里面没有mkconfig这个脚本
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 2459
精华: 0
发帖: 21
金钱: 155 两
威望: 111 点
综合积分: 42 分
注册时间: 2008-11-18
最后登录: 2019-02-17
5楼  发表于: 2009-02-23 20:15
哦  谢谢啊
级别: 新手上路
UID: 2459
精华: 0
发帖: 21
金钱: 155 两
威望: 111 点
综合积分: 42 分
注册时间: 2008-11-18
最后登录: 2019-02-17
6楼  发表于: 2009-02-23 20:26

 回 3楼(alfie2009) 的帖子

你好啊!  你移植成功了吧
  请教你用的是光盘自带的源码吗?
  
Happy your life, healthy on the road...
级别: 新手上路
UID: 3725
精华: 0
发帖: 25
金钱: 260 两
威望: 260 点
综合积分: 50 分
注册时间: 2009-02-04
最后登录: 2009-05-06
7楼  发表于: 2009-02-24 18:17

 Re:回 3楼(alfie2009) 的帖子

引用第6楼ducha于2009-02-23 20:26发表的 回 3楼(alfie2009) 的帖子 :
你好啊!  你移植成功了吧
  请教你用的是光盘自带的源码吗?
  


用过光盘自带的源码,编译、使用都没有问题;
我现在用的是网上其它版本的。