①Start and stop the nfs service of the ubuntu server through commands:
Run from the command line:
/etc/init.d/nfs restart
Use this command to stop the nfs service:
/etc/init.d/nfs stop
Check whether the nfs server is enabled:
service nfs status
Restart the corresponding 2 services:
service portmap restart
service nfs restart
Check the firewall to see if the nfs port is blocked
service iptables stop
service iptables status
②Set permissions for the Ubuntu directory to be mounted:
sudo vi /etc/exports
Add to:
/home/book/workspace/ok6410_project/fs_ok6410_yaffs2 *(insecure,rw,async,no_root_squash)
sudo chown book:book fs_ok6410_yaffs2/ -R
chmod 755 /home/book/workspace/ok6410_project/fs_ok6410_yaffs2
Try mounting yourself:
mount -t nfs -o nolock,vers=2 192.168.48.104:/home/book/workspace/ok6410_project/fs_ok6410_yaffs2 /mnt
mount -t nfs -o nolock 192.168.48.104:/home/book/workspace/ok6410_project/fs_ok6410_yaffs2 /mnt
③Set the development board IP parameters:
vi /etc/init.d/rcS Make the following changes at the end of the file to allow the kernel to automatically configure network parameters and open the network card connection after startup:
ifconfig eth0 192.168.16.16
ifconfig eth0 up
④Modify u-boot startup parameters:
default value:
bootargs=root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
set bootargs root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
After changing to NFS startup:
seten bootargs noinitrd root=/dev/nfs nfsroot=192.168.48.104:/home/book/workspace/ok6410_project/fs_ok6410_yaffs2 ip=192.168.48.100:192.168.48.104:192.168.48.255:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0,115200
save
⑤Restart the development board:
reset
reboot
Previous article:OK6410 nand flash block device driver
Next article:Writing your own bootloader for OK6410
Recommended ReadingLatest update time:2024-11-16 04:40
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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 I change my nickname in the forum?
- GD32L233C-START Review——03_2.CoreMark Test, RT-Thread-Nano Porting
- A detailed guide to the Industrial Internet of Things: From risks to benefits
- How to implement remote monitoring of wind turbines in wind farms?
- The difference between USART, USI, USCI and eUSCI serial communication modules in MSP430 microcontroller (updated on March 4, 2019)
- Answer questions to win prizes | ADI Technology Express - Industrial Automation Control and Edge Computing
- MSP432P401R MSP432P4xx: Falcon Series
- Motor drive development exchange 2: R&D process of motor drive products
- Polarity of EPWMA pulse
- [TI recommended course] #Live replay: TI mmWave millimeter wave radar application in automobiles#