【嵌入式linux系统】NFS文件系统
1、服务器端配置NFS
sudo apt-get install nfs-kernel-server
vim /etc/exports
增加:
/home/xxx/rootdir *(rw,sync,no_root_squash,no_subtree_check)
sudo /etc/init.d/nfs-kernel-server restart
2、配置client,开发板
setenv bootargs 'root=/dev/nfs rw rootwait init=/init nfs=server_ip:/home/xxx/rootdir ip=client_ip:server_ip:gateway:subnet_mask'
setenv bootcmd 'nfs kernel_zImage_address server_ip:/home/xxx/rootdir/zImage;nfs dtb_address server_ip:/home/xxx/rootdir/xxx.dtb;bootz kernel_zImage_address - dtb_address
例如:
setenv bootcmd 'nfs 2008000 server_ip:/home/xxx/rootdir/zImage;nfs 3000000 server_ip:/home/xxx/rootdir/xxx.dtb;bootz 2008000 - 3000000
|