Setup NFS
This section covers the installation of several development tools for debugging and demenstrate how to use it.
Setup and configure NFS server
To share rootfs over network you need to install NFS server and configure it:
sudo apt -y install nfs-kernel-server
Then, create a shared folder and set the permissions:
sudo mkdir /path/to/share/folder
sudo chmod 777 /path/to/share/folder
Add the following line to /etc/exports and restart nfs server service:
/path/to/share/folder *(rw,sync,no_root_squash,no_subtree_check)
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
Create Yocto Image
To bootup your image using NFS, you can add kas config file that contain the following parameters:
header:
version: 17
local_conf_header:
meta-otto-bsp: |
ROOTFS_BOOT_TYPE = ...
NFS_SERVER_IP = ...
NFS_ROOTFS_PATH = ...
NEWORK_CONFIG_TYPE = ...
NETWORK_IP = ...
NETWORK_NETMASK = ...