Mount remote filesystem for the OMAP 1. build
NFS server (1) 要讓rpc.nfsd ,
rpc.mountd 等daemon順利run起來
詳細可參考網路上文件還有NFS-HOWTO 等資料 (2) 編輯/etc/exports
/nfs_root 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/etc 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/bin 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/sbin 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/proc 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/dev 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/usr 140.115.50.0/255.255.255.0(rw,no_root_squash)
/nfs_root/lib 140.115.50.0/255.255.255.0(rw,no_root_squash)
設定為read/write皆可
. no_root_squash是可使用root
權限 2. build
file system on NFS server
剛剛設定檔/etc/exports裡頭的那些目錄你要建好,
如lib sbin bin
etc等等
(1)
Using busybox to build tool software
如: /sbin
/bin /usr/bin
/usr/sbin裡頭的程式
ls , df ,cp ,mv ,ping等等
(2)
modify necessary configuration files
如: fstab
init.d/rcS inittab*
resolv.conf* 等最基本需求的設定檔
(3) 配置/dev 裡頭的node file
如:
audio console
mixer ram0
ram1 ttyS0 3. modify
kernel command
在source code 裡頭的.config修改
CONFIG_CMDLINE="mem=32M console=ttyS0,115200n8 noinitrd
root=/dev/nfs nfsroot=140.115.50.43:/nfs_root ip=dhcp"
CONFIG_CMDLINE="mem=32M console=ttyS0,115200n8 noinitrd root=/dev/nfs
nfsroot=140.115.50.43:/nfs_root ip=140.115.50.7:140.115.1.254:255.255.0.0"
指定 :
nfs_root 代表nfs server為140.115.50.43
console為ttyS0(serial port 1)
ip可用dhcp或是直接指定(
ip: gateway, netmask)