下载地址
http://www.busybox.net/downloads/
制作文件系统
编译步骤省略
# mkdir lib etc proc tmp sys
# arm-linux-strip *.so
# vi etc/inittab
::sysinit:/etc/init.d/rcS
::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a –r
::restart:/sbin/init
注:/bin/sh前须要添加前缀“-”,否则会提示以下错误:
/bin/sh: can't access tty; job control turned off
# mkdir etc/init.d
# vi etc/init.d/rcS
mount -t tmpfs mdev /dev
mkdir /dev/pts
mount -a
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
exec /usr/local/rc.local
# chmod +x rcS
rc.local 是默认启动的最后一个脚本文件
# vi usr/local/rc.local
#!/bin/sh
insmod led.ko
/home/led_app
# vi etc/fstab
# device mount-point type options dump fsck order
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts defaults 0 0