免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 10663 | 回复: 25
打印 上一主题 下一主题

[嵌入式]求助:u-boot移植问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-19 23:26 |只看该作者 |正序浏览
在编译u-boot-1.1.6时出现下面的错误,是移植到samsung的s3c2410上去!
应该是makefile的问题,但不知道怎么改!高手能不能帮哈忙哦,今天搞了一天。谢个先!
[root@dglwx u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/root/embed/u-boot-1.1.6/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/tools'
make[1]: Entering directory `/root/embed/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/tools'
make[1]: Entering directory `/root/embed/u-boot-1.1.6/examples'
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/examples'
make[1]: Entering directory `/root/embed/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/examples'
make[1]: Entering directory `/root/embed/u-boot-1.1.6/post'
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/post'
make[1]: Entering directory `/root/embed/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/post'
make[1]: Entering directory `/root/embed/u-boot-1.1.6/post/cpu'
make[1]: *** 没有规则可以创建“.depend”需要的目标“asm.S”。 停止。
make[1]: Leaving directory `/root/embed/u-boot-1.1.6/post/cpu'
make: *** [depend] 错误 2

论坛徽章:
0
26 [报告]
发表于 2007-01-09 16:50 |只看该作者
u-boot 1.1.6用arm-linux-gcc 3.2 和3.0都可以通过啊,很容易啊.我做的sbc2410x的板子.
u-boot 1.1.6已经直接支持这个板子了!

论坛徽章:
0
25 [报告]
发表于 2007-01-08 09:51 |只看该作者
你试着把你解压的东西拷到prefix=路径
的下面和prefix那个相同的路径试试

论坛徽章:
0
24 [报告]
发表于 2007-01-06 11:41 |只看该作者
出现那个错误是不是因为make的版本过高? 在CSDN上看到有个帖友发的帖子,说他以前编译出错是因为make版本的原因.我看我们老师在Red hat linux 9下编译特别顺利.按照老师的步骤,我在FC4和FC6下编译都会出错.

论坛徽章:
0
23 [报告]
发表于 2007-01-05 21:15 |只看该作者
原帖由 Pacer 于 2007-1-5 13:38 发表
prefix=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux


那只是一个临时文件。 是我的eldk安装有问题还是我没配置好环境变量或是我在make时要带参数?

论坛徽章:
0
22 [报告]
发表于 2007-01-05 13:38 |只看该作者
prefix=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux

论坛徽章:
0
21 [报告]
发表于 2007-01-05 11:59 |只看该作者
[root@localhost u-boot-1.1.4]# arm-linux-gcc -v
Using built-in specs.
Target: arm-linux
Configured with: /opt/eldk/build/arm-2006-01-16/work/usr/src/denx/BUILD/crosstool-0.35/build/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/gcc-4.0.0/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux --with-headers=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux/include --with-local-prefix=/var/tmp/eldk.2XRo76/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/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 4.0.0 (DENX ELDK 4.0 4.0.0)
[root@localhost u-boot-1.1.4]#

论坛徽章:
0
20 [报告]
发表于 2007-01-05 11:58 |只看该作者
这个我也测试了的,一切正常!
今天一大清早我又编译了一遍,使用ELDK,还是出现那个问题!

论坛徽章:
0
19 [报告]
发表于 2007-01-05 10:06 |只看该作者
你试下 arm-linux-gcc -v罢,我上次把这个忘了.arm-linux-gcc我也出现过此类问题.你可以参照一下,hope this helps.


Mon Dec 25 10:35:05 CST 2006

Solution of one error(one type of errors)

Description of the error:

The error such as "installation problem, cannot exec `cc1': No such file or
directory..." occured while you(I) was compiling something.

Solution:

This error's reason is an incorrectly path for the cross toolchain you
installed.So,the user(you) can perform the command "arm-elf-gcc -v" to make
a view of the compiler's version ,configuration-path and other info.

The messages outputed after I performed the command are showing below:

[root@BFD5BFD5 at91sam9260ek]# arm-elf-gcc -v
Reading specs from /srv/shared/gnuarm/gnuarm-3.4.3/lib/gcc/arm-elf/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --target=arm-elf
--prefix=/srv/shared/gnuarm/gnuarm-3.4.3 --enable-interwork --enable-multilib
--with-newlib --with-headers=../newlib-1.12.0/newlib/libc/include
--enable-languages=c,c++,java --disable-libgcj
Thread model: single
gcc version 3.4.3

You can find the first line over this message.So,the ancient path which
configured by www.gnuarm.com is /srv/shared/gnuarm,but not in the default
position as /usr/local/arm.

So,do those serveral steps showing below:

     > mkdir /srv/shared/gnuarm
     > mv (the directory you uncompressed the cross toolchain)/gnuarm-3.4.3 \
        /srv/shared/gnuarm
     And note,the last step is modify /etc/profile.Change environment variable
     PATH.En.... this one:
          PATH=$PATH:/srv/shared/gnuarm/gnuarm-3.4.3/bin
     save and quit.Then restart your Linux.All will be OK.

[ 本帖最后由 Pacer 于 2007-1-5 10:08 编辑 ]

论坛徽章:
0
18 [报告]
发表于 2007-01-04 23:25 |只看该作者
做了几次,绝望了,不过我换着使用eldk,有一次能够编译,并且生成了uboot.bin文件,但是在开始的时候,还是提示以前的错误,居然他能够继续编译.到现在不解!
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP