最小根文件系统
最小根文件系统:
1. dev/consle & dev/null
mkdir 创建dev/
mknod null/console c 5 1
mknod Name { b | c } Major Minor
2. init -> busybox
编译和配置
3. etc/inittab
etc/inittab console: : askfirst :-bin/sh
4. 配置文件制定的应用程序
5. c库
使用NFS作为根文件系统来启动
mount -t nfs -o nolock, vers=2 192.168.1.19:/work/nfs_root /mnt
2440的U-boot设置方法:
bootargs = noinitrd
root = /dev/mtdblock3
init = /linuxrc
console = ttySAC0NFS设置: nfsroot = [
:] [, ]
ip =: : : : : :
set bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.19:/work/nfs_root/tmp/fs_mini_mdev ip=19.168.1.17:92.168.1.19:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0