资 源 简 介
应用背景
本地挂载:
# setenv bootargs root=/dev/mtdblock4 init=/linuxrc console=ttySAC0,115200 rootfstype=yaffs rw
nfs方式挂载rootfs
本地PC端:
1 准备好/mini_rootfs
2 安装软件包
#apt-get install nfs-common nfs-kernel-server portmap
3 配置nfs服务
#vim /etc/exports
加上以下内容:
/mini_rootfs *(rw,sync,no_root_squash)
重启nfs服务器
#/etc/init.d/nfs-kernel-server restart
开发端:
1 配置内核以支持NFS启动
make menuconfig
[*] Networking support --->
Networking options --->
[*] IP: kernel level autoconfiguration
File systems --->
[*] Network File Systems ---&