原本编译器是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也通过了
5 条评论:
Hello, Neat post. There is an issue with your website in internet explorer, may test this?
IE still is the market leader and a large portion of other folks will omit your magnificent
writing due to this problem.
Also visit my blog post ... professional appliance repair Odessa Florida
I blog often and I truly appreciate your content.
The article has truly peaked my interest. I'm going to bookmark your site and keep checking for new details about once a week. I subscribed to your RSS feed as well.
Take a look at my blog post; expert appliance repair Safety Harbor area FL
It's really a nice and useful piece of information. I am glad that you just shared this helpful info with us. Please stay us informed like this. Thank you for sharing.
Feel free to surf to my website ... appliance repair Clearwater FL
We are a bunch of volunteers and starting a new
scheme in our community. Your site offered us with useful info to work on.
You have done a formidable activity and our whole group will be grateful
to you.
Here is my weblog; att web meeting
Hi to all, the contents existing at this site are truly amazing for people knowledge, well,
keep up the good work fellows.
Feel free to visit my homepage: Appliance Repair Largo
发表评论