2024-07-01 12:54 AM - edited 2024-07-01 12:58 AM
This guide uses ubuntu22.04 x86 pc(Probably the same on any other Linux system) as host, and mp2 as device.
Its quite a common practice to use NFS as a medium to transfer cross compiled binary to dev board, since using sftp or scp to transfer the file every time you cross compile is tedious and time consuming.
sudo apt update && sudo apt install nfs-kernel-server
sudo mkdir -p /host_export_srv_dir
sudo chown -R nobody:nogroup /host_export_srv_dir
sudo chmod 777 /home/srv
sudo vim /etc/exports
/home/srv *(rw,sync,no_subtree_check)
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
sudo ufw allow from MP2IPAddr to any port nfs
sudo ufw enable
sudo ufw status
Please run as su
apt update && apt install nfs-utils
mount -v -t nfs 138.198.198.58:/home/srv /srv
Warning: it may make boot time longer
138.198.198.58:/home/srv /srv nfs defaults 0 0
Please use df command to check mount successfully or not.
To un-mount volume on device:
umount /srv