缥缈九哥

移植busybox-1.13.0到GEC2440开发板

0
阅读(2009)

移植busybox-1.13.0到GEC2440开发板

1,下载解压源码:
 root@yuanxh-desktop:/home/yuanxh/s3c2410# wget http://busybox.net/downloads/busybox-1.13.0.tar.bz2
 root@yuanxh-desktop:/home/yuanxh/s3c2410# tar xjvf busybox-1.13.0.tar.bz2
 root@yuanxh-desktop:/home/yuanxh/s3c2410# mv busybox-1.13.0 busybox-1.13.0-9g24x0
2,修改Makefile:
 root@yuanxh-desktop:/home/yuanxh/s3c2410# cd busybox-1.13.0-9g24x0/
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# cp Makefile Makefile.org
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# vi Makefile
 把第4行: EXTRAVERSION =
 修改成: EXTRAVERSION =-9g24x0
 把第164行: CROSS_COMPILE ?=
 修改成: CROSS_COMPILE ?=arm-linux-
3,默认配置:
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# make help
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# make defconfig
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# make
3,修改配置:
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# make menuconfig
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# make 
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# make install
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# tar czvf busybox-1.13.0-9g24x0-bin.tar.gz _install/
4,安装到文件系统:
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# rm -rf /nfsboot/rootfs/bin/ /nfsboot/rootfs/sbin/ /nfsboot/rootfs/usr/ /nfsboot/rootfs/linuxrc
 root@yuanxh-desktop:/home/yuanxh/s3c2410/busybox-1.13.0-9g24x0# mv _install/*   /nfsboot/rootfs/