[root@localhost busybox-1.4.2]# make defconfig
[root@localhost busybox-1.4.2]# make xconfig
=============================================
修改配置 主要修改如下
=============================================
Busybox Settings
Build Options
[*]Build BusyBox as a static binary
//选此项静态编译。
Miscellaneous Utilities
[]taskset //选了就会出错
-------------------------------------------------
三 编译
[root@localhost busybox-1.5.1]# make all install
-----------------------------------------------------------------
最后会在 busybox-1.5.1/_install/目录生成你要的 bin sbin usr 目录
------------------------------------------------------------------
2. 编写linuxrc 文件
-----------------------------------------------------------------
#!/bin/sh
#e cho "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc
echo "re-create the /etc/mtab entries"
# re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /
#mount some file system
echo "mount /dev/shm as tmpfs"
/bin/mount -n -t tmpfs tmpfs /dev/shm
#挂载/proc为proc文件系统
echo "mount /proc as proc"
/bin/mount -n -t proc none /proc
#挂载/sys为sysfs文件系统
echo "mount /sys as sysfs"
/bin/mount -n -t sysfs none /sys
/bin/mount -f -t ramfs ramfs /etc
echo "yaffs is mounted"
/bin/mount -t yaffs /dev/mtdblock/1 /mnt/yaffs
exec /sbin/init
---------------------------------------------------------------------
3. 权限修改
chmod chmod 775 linuxrc
