Steps to configure the PetaLinux for NFS boot and build the system image are as follows:
- Change to root directory of your PetaLinux
project.
cd <plnx-proj-root> - Launch the top level system configuration
menu.
petalinux-config - Select .
- Select NFS as the RootFS type.
- Select Location of NFS root directory and set it to /home/NFSshare.
- Exit menuconfig and save configuration settings. The boot arguments in the auto generated DTSI is automatically updated after the build. You can check <plnx-proj-root>/components/plnx_workspace/device-tree/device-tree/system-conf.dts.
- Launch Kernel configuration
menu.
petalinux-config -c kernel - Select .
- IP:DHCP support
- IP:BOOTP support
- IP:RARP support
- Select on NFS.
- Build the system image.Note: For more information, see Building a System Image.
- You can see the updated boot arguments only after building.