We have completed the preparation of the root file system. This section describes how to remotely access the root file system on the virtual machine through the NFS service, which can effectively improve the preparation and verification of the root file system.
The settings in Vivi and U-boot are not the same. The following describes the settings:
1. Modify the VIVI startup parameters to start the root file system from the VM:
Paramset linux_cmd_line "noinitrd root =/dev/nfs nfsroot =/home/rootfs/(change to the actual directory), rsize = 1024, wsize = 1024
IP = 192.168.220.11 (The Development Board address can be entered as needed): 192.168.220.xx (Virtual Machine address): 192.168.220.254: 255.255.255.0: eth0: offinit =/linuxrc console = ttysac0"
For example, Vivi>Paramset linux_cmd_line"Noinitrd root =/dev/nfs nfsroot =/Home/dengwei/rootfs/, Rsize = 1024, wsize = 1024
IP =192.168.220.123: 192.168.220.56: 192.168.220.254: 255.255.255.0: eth0: offinit =/linuxrc console = ttysac0"
Vivi> param save
2. Modify the U-boot startup parameter to start the root file system from the VM:
Setenvbootargs 'noinitrd root =/dev/nfs nfsroot =/home/rootfs/(change to the actual directory), rsize = 1024, wsize = 1024ip = 192.168.220.11 (enter the Development Board address as needed): 192.168.220.xx (Virtual Machine address): 192.168.220.254: 255.255.255.0: eth0: Off
Init =/linuxrc console = ttysac0'
Example: U-boot>Paramset linux_cmd_line"Noinitrd root =/dev/nfs nfsroot =/Home/dengwei/rootfs/, Rsize = 1024, wsize = 1024
IP =192.168.220.123: 192.168.220.56: 192.168.220.254: 255.255.255.0: eth0: offinit =/linuxrc console = ttysac0"
U-boot> saveenv
Note: Vivi uses double quotation marks to modify parameters, while u-boot uses single quotation marks.
Restart the Development Board.