Server 설정
Ubuntu Host $ sudo vi /etc/exports
:
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#

/home/no1no1no1/samba/targetfs *(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
* 사용자의 파일 시스템 경로에  *(rw,sync,no_root_squash,no_all_squash,no_subtree_check) 옵션을 설정한다.

Ubuntu Host $ sudo /usr/sbin/exportfs -av
Ubuntu Host $ sudo /etc/init.d/nfs-kernel-server restart

Target Board 설정
Uboot Setting
 bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.1.168:192.168.1.166:192.1
68.1.1:255.255.255.0:::off eth=00:01:02:0a:0b:0c root=/dev/nfs nfsroot=192.168.1
.166:/home/no1no1no1/samba/targetfs
,nolock mem=128M, video=davincifb:vid0=OFF:vi
d1=OFF:osd0=800x480x16,4050K dm365_imp.oper_mode=0 davinci_enc_mngr.ch0_output=L
CD1 davinci_enc_mngr.ch0_mode=800x480 rootwait
bootcmd=nboot 0x80700000 0 0x400000; bootm
bootdelay=3
bootfile="uImage"
ethact=DaVinci-EMAC
ethaddr=00:01:02:0a:0b:0c
fileaddr=82000000
filesize=B52539
gatewayip=192.168.1.1
ipaddr=192.168.1.168
netmask=255.255.255.0

nfshost=192.168.1.166
rootpath=/home/no1no1no1/samba/targetfs
serverip=192.168.1.160
* bootargs에 $(rootpath) 형식으로 작성하지 않고 직접 해당 항목을 입려해야지 인식 한다.
Posted by 다크쌍피