Imx6ul u-boot nfs boot

From embeddedTS Manuals
Revision as of 13:07, 2 May 2017 by Kris (talk | contribs) (Created to use the updated method of setting NFS root)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

U-Boot's NFS support can be used to load a kernel, device tree binary, and root filesystem. The default scripts include an example NFS boot script. Because of the way U-Boot tries to infer server data, the script we use will bypass this, making it more straightforward to use an NFS root that will not be heavily dependent on a particular network configuration.

# Set this to your NFS server IP and NFS directory path
env set nfsroot 192.168.0.1:/path/to/nfs/rootfs/
env save

To boot your NFS root:

# Boot to NFS once
run nfsboot;

# To make the NFS boot the persistent default
env set bootcmd run nfsboot;
env save