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

来源:互联网 发布:数码管与单片机连接图 编辑:程序博客网 时间:2024/05/16 12:38

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.

        祝好运!

        以上可以随便转载~

原创粉丝点击