Mount the root file system through the NFS service

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.