修改 Makefile 添加交叉编译器路径
ARCH ?= arm
CROSS_COMPILE ?= /opt/arm-2009q1/bin/arm-none-linux-gnueabi-
配置busybox
Build Options --->
[*] Build BusyBox as a static binary (no shared libs)
General Configuration --->
[*] Don‘t use /usr
Linux System Utilities --->
[*] mount
[*]Support mounting NFS file systems on Linux < 2.6.23
make
make install
生成文件在新建目录 _install 里
2 创建目录 filesys
cd filesys
创建目录 bin boot dev etc home lib media mnt opt proc root sbin srv sys tmp usr var
# mount devpts in order to use telnetd
###########################################################################
########## Telnet Server ######################
echo "---------------mount devpts------------"
cp -rf /dev/* /tmp
mount -t tmpfs tmpfs /dev
cp -rf /tmp/* /dev
rm -rf /tmp/*