How to boot form NFS

From Ambedded
Revision as of 18:31, 13 October 2014 by Desmond (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Prepare NFS on Ubuntu 12.04 LTS

1.Please install the following packages,and create folder for NFS:

sudo apt-get install nfs-kernel-server nfs-common portmap
sudo install -m 777 -d /nfs
wget -O rootfs.tar.gz
sudo tar -xvzf rootfs.tar.gz -C /nfs

For the follow step, the directory /nfs will be exported (served by the NFS server). If you would like a different directory, substitute /nfs/ with your preferred directory.

2.Modify the /etc/exports file adding at the end of this file the following line,and use folder that be created above:

/nfs/ *(rw,no_root_squash)

3.Restart the NFS server:

sudo /etc/init.d/nfs-­kernel­-server restart

Modify u-boot environment

1.change your u-boot bootcmd.

setenv bootcmd "setenv serverip <NFS ip>;nand read 0x2000000 0x500000 0x400000 ;bootm 0x2000000";
setenv bootargs "console=ttyS0,115200 root=/dev/nfs rw nfsroot=<NFS ip>:/nfs ip=dhcp panic=10";

2.reboot CyOne

CyOne>> reset
Personal tools