编译&更新busybox
来源:互联网 发布:丸户史明 知乎 编辑:程序博客网 时间:2024/05/20 01:10
测试速度时候需要使用time命令,现在使用的busybox没有提供,自己重新编译新的busybox。
1. 从www.busybox.net下载最新版本1.7.2;
2. 解压缩,进入目录;
3. 执行"make menuconfig"发现默认大多数cmd都选中了,就按照默认的来编译吧,除了
miscutil->taskset
导致错误miscutils/taskset.c:17: error: parse error before '*' token
linuxmod->kernel-2.4 support
导致错误In function `insmod_main': undefined reference to `query_module'
应该是arm-linux-gcc的glibc版本和busybox版本的匹配出了问题;
4. 修改Makefile内容,令CROSS_COMPILE ?=arm-linux- ARCH ?= arm;
这里必须在Makefile中指定ARCH=arm,如果只是在编译的时候指定"make CROSS_COMPILE=arm-linux- ARCH=arm",那么make install的时候会重新编译,得到的busybox是i386架构的,从而导致cp生成的cmd到rootfs处时,系统启动时候会提示:
“request_module: runaway loop modprobe binfmt-464c”
5. 执行make得到busybox,执行make install在"busybox_$(VERSION)/_install"下得到bin, sbin, usr/bin, usr/sbin等。
6. 拷贝_install/下的所有内容到/data/rootfs2.6下替换原来的东西。
7. 在/data/rootfs2.6下执行
mknod dev/null c 1 3
chmod 666 dev/null
否则启动时候提示:
init: can't open '/dev/null': No such file or directory
不知道why新编译出来的需要访问/dev/null设备。
参考文档:
http://weibing.blogbus.com/logs/4453804.html
http://www.hhcn.com/cgi-bin/topic.cgi?forum=3&topic=380&start=0&show=50
1. 从www.busybox.net下载最新版本1.7.2;
2. 解压缩,进入目录;
3. 执行"make menuconfig"发现默认大多数cmd都选中了,就按照默认的来编译吧,除了
miscutil->taskset
导致错误miscutils/taskset.c:17: error: parse error before '*' token
linuxmod->kernel-2.4 support
导致错误In function `insmod_main': undefined reference to `query_module'
应该是arm-linux-gcc的glibc版本和busybox版本的匹配出了问题;
4. 修改Makefile内容,令CROSS_COMPILE ?=arm-linux- ARCH ?= arm;
这里必须在Makefile中指定ARCH=arm,如果只是在编译的时候指定"make CROSS_COMPILE=arm-linux- ARCH=arm",那么make install的时候会重新编译,得到的busybox是i386架构的,从而导致cp生成的cmd到rootfs处时,系统启动时候会提示:
“request_module: runaway loop modprobe binfmt-464c”
5. 执行make得到busybox,执行make install在"busybox_$(VERSION)/_install"下得到bin, sbin, usr/bin, usr/sbin等。
6. 拷贝_install/下的所有内容到/data/rootfs2.6下替换原来的东西。
7. 在/data/rootfs2.6下执行
mknod dev/null c 1 3
chmod 666 dev/null
否则启动时候提示:
init: can't open '/dev/null': No such file or directory
不知道why新编译出来的需要访问/dev/null设备。
参考文档:
http://weibing.blogbus.com/logs/4453804.html
http://www.hhcn.com/cgi-bin/topic.cgi?forum=3&topic=380&start=0&show=50
- 编译&更新busybox
- BusyBox编译
- 编译busybox
- busybox编译
- 编译busybox
- busybox编译
- 编译busybox
- 编译Busybox
- 编译busybox
- busybox编译文件系统
- Busybox 1.1.3编译
- 交叉编译busybox
- busybox编译心得
- 编译busybox出错
- BUSYBOX编译备忘录
- andoid编译 整合busybox
- android内核,busybox编译
- busybox交叉编译
- TFileStream
- asp.net调用WinRAR来压缩文件
- HP-UX常用命令
- Visual Studio 2005 长时间执行某操作引发错误的解决
- 1st Air Cav Shifts Tactics, Enables Iraqis to Complete Mission
- 编译&更新busybox
- America Supports You: Groups Team Up to Entertain Military Kids
- 一个非常好用的导航
- New Defense Media Activity Calling All Designers
- Access操作必须使用一个可更新的查询
- World Class Technology, Amenities Coming to Defense Media Activity
- 电子商务公司赢利点在哪?
- Science Program Celebrates 50 Years of Sharing
- USS Fort McHenry Mission to Set Tone for U.S. Africa Command