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)
/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
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/nfsNote:
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.
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
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Can the life of a transparent LED display really reach 100,000 hours?
- Reading Notes on the Good Book "Operational Amplifier Parameter Analysis and LTspice Application Simulation" 02 DC Bias
- Does anyone know how to initialize the input capture function of GD32?
- EEPROM analysis based on single chip microcomputer
- EEWORLD University ---- SPICE teaching video based on Ispice and Hspice (Yuan Ze University)
- Breaking news! Chinese scientists develop the world's largest brain-like computer with the largest number of neurons, with a brain capacity comparable to that of a mouse
- [Homemade] 8A high power adjustable power supply
- Design of an intelligent water quality detector based on Gizwits Cloud
- 【ufun learning】Learning 5: "Basic Example 4 - USB Serial Port and PC Communication"
- [Sold] ST P-NUCLEO-IHM001 Brushless Motor Development Kit for Sale