modprobe
[ ] Multiple options parsing
[ ] Fancy alias parsing
--- Options common to multiple modutils
[ ] Support tainted module checking with new kernels
[ ] Support version 2.2.x to 2.4.x Linux kernels
Support version 2.6.x Linux kernels
其他的用默认值
4.编译busybox
[kevin@localhost busybox-1.9.2]# make install
在busybox/_install 目录下会生成我们需要的文件。
5. 修改_install/bin/busybox的属性。为4755
chmod 4755 ./_install/bin/busybox
必须要要修改属性,否则在busybox中很多命令会受限制,比如:
$ su
su: must be suid to work properly
6.建立root fs的文件系统所需的目录和文件。
Mkdir /nfsroot
Mkdir /nfsroot/s3c2440
在root文件夹中建立基本的目录
[root@centos s3c2440]# ls
bin dev home linuxrc proc sbin tmp var
boot etc lib mnt root sys usr
6. 以root身份建立节点文件/dev/console, /dev/null
mknod -m 600 dev/console c 5 1
mknod -m 666 dev/null c 1 3
7. 建立配置文件如下:
[root@centos etc]# more profile
#!/bin/sh
#/etc/profile:system-wide .profile file for the Bourne shells
echo
echo -n "Processing /etc/profile......"
# Set search library path
export LD_LIBRARY_PATH=/lib:/usr/lib
# set user path
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
#Set PS1
USER = "`id -un`"
LOGNAME=$USER
PS1='[\u@\h\W]\$'
PATH=$PATH
echo "Done!"
[root@centos etc]# more init.d/rcS
#!/bin/sh
# set hostname, needed host file in /etc directory
#./etc/host
hostname `cat /etc/host`
# mount all filesystem defined in "fstab"
echo "#mount all......."
/bin/mount -a