ARM development board and PC Ubuntu system nfs mount

Publisher:平和的心态Latest update time:2016-07-26 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The ARM development board and PC are mounted via the NFS network file system, which is very convenient for moving files and also brings convenience to our development. Next, I will introduce in detail how to establish the mount between ARM and PC.

I am using Ubuntu system.

First, we need to install the nfs server on the host, and during the installation process, some required components are also installed.

1. Install NFS related components

sudo apt-get install nfs-kernel-server

After installing the nfs server, we need to create a shared folder that is connected to the lower computer.

2. Create an NFS shared folder
sudo mkdir -R /mnt/nfs

3. Set up a shared directory
Modify the host /etc/exports file and add the following code
/mnt/nfs *(rw,sync,no_root_squash)
Here is an explanation:
/mnt/nfs indicates the shared file, which can be changed at will.
* indicates that any lower computer in any network segment can connect to this folder.
(rw,sync,no_root_squash) // indicates some permissions

rw Read-write permission
ro Read-only permission
no_root_squash NFS client shared directory user permissions, that is, if the client is the root user, then for this shared directory, the client has root permissions. If the root file system is mounted with NFS, this item must be set

sync data is written to memory and hard disk synchronously
async data is temporarily stored in memory first, rather than being written directly to hard disk


After setting up the shared folder, you need to restart the NFS server.

 

4. Service Operation Instructions

#Restart$sudo /etc/init.d/portmap restart # Stopsudo /etc/init.d/nfs-kernel-server stop # Startsudo /etc/init.d/nfs-kernel-server start # Restartsudo /etc/init.d/nfs-kernel-server restart

 

5. Testing

First, we can use the following command to view the shared folder we created: showmount -e. If you see the display: Export list for ubuntu: /mnt/nfs *, it means the host settings are successful.  

Notice:

  1. After completion, if an access denied exception occurs, restart the system

  2. When starting the nfs service in Ubuntu 11.10, you will encounter

     * Not starting: portmapper is not running

Solution:

sudo service portmap restart sudo /etc/init.d/nfs-kernel-server start

Next, let's set some information on the ARM development board.

In order for the ARM development board and PC to establish network file sharing, the ARM development board and PC must be connected via a network cable, and the ARM development board and PC must be set in the same network segment.
We can view and modify the IP address of the ARM development board through the following command:


ifconfig // Check the Ethernet IP address. The host also uses this command ifconfig eth0 192.168.1.1 // This command is used to modify the Ethernet card IP address. Here, the IP address of my PC is
                              192.168.1.104, to be changed to the same network segment

After this modification, the target board and PC can ping each other quickly under Linux.

6. ARM development board and PC mounting

Use the following command to mount
mount -t nfs -o nolock 192.168.1.104:/mnt/nfs /mnt/nfs
Note:
Here 192.168.1.104 is the IP address of my PC,
the first /mnt/nfs is the NFS shared folder directory I set up on the PC
The second /mnt/nfs is the shared folder directory I set up on the ARM development board

After this command is executed, the NFS network file system is mounted between the ARM development board and the PC.

Keywords:ARM Reference address:ARM development board and PC Ubuntu system nfs mount

Previous article:ARM usb camera test 【usb camera video image acquisition】
Next article:ARM DDR SDRAM Initialization

Recommended ReadingLatest update time:2024-11-16 07:50

Design of component modules and implementation methods of MAX1303 driver based on ARM-Linux
In a data acquisition system, physical quantities in the natural world are usually converted into electricity through sensors. Electricity is an analog quantity and must undergo analog/digital conversion before it can be read by the system's processor. Many current microprocessors have on-chip ADs, but most of these A
[Microcontroller]
Design of component modules and implementation methods of MAX1303 driver based on ARM-Linux
Design of seismic geophone testing system based on 32-bit ARM devices
This system uses a high-precision signal generator as the excitation signal, which provides a good signal environment for subsequent measurements, lays a good foundation for precision measurement, and obtains satisfactory test performance. The system can accurately generate uniform, continuous, and stable low-frequenc
[Microcontroller]
Design of seismic geophone testing system based on 32-bit ARM devices
Part4_lesson2---Analysis of the hardware startup process of ARM processor
1. Starting method s3c2440: It can be booted from Nor flash, which is usually 2MB; it can also be booted from Nandflash, which is usually 256MB. We usually put our uboot, kernel and file system into Nandflash, and choose the development board to boot from nandflash. When 2440 boots from nandflash, what is
[Microcontroller]
Part4_lesson2---Analysis of the hardware startup process of ARM processor
Raspberry Pi confirms plans for June IPO, Arm to invest an additional $35 million
On May 23, Raspberry Pi Ltd. submitted documents to the London Stock Exchange yesterday, confirming its intention to conduct an IPO on the exchange. The company plans to officially go public in June this year. Raspberry Pi Limited plans to raise US$40 million (IT Home Note: currently approximately RMB 290 milli
[Embedded]
Raspberry Pi confirms plans for June IPO, Arm to invest an additional $35 million
About the use of 128M memory in ARM9 S3C2440 wince6.0
The S3C2440 originally connected two 32M SDRAM chip selects to nGCS6. Now it has been changed to two 64M SDRAM chip selects also to nGCS6. The software modifications are divided into four major parts: 1. Stepldr: (1) startup.s mainly includes ldr r0,=0x30000000 ; Start address (physical 0x3000.00
[Microcontroller]
Tutorial on using ARM7-LPC2148 to control servo motor
In this tutorial we will use ARM7-LPC2148 to control a servo motor. Servo motors have the advantage of lower power consumption than stepper motors. When the desired position is reached, the servo motor stops its power consumption, but the stepper motor continues to consume power to lock the axis in the desired positio
[Microcontroller]
Tutorial on using ARM7-LPC2148 to control servo motor
ARM-Linux transplant (Part 2) - Linux2.6.22 kernel transplant
Platform: mini2440 Cross toolchain: arm-linux-gcc-4.3.2 1. Basic knowledge of kernel transplantation Porting the kernel is also called building a BSP (boardsupport packet). BSP has two functions: one is to provide low-level support for kernel operation, and the other is to shield board-related details.
[Microcontroller]
Huawei insider: Hongmeng operating system for PC is almost completed
According to news on December 26, the HarmonyOS operating system is an operating system independently developed by Huawei. It debuted in 2019. It is a full-scenario distributed OS based on microkernel. It adopts a distributed architecture and can achieve a seamless collaborative experience across terminals. . 21st Cen
[Embedded]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号