Use nfs service to develop armlinux programs

Source: Internet
Author: User
Use the nfs service to develop the armlinux Program-general Linux technology-Linux programming and kernel information. The following is a detailed description. Simple NFS configuration

NFS is a simple method for communication between two machines. In the embedded Linux experiment, we Configure NFS to implement access between the PC and the ARM-Linux platform in the experiment box.

The principle is to enable the LFS service in PC Linux and set a shared directory (here/arm2410). All source code editing changes can be easily modified in PC, in the ARM-Linux experimental environment, remotely mount the/arm2410 directory of PC-Linux to the local machine to implement synchronous read/write access between the two machines, in this way, the program can easily run the test in ARM-Linux. Simply put, the purpose is to set up a shared directory, edit it in PC-Linux, and run debugging in ARM-Linux.

Configuration process: (NFS is installed by default, and the IP address of PC-Linux is 192.168.136.6)

1. # After ntsysv is run, select
  • Nfs option. Cancel the [] iptables option.

    2. Run the security level and firewall to set the security level. Firewall: Disable

    3. Run server settings-NFS to add NFS.

    Directory:/arm2410;

    HOST: 192.168.136 .*;

    Basic permissions: read/write; ----- rw

    General options: default (select Sync write request); ------- sync

    User Access: the remote root directory user is selected as the local root directory user; -------- no_root_squash

    Manual modification:

    # Cat>/etc/exports <"EOF"

    >/Arm2410 192.168.136. * (rw, sync, no_root_squash)

    4. Simple testing of NFS configuration

    Mount/arm2410 of PC-Linux to the/mnt directory through remote access, and check whether the/arm2410 content is in the/mnt directory. If yes, the configuration is successful.

    # Mount 192.168.136.6:/arm2410/mnt

    # Ls/mnt

    Note: You can also choose not to set the firewall level. This setting is used to reduce firewall blocking and the Mount failure may occur.
  • Related Article

    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.