mini2440 mounts linux folder via nfs

Publisher:GoldenDreamLatest update time:2022-07-22 Source: csdnKeywords:mini2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

linux

1. Install nfs server

sudo apt-get install nfs-kernel-server


2. Modify the configuration file /etc/exports

vim /etc/exports


Add in the last line


/home/stu/nfs *(rw,sync,no_root_squash,no_subtree_check)


Where /home/stu/nfs is the directory you want to mount


3. Port Mapping

sudo service rpcbind restart


4. Restart

sudo service nfs-kernel-server restart


5. Testing

showmount -e


mini2440

mount -t nfs -o nolock 192.168.0.102:/home/stu/nfs /mnt


Use this command when you want to transfer larger files


mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.0.102:/home/stu/nfs /mnt


/mnt is the directory on mini2440

192.168.0.102 is the IP address of the Linux host

Before mounting, make sure the mini2440 development board can ping the Linux host

Linux's /home/stu/nfs will be mounted on mini2440's /mnt


2440 boots through the kernel in nfs

1. Reboot to enter the u-boot interface first

2. Set ipaddr and serverip


OpenJTAG> set ipaddr 192.168.1.17

OpenJTAG> set serverip 192.168.1.103

OpenJTAG> save


3. Ping the host to see if it works


OpenJTAG> ping 192.168.1.103

ERROR: resetting DM9000 -> not responding

dm9000 i/o: 0x20000000, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: 08:00:3e:26:0a:5b

could not establish link

host 192.168.1.103 is alive


See alive is available

4. Start the kernel through nfs


nfs 32000000 192.168.1.103:/home/book/nfs/uImage_4_3;bootm 32000000

Keywords:mini2440 Reference address:mini2440 mounts linux folder via nfs

Previous article:mini2440 downloads the Linux virtual machine program through dnw
Next article:JZ2440 driver compilation, installation and testing

Recommended Content
Latest Microcontroller Articles
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号