1, 主机端:sudo apt-get -y install nfs-kernel-server
2, 主机端:ifconfig 192.168.1.10
3, 主机端:修改/etc/exports,添加一行:
/home/bigfish/work/ok6410_development/rootfs 192.168.1.0/10(rw,no_root_squash,no_all_squash,no_subtree_check)4, 板子端:停在uboot shell里设置env
setenv bootargs "root=/dev/nfs nfsroot=192.168.1.10:/home/bigfish/work/ok6410_development/rootfs
ip=192.168.1.20:255.255.255.0:eth0:off console=ttySAC0,115200"
5,复位板子端
复位后,可能主机端IP会变,于是要立刻再输入step 2。
之后即可成功mount nfs文件系统
阅读(1701) | 评论(0) | 转发(1) |