天嵌 ARM开发社区

 找回密码
 注册
查看: 3988|回复: 4

uboot移植编译错误问题

[复制链接]
xinghun_4 发表于 2009-12-17 22:15:48 | 显示全部楼层 |阅读模式
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_generic/libgeneric.a(zlib.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_generic/libgeneric.a(zlib.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_generic/libgeneric.a(ctype.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_generic/libgeneric.a(ctype.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: board/tq2440/libtq2440.a(flash.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file board/tq2440/libtq2440.a(flash.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_arm/libarm.a(_ashldi3.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_arm/libarm.a(_ashldi3.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_arm/libarm.a(_ashrdi3.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_arm/libarm.a(_ashrdi3.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_arm/libarm.a(_divsi3.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_arm/libarm.a(_divsi3.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_arm/libarm.a(_modsi3.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_arm/libarm.a(_modsi3.o)
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: ERROR: lib_arm/libarm.a(_umodsi3.o) uses VFP instructions, whereas u-boot does not
/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-ld: failed to merge target specific data of file lib_arm/libarm.a(_umodsi3.o)
make: *** [u-boot] Error 1


弄了几天了,一直是这个错误,我无语了。。。
向高手请求帮助。
我用的编译器是tq公司光盘里的编译器。。。
Higig 发表于 2009-12-18 08:56:10 | 显示全部楼层
建议3.4.1编译器试试或者更低的编译器
 楼主| xinghun_4 发表于 2009-12-18 12:13:20 | 显示全部楼层
编译器问题很是麻烦啊,我还是用tq光盘里的编译器,不过下了uboot1.1.6,然后能ok。貌似对uboot1.2.0不是那么友好啊。。。
 楼主| xinghun_4 发表于 2009-12-18 22:36:29 | 显示全部楼层
现在出现了新问题,如果我把时钟设成和例程中的一样:
case 2:        //400
                key = 14;
                mpll_val = (92<<12)|(1<<4)|(1);
这样的话,控制台上什么输出都没有,一直停留在:
## Start application at 0x30000000 ...

如果我把时钟值改成其他的,出现乱码,然后自动复位,无语。。。

我考虑过了把波特率改了,但是板子上连接dnw默认的波特率为115200,改了波特率,那么我无法把bin文件下载到sdram中。。。

说明:
1.我用的编译器是tq公司光盘里的编译器/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/arm-linux-
2. 我在configs文件夹下头文件中加了:
#define CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_SKIP_RELOCATE_UBOOT
以便在sdram中运行。
zyp1986 发表于 2010-1-19 20:46:59 | 显示全部楼层
没有学到本质的东西!我只知道看说明下程序,真的很郁闷!离开说明书就弄不来了,哎。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-18 10:22 , Processed in 1.031250 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表