主题 : 光盘上的u-boot-1.1.6就是不能编译 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 696
精华: 1
发帖: 7
金钱: 90 两
威望: 27 点
贡献值: 10 点
综合积分: 34 分
注册时间: 2008-05-14
最后登录: 2008-05-20
楼主  发表于: 2008-05-20 11:38

 光盘上的u-boot-1.1.6就是不能编译

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
 


#[root@friendlyarm u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/tools'
make[1]: Entering directory `/opt/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/examples'
make[1]: Entering directory `/opt/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/post'
make[1]: Entering directory `/opt/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/u-boot-1.1.6/tools'
make[1]: *** No rule to make target `/home/yf/arm-linux/u-boot-1.1.6/include/image.h', needed by `mkimage.o'.  Stop.
make[1]: Leaving directory `/opt/u-boot-1.1.6/tools'
make: *** [tools] Error 2

光盘上提供的u-boot-1.1.6就是不能编译  总出现上面的错误 
那位朋友帮忙看看撒 谢谢  我用的是arm-linux-gcc -3.3.2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-05-20 12:13
这是光盘上的u-boot-1.1.6源代码包的问题,友善之臂在发布的时候留了一大堆垃圾在里面:)

清理垃圾以及build u-boot的步骤应该是:
1.make distclean
2. make <board_type>_config
3. make all
"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: 2
精华: 17
发帖: 1655
金钱: 13860 两
威望: 5369 点
贡献值: 17 点
综合积分: 3650 分
注册时间: 2008-01-01
最后登录: 2024-02-17
2楼  发表于: 2008-05-23 10:43
学习一下
友善之臂淘宝直销店:http://shop34928758.taobao.com

手机:13560352861(杨工),QQ:10108270
会当凌绝顶,一览众山小!
级别: 总版主
UID: 2
精华: 17
发帖: 1655
金钱: 13860 两
威望: 5369 点
贡献值: 17 点
综合积分: 3650 分
注册时间: 2008-01-01
最后登录: 2024-02-17
3楼  发表于: 2008-05-23 10:44
学习一下
友善之臂淘宝直销店:http://shop34928758.taobao.com

手机:13560352861(杨工),QQ:10108270
级别: 新手上路
UID: 1222
精华: 0
发帖: 49
金钱: 490 两
威望: 391 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2008-08-04
最后登录: 2010-11-24
4楼  发表于: 2009-01-10 23:26
晕,
先看下MAKEFILE内容,不可以直接MAKE
MAKEFILE先通过MKCONFIG配置链接文件,临时文件
要先用命令make <board_name>_config
然后再make all
级别: 新手上路
UID: 13756
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
贡献值: 0 点
综合积分: 8 分
注册时间: 2010-01-28
最后登录: 2010-11-24
5楼  发表于: 2010-01-28 17:13
可以编译啊, 
先make distclean
再 make open24x0_confing
再make
,我试了,不过我的板子无输出,一点都没有输出.
linux 是個傳說
级别: 新手上路
UID: 13241
精华: 0
发帖: 15
金钱: 75 两
威望: 15 点
贡献值: 0 点
综合积分: 30 分
注册时间: 2010-01-20
最后登录: 2017-09-13
6楼  发表于: 2010-02-02 22:00
我试了还是编译不了啊
级别: 新手上路
UID: 13241
精华: 0
发帖: 15
金钱: 75 两
威望: 15 点
贡献值: 0 点
综合积分: 30 分
注册时间: 2010-01-20
最后登录: 2017-09-13
7楼  发表于: 2010-02-02 22:10
先make distclean
再 make open24x0_confing
再make
第一个提示的错误是
arm-linux-ld: ERROR: Source object /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivdi3.o) has EABI version 5, but target u-boot has EABI version 0
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2010-02-02 22:26

 回 7楼(zxuse) 的帖子

u-boot 1.1.6根本不知道什么叫EABI,不要用EABI的arm-linux-gcc 4.3.2来编译。
"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: 57818
精华: 0
发帖: 6
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 12 分
注册时间: 2011-10-30
最后登录: 2013-08-12
9楼  发表于: 2012-04-13 16:43
怎么没人来解决啊