1 cd /home
2 mkdir bin dev etc lib proc sbin sys usr mnt tmp var mkdir usr/bin usr/lib usr/sbin lib/modules
3 创建设备文件 cd dev/ mknod -m 666 console c 5 1 mknod -m 666 null c 1 3 cd ..
4 编译、安装busybox 进入busybox代码目录 make menuconfig 1. Build Option 选中"Build busybox as a static binary" 2. Build Option 选中"Do you want to build busybox with a cross compiler" Cross Compiler Prefix (arm-linux-) 3. Installation Options 选中 "Don't use /usr" Busybox Installation Prefix (/home/rootfs) make make install
5 基于前面步骤制作好的根文件系统,可进一步制作ramdisk,步骤如下: 1、./genext2fs -b 16384 -d /home/rootfs ramdisk * genext2fs 为产生ramdisk的工具 2、 gzip -9 -f ramdisk
6 拷贝busybox/examples/inittab 文件到rootfs/etc 注释 #tty2::askfirst:-/bin/sh
#tty3::askfirst:-/bin/sh
#tty4::askfirst:-/bin/sh
#tty4::respawn:/sbin/getty 38400 tty5
#tty5::respawn:/sbin/getty 38400 tty6 |