主题 : mini2440自带的bootload/u-boot.1.1.6编译不过,请解决 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 24329
精华: 0
发帖: 14
金钱: 70 两
威望: 14 点
综合积分: 28 分
注册时间: 2010-07-06
最后登录: 2017-10-01
楼主  发表于: 2010-07-06 13:32

 mini2440自带的bootload/u-boot.1.1.6编译不过,请解决

我刚买了mini2440
用自带的bootload/u-boot.1.1.6
用mini2440光盘里的交叉编译器。

在Ubuntu 8.10是不是, 编译不过。
编译环境必须是fador?
这个Uboot的源码依赖存放的路径吗?
我看到一个错误是在编译hello_word.o  时,找不到/opt/frienfARM/mini2440/bootload/u-boot1.1.6/include/

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-07-06 15:19
我不知道你用的是什么时候的光盘,大部分情况下,这个u-boot是不支持新的128M NAND Flash的mini2440.
这里有别人已经移植好的u-boot, 适用于64M/128M/256M/1G NAND的mini2440:
http://www.aiothome.net/read.php?tid-3539.html

如果你还坚持要用光盘上的,最起码把完整的编译log贴出来(用make 2>&1 |tee build.log生成)
"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: 24329
精华: 0
发帖: 14
金钱: 70 两
威望: 14 点
综合积分: 28 分
注册时间: 2010-07-06
最后登录: 2017-10-01
2楼  发表于: 2010-07-06 16:33
这是出错内容:请分析一下:

for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/linux/bootloader/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/linux/bootloader/u-boot-1.1.6/tools'
make[1]: Entering directory `/home/linux/bootloader/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/linux/bootloader/u-boot-1.1.6/examples'
make[1]: Entering directory `/home/linux/bootloader/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/linux/bootloader/u-boot-1.1.6/post'
make[1]: Entering directory `/home/linux/bootloader/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/linux/bootloader/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/home/linux/bootloader/u-boot-1.1.6/tools'
make[1]: Leaving directory `/home/linux/bootloader/u-boot-1.1.6/tools'
make -C examples all
make[1]: Entering directory `/home/linux/bootloader/u-boot-1.1.6/examples'
make[1]: Leaving directory `/home/linux/bootloader/u-boot-1.1.6/examples'

make[1]: *** No rule to make target `/opt/FriendlyARM/mini2440/bootloader/u-
boot-1.1.6/include/common.h', needed by `hello_world.o'.  Stop.
make: *** [examples] Error 2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-07-06 16:54

 回 2楼(rushao) 的帖子

在make mini2440_config之前先make distclean一下,把以前生成的dependence关系清除掉
"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: 24329
精华: 0
发帖: 14
金钱: 70 两
威望: 14 点
综合积分: 28 分
注册时间: 2010-07-06
最后登录: 2017-10-01
4楼  发表于: 2010-07-06 21:45
问题解决。先执行一次,make distclean.
因为第一次拿到源码,残留以前的XX. o文件,和你当前的系统+编译器是不搭调的,所以出错。
清除掉再编译就好了。
级别: 新手上路
UID: 10245
精华: 0
发帖: 19
金钱: 110 两
威望: 31 点
综合积分: 38 分
注册时间: 2009-10-28
最后登录: 2013-01-30
5楼  发表于: 2010-07-09 15:21
楼主这是拿来主义,也不上网查查。硬邦邦地套上去,也不看小弟弟多大。
你先走吧,我在后面看看.