免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: dglwx
打印 上一主题 下一主题

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

论坛徽章:
5
11 [报告]
发表于 2006-12-22 10:20 |只看该作者
很好解决的问题,被你弄这么复杂

论坛徽章:
0
12 [报告]
发表于 2006-12-22 16:29 |只看该作者
我重新编了一下,没有任何问题,另外有一个软/硬浮点的问题要注意.下面是它的解决办法:

  1. 11-27-2006 17:58 AT91SAMXXXX U-Boot编译成功,解问题为软浮点与硬浮点问题.所用交叉链为硬浮点,AT91所用U-Boot为软浮点,解决方法为注释掉/cpu/<cpu_name>/config.mk中的 -msoft-float选项.
  2. AT91SAMXXXX为arm926ejs系列也同样注释掉其目录中config.mk的CFLAGS选项.
复制代码

[ 本帖最后由 Pacer 于 2006-12-22 16:32 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2006-12-22 23:09 |只看该作者
为什么我的还是出现那个问题呢? 提示错误完全一样.
不过我还是想知道楼上所说的:软浮点和硬浮点分别指什么?能不能解释一下.3ks!

论坛徽章:
0
14 [报告]
发表于 2006-12-22 23:32 |只看该作者
原帖由 yidou 于 2006-12-22 10:20 发表
很好解决的问题,被你弄这么复杂


不知道我们怎么把问题搞复杂了,还需要yidou兄解释解释.
我的开发板是s3c2410.Linux内核用的是1.2.18.2,u-boot的版本应该不能很低.如果(万一)u-boot这个问题在短期内不能解决,我想换个bootloader,不知道大家有没有好的建议,还有没有别的选择?

论坛徽章:
0
15 [报告]
发表于 2006-12-25 15:13 |只看该作者
原帖由 dglwx 于 2006-12-22 23:09 发表
为什么我的还是出现那个问题呢? 提示错误完全一样.
不过我还是想知道楼上所说的:软浮点和硬浮点分别指什么?能不能解释一下.3ks!


也一样不懂软硬浮点,但是这个能查到(在Baidu可以直接输入软浮点然后第二个主题就可以看,Google比较吃力)。

论坛徽章:
0
16 [报告]
发表于 2006-12-29 20:32 |只看该作者
看了一下,不是那个问题,我下了个ELDK ,在那下面都能编译,我估计还是交叉编译工具的问题!

论坛徽章:
0
17 [报告]
发表于 2007-01-04 09:53 |只看该作者
编过去了吗?

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

论坛徽章:
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
20 [报告]
发表于 2007-01-05 11:58 |只看该作者
这个我也测试了的,一切正常!
今天一大清早我又编译了一遍,使用ELDK,还是出现那个问题!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP