您的位置:首页 > 其它

成功解决u-boot编译过程中"uses hardware FP whereas u-boot uses software FP"

2010-04-08 13:33 555 查看
u-boot version :2010.3

arm-linux-gcc version:4.3.2

problem :.....uses hardware FP whereas u-boot uses software FP...........

analysis :This error message means gcc uses hardware method in FP(Floating Point) while u-boot uses software.So what we

should do is to change one of them.

solution :edit cpu/arm920t/config.mk

change PLATFORM_RELFLAGS+=-fno-common -ffixed-r8 -msoft-float

into

change PLATFORM_RELFLAGS+=-fno-common -ffixed-r8 -mhard-float

以上解决方案是我在应用时遇到的,在网上进行了相关搜索,很多网友说直接将上面加了颜色的部分去掉。但是,经过验证,该方法是无济于事的。

我想既然由于浮点数实现不一致,我们可以该u-boot里面的嘛。这么改之后发现确实可行,希望能帮助遇到同样问题的人。

我是一个学生,希望结识更多自学能力强,而且对嵌入式很有兴趣的同仁。有意请加:717107705.

祝好运!

以上可以随便转载~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐