1. 首先将busybox-1.13.0.tar.bz2复制到/mnt/ghfs/linux/目录下
2. 进入到/opt/EmbedSky/下$tar jxvf busybox-1.13.0.tar.bz2 -C /解压到/opt/EmbedSky/目录下,
3. 进入busybox源码$cd busybox-1.13.0
4. 使用$make menuconfig对busybox进行配置,导入TQ自带的配置单,把.config修改为config_EmbedSky
5. 对修改的config_EmbedSky进行保存,保存为编译busybox时所能识别的.config文件
6. $make就可以编译成busybox了.
7. 输入$make install安装刚刚编译的busybox,安装后会在busybox源码目录下生成一个_install目录,安装后的busybox就在该目录下安装busybox后会在_install目录下生成/bin,/sbin,/usr,linuxrc三个文件夹和一个文件
8. 在/opt/EmbedSky/目录下新建一个文件夹,用于制作跟文件系统,
9. 将利用busybox生成的三个文件夹和一个文件复制到根文件系统目录下,以生成跟文件系统的工具
出现的问题:
1.In file included from /opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/if_tunnel.h:5,
from networking/libiproute/iptunnel.c:24:
/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/ip.h:85: error: redefinition of 'struct iphdr'
make[1]: *** [networking/libiproute/iptunnel.o] Error 1
make: *** [networking/libiproute] Error 2
CC networking/libiproute/iptunnel.o
In file included from /opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/if_tunnel.h:5,
from networking/libiproute/iptunnel.c:24:
/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/ip.h:85: error: redefinition of 'struct iphdr'
2. 解决方法
去掉了配置中的Network中的
Networking Utilities --->ip tunnel
文章评论(0条评论)
登录后参与讨论