原本编译器是arm-linux-3.4.1
下载uboot1.1.6后编译出错,网上说因为编译器不支持softfloat
lib_arm/libarm.a(_udivsi3.o)(.text+0x8c):/home/gongh/2440/u-boot-1.1.6/lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
lib_arm/libarm.a(_umodsi3.o)(.text+0xa8):/home/gongh/2440/u-boot-1.1.6/lib_arm/_umodsi3.S:79: relocation truncated to fit: R_ARM_PLT32 __div0
make: *** [u-boot] Error 1
下 载busybox1.12.1后编译出错,一般我都是哪个命令出错就去掉哪个命令,有inotifyd,taskset,然后是 networking/interface.c出错,网络功能不能去掉,所以这个必须要编译过,这时我脑子是呆的,把uboot的softfloat对应 到了busybox编译不过,所以我打算做一个交叉编译工具
networking/interface.c:818: error: `ARPHRD_INFINIBAND' undeclared here (not in a function)
networking/interface.c:818: error: initializer element is not constant
networking/interface.c:818: error: (near initialization for `ib_hwtype.type')
networking/interface.c:818: error: `ARPHRD_INFINIBAND' undeclared here (not in a function)
networking/interface.c:818: error: initializer element is not constant
networking/interface.c:818: error: (near initialization for `ib_hwtype.type')
下载crosstool-0.43
http://kegel.com/crosstool/crosstool-0.43.tar.gz
1>用非root用户登录,如果以root登录会提示这样太危险
2>建立目录/opt/crosstool,修改属性,编译时会建立这个目录,需要有权限
sudo mkdir / opt/ crosstool
sudo chown $ USER / opt/ crosstool
3>./demo-arm-softfloat.sh,下载需要的源码并编译,虚拟机花了100分钟
然后用新的编译器gcc-3.4.5-glibc-2.3.6编译busybox的network就通过了,uboot1.1.6也通过了
下载uboot1.1.6后编译出错,网上说因为编译器不支持softfloat
lib_arm/libarm.a(_udivsi3.o)(.text+0x8c):/home/gongh/2440/u-boot-1.1.6/lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
lib_arm/libarm.a(_umodsi3.o)(.text+0xa8):/home/gongh/2440/u-boot-1.1.6/lib_arm/_umodsi3.S:79: relocation truncated to fit: R_ARM_PLT32 __div0
make: *** [u-boot] Error 1
下 载busybox1.12.1后编译出错,一般我都是哪个命令出错就去掉哪个命令,有inotifyd,taskset,然后是 networking/interface.c出错,网络功能不能去掉,所以这个必须要编译过,这时我脑子是呆的,把uboot的softfloat对应 到了busybox编译不过,所以我打算做一个交叉编译工具
networking/interface.c:818: error: `ARPHRD_INFINIBAND' undeclared here (not in a function)
networking/interface.c:818: error: initializer element is not constant
networking/interface.c:818: error: (near initialization for `ib_hwtype.type')
networking/interface.c:818: error: `ARPHRD_INFINIBAND' undeclared here (not in a function)
networking/interface.c:818: error: initializer element is not constant
networking/interface.c:818: error: (near initialization for `ib_hwtype.type')
下载crosstool-0.43
http://kegel.com/crosstool/crosstool-0.43.tar.gz
1>用非root用户登录,如果以root登录会提示这样太危险
2>建立目录/opt/crosstool,修改属性,编译时会建立这个目录,需要有权限
sudo mkdir / opt/ crosstool
sudo chown $ USER / opt/ crosstool
3>./demo-arm-softfloat.sh,下载需要的源码并编译,虚拟机花了100分钟
然后用新的编译器gcc-3.4.5-glibc-2.3.6编译busybox的network就通过了,uboot1.1.6也通过了