57-20210402华为海思Hi3516DV300的linux系统下NFS文件系统挂载(eMMC模式)
57-20210402华为海思Hi3516DV300的linux系统下NFS文件系统挂载(eMMC模式)
2021/4/2 17:55
https://xueqiu.com/7970718062/159110439
官井想开挖掘机
来自iPhone发布于2020-09-13 15:18
$润和软件(SZ300339)$
HiSpark AI Camera套件
l 支持鸿蒙OS、LiteOS、Linux系统,方便进行产品的原型验证和快速开发
l 板载海思Hi3516DV300芯片,内置双核Cortex-A7,最高运行评率900MHz,内置图像处理单元(ISP),内置H265/H264硬件编解码器,内置智能视频引擎(IVE),内置硬件安全引擎
l 主控芯片内置神经网络推理引擎(NNIE),8bit算力1Tops,可进行端侧AI计算
l 板载1G DDR3内存,最大传输速度1866Mbps
l 板载8G eMMC,最大传输速度
l 板载Hi3861 WiFi模组,支持IEEE 802.11 b/g/n,支持STA模式、AP模式
l 板载索尼IMX 335图像传感器,最大有效像素5.04M,视屏最高支持2592x1944@60fps
1、在华为海思Hi3516DV300开发板上配置以太网的参数!
加入rcS启动文件中,重启之后就可以自动配置网络了!
cd /etc/
echo "nameserver 8.8.8.8" >> resolv.conf
cd /etc/init.d/
echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
echo "route add default gw 192.168.0.1" >> rcS
/ # cd /etc/
/etc #
/etc # echo "nameserver 8.8.8.8" >> resolv.conf
~ # cd /etc/init.d/
/etc/init.d #
/etc/init.d # echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
/etc/init.d # echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
/etc/init.d # echo "route add default gw 192.168.0.1" >> rcS
/etc/init.d #
/etc/init.d # reboot
ping www.baidu.com
ping 104.193.88.123
ping 192.168.0.149
https://blog.csdn.net/qq_30722795/article/details/110275444
Hi3516DV300开发板——4.开发板挂载NFS服务
锅盖小郭哥 2020-11-28 15:17:58 455 收藏 1
注意:一定要在配置虚拟机网络与开发板网络互相能ping通情况下才能开始!!!!
2、NFS服务器配置(虚拟机端)
安装nfs服务
sudo apt-get update
sudo apt-get install nfs-kernel-server
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ sudo apt-get install nfs-kernel-server
[sudo] password for rootroot:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
keyutils libnfsidmap2 libtirpc-common libtirpc3 nfs-common rpcbind
Suggested packages:
open-iscsi watchdog
The following NEW packages will be installed:
keyutils libnfsidmap2 libtirpc-common libtirpc3 nfs-common nfs-kernel-server rpcbind
0 upgraded, 7 newly installed, 0 to remove and 47 not upgraded.
Need to get 503 kB of archives.
After this operation, 1,936 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libtirpc-common all 1.2.5-1 [7,632 B]
Get:2 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libtirpc3 amd64 1.2.5-1 [77.2 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 rpcbind amd64 1.2.5-8 [42.8 kB]
Get:4 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 keyutils amd64 1.6-6ubuntu1 [45.0 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libnfsidmap2 amd64 0.25-5.1ubuntu1 [27.9 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 nfs-common amd64 1:1.3.4-2.5ubuntu3.3 [204 kB]
Get:7 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 nfs-kernel-server amd64 1:1.3.4-2.5ubuntu3.3 [98.9 kB]
Fetched 503 kB in 13s (38.6 kB/s)
Selecting previously unselected package libtirpc-common.
(Reading database ... 212148 files and directories currently installed.)
Preparing to unpack .../0-libtirpc-common_1.2.5-1_all.deb ...
Unpacking libtirpc-common (1.2.5-1) ...
Selecting previously unselected package libtirpc3:amd64.
Preparing to unpack .../1-libtirpc3_1.2.5-1_amd64.deb ...
Unpacking libtirpc3:amd64 (1.2.5-1) ...
Selecting previously unselected package rpcbind.
Preparing to unpack .../2-rpcbind_1.2.5-8_amd64.deb ...
Unpacking rpcbind (1.2.5-8) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../3-keyutils_1.6-6ubuntu1_amd64.deb ...
Unpacking keyutils (1.6-6ubuntu1) ...
Selecting previously unselected package libnfsidmap2:amd64.
Preparing to unpack .../4-libnfsidmap2_0.25-5.1ubuntu1_amd64.deb ...
Unpacking libnfsidmap2:amd64 (0.25-5.1ubuntu1) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../5-nfs-common_1%3a1.3.4-2.5ubuntu3.3_amd64.deb ...
Unpacking nfs-common (1:1.3.4-2.5ubuntu3.3) ...
Selecting previously unselected package nfs-kernel-server.
Preparing to unpack .../6-nfs-kernel-server_1%3a1.3.4-2.5ubuntu3.3_amd64.deb ...
Unpacking nfs-kernel-server (1:1.3.4-2.5ubuntu3.3) ...
Setting up libtirpc-common (1.2.5-1) ...
Setting up keyutils (1.6-6ubuntu1) ...
Setting up libnfsidmap2:amd64 (0.25-5.1ubuntu1) ...
Setting up libtirpc3:amd64 (1.2.5-1) ...
Setting up rpcbind (1.2.5-8) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /lib/systemd/system/rpcbind.socket.
Setting up nfs-common (1:1.3.4-2.5ubuntu3.3) ...
Creating config file /etc/idmapd.conf with new version
Adding system user `statd' (UID 130) ...
Adding new user `statd' (UID 130) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
Created symlink /etc/systemd/system/remote-fs.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
nfs-utils.service is a disabled or a static unit, not starting it.
Setting up nfs-kernel-server (1:1.3.4-2.5ubuntu3.3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /lib/systemd/system/nfs-server.service.
Job for nfs-server.service canceled.
Creating config file /etc/exports with new version
Creating config file /etc/default/nfs-kernel-server with new version
Processing triggers for systemd (245.4-4ubuntu3.4) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
启动nfs服务
sudo systemctl start nfs-kernel-server.service
创建一个共享文件夹
mkdir nfs_files && cd nfs_files && pwd
执行过后会有一个绝对路径:home/xxxx/nfs_files。
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ sudo systemctl start nfs-kernel-server.service
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ mkdir nfs_files && cd nfs_files && pwd
/home/rootroot/nfs_files
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/nfs_files$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/nfs_files$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/nfs_files$ pwd
/home/rootroot/nfs_files
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/nfs_files$
下一步写入的时候把xxx改为自己的虚拟机用户名即可。
eg:/home/long/nfs_files
设置导出目录
sudo vim /etc/exports
在这个里面最后一行添加如下内容后保存:
# /home/xxx/nfs_file 导出的目录,把xxx换为自己的用户名
# * 可挂载的ip *代表不做限制
# rw 代表可读可写
# sync 代表文件同步
# no_subtree_check 禁用安全验证
# no_root_squash 允许任何客户端系统的root用户修改root拥有的文件
/home/xxx/nfs_files *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
重启NFS服务
sudo systemctl restart nfs-kernel-server.service
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ cd /etc/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ diff exports exports.bak1
11d10
< /home/xxx/nfs_files *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ sudo cp exports.bak1 exports
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ sudo echo "/home/rootroot/nfs_files *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> exports
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ sudo cp exports.bak1 exports
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ sudo echo "/home/rootroot/nfs_files *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> exports
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ diff exports exports.bak1
11d10
< /home/rootroot/nfs_files *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ sudo systemctl start nfs-kernel-server.service
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ ps -e | grep nfs*
129 ? 00:00:00 ipv6_addrconf
1377 ? 00:00:00 ibus-dconf
1423 ? 00:00:00 dconf-service
2381 ? 00:00:00 nfsd
2382 ? 00:00:00 nfsd
2383 ? 00:00:00 nfsd
2384 ? 00:00:00 nfsd
2385 ? 00:00:00 nfsd
2386 ? 00:00:00 nfsd
2387 ? 00:00:00 nfsd
2388 ? 00:00:00 nfsd
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:/etc$ cd ~
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ps -e | grep nfs*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ps -e | grep nfs*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ps -e
PID TTY TIME CMD
1 ? 00:00:00 systemd
2 ? 00:00:00 kthreadd
3 ? 00:00:00 rcu_gp
4 ? 00:00:00 rcu_par_gp
6 ? 00:00:00 kworker/0:0H-kblockd
7 ? 00:00:00 kworker/0:1-events
9 ? 00:00:00 mm_percpu_wq
10 ? 00:00:00 ksoftirqd/0
11 ? 00:00:00 rcu_sched
12 ? 00:00:00 migration/0
13 ? 00:00:00 idle_inject/0
14 ? 00:00:00 cpuhp/0
15 ? 00:00:00 cpuhp/1
16 ? 00:00:00 idle_inject/1
17 ? 00:00:00 migration/1
18 ? 00:00:00 ksoftirqd/1
20 ? 00:00:00 kworker/1:0H
21 ? 00:00:00 cpuhp/2
22 ? 00:00:00 idle_inject/2
23 ? 00:00:00 migration/2
24 ? 00:00:00 ksoftirqd/2
26 ? 00:00:00 kworker/2:0H-kblockd
27 ? 00:00:00 cpuhp/3
28 ? 00:00:00 idle_inject/3
29 ? 00:00:00 migration/3
30 ? 00:00:00 ksoftirqd/3
31 ? 00:00:00 kworker/3:0-events
32 ? 00:00:00 kworker/3:0H-kblockd
33 ? 00:00:00 cpuhp/4
34 ? 00:00:00 idle_inject/4
35 ? 00:00:00 migration/4
36 ? 00:00:00 ksoftirqd/4
38 ? 00:00:00 kworker/4:0H-kblockd
39 ? 00:00:00 cpuhp/5
40 ? 00:00:00 idle_inject/5
41 ? 00:00:00 migration/5
42 ? 00:00:00 ksoftirqd/5
43 ? 00:00:00 kworker/5:0-events
44 ? 00:00:00 kworker/5:0H-kblockd
45 ? 00:00:00 kdevtmpfs
46 ? 00:00:00 netns
47 ? 00:00:00 rcu_tasks_kthre
48 ? 00:00:00 rcu_tasks_rude_
49 ? 00:00:00 rcu_tasks_trace
50 ? 00:00:00 kauditd
51 ? 00:00:00 kworker/3:1-events
54 ? 00:00:00 khungtaskd
55 ? 00:00:00 oom_reaper
56 ? 00:00:00 writeback
57 ? 00:00:00 kcompactd0
58 ? 00:00:00 ksmd
59 ? 00:00:00 khugepaged
105 ? 00:00:00 kintegrityd
106 ? 00:00:00 kblockd
107 ? 00:00:00 blkcg_punt_bio
108 ? 00:00:00 tpm_dev_wq
109 ? 00:00:00 ata_sff
111 ? 00:00:00 md
112 ? 00:00:00 edac-poller
113 ? 00:00:00 devfreq_wq
114 ? 00:00:00 watchdogd
115 ? 00:00:00 kworker/1:1-events
116 ? 00:00:00 kworker/u32:1-events_unbound
117 ? 00:00:00 pm_wq
118 ? 00:00:00 irq/25-AMD-Vi
120 ? 00:00:00 kswapd0
121 ? 00:00:00 ecryptfs-kthrea
123 ? 00:00:00 kthrotld
124 ? 00:00:00 irq/27-pciehp
125 ? 00:00:00 irq/28-pciehp
126 ? 00:00:00 acpi_thermal_pm
128 ? 00:00:00 vfio-irqfd-clea
129 ? 00:00:00 ipv6_addrconf
138 ? 00:00:00 kstrp
141 ? 00:00:00 zswap-shrink
142 ? 00:00:00 kworker/u33:0-hci0
149 ? 00:00:00 charger_manager
201 ? 00:00:00 kworker/1:2-events
202 ? 00:00:00 scsi_eh_0
203 ? 00:00:00 scsi_tmf_0
204 ? 00:00:00 scsi_eh_1
205 ? 00:00:00 scsi_tmf_1
207 ? 00:00:00 irq/53-SYNA30BA
208 ? 00:00:00 kworker/u32:3-events_unbound
210 ? 00:00:00 scsi_eh_2
211 ? 00:00:00 scsi_tmf_2
212 ? 00:00:00 scsi_eh_3
213 ? 00:00:00 scsi_tmf_3
214 ? 00:00:00 kworker/u32:4-events_unbound
217 ? 00:00:00 kworker/5:3-events
220 ? 00:00:00 kworker/3:3-events
221 ? 00:00:00 kworker/4:1H-kblockd
222 ? 00:00:00 kworker/5:1H-kblockd
224 ? 00:00:00 kworker/0:1H-kblockd
251 ? 00:00:00 jbd2/sda9-8
252 ? 00:00:00 ext4-rsv-conver
261 ? 00:00:00 kworker/2:1H-kblockd
265 ? 00:00:00 kworker/4:2-events
266 ? 00:00:00 kworker/3:1H-kblockd
287 ? 00:00:00 kworker/1:1H-kblockd
305 ? 00:00:00 systemd-journal
321 ? 00:00:00 rpciod
322 ? 00:00:00 xprtiod
325 ? 00:00:00 blkmapd
334 ? 00:00:00 kworker/4:3-events
335 ? 00:00:00 loop0
341 ? 00:00:00 systemd-udevd
343 ? 00:00:00 loop1
345 ? 00:00:00 loop2
357 ? 00:00:00 loop3
364 ? 00:00:00 loop4
374 ? 00:00:00 loop5
381 ? 00:00:00 loop6
396 ? 00:00:00 kworker/0:2-events
410 ? 00:00:00 cfg80211
416 ? 00:00:00 cryptd
422 ? 00:00:00 kworker/u33:2-xprtiod
435 ? 00:00:00 irq/60-iwlwifi:
443 ? 00:00:00 irq/61-iwlwifi:
444 ? 00:00:00 irq/62-iwlwifi:
446 ? 00:00:00 irq/63-iwlwifi:
447 ? 00:00:00 irq/64-iwlwifi:
448 ? 00:00:00 irq/65-iwlwifi:
450 ? 00:00:00 irq/66-iwlwifi:
452 ? 00:00:00 irq/67-iwlwifi:
469 ? 00:00:00 amd_iommu_v2
481 ? 00:00:00 kworker/2:2-events
488 ? 00:00:00 kworker/2:3-events
490 ? 00:00:00 ttm_swap
493 ? 00:00:00 gfx
494 ? 00:00:00 comp_1.0.0
495 ? 00:00:00 comp_1.1.0
496 ? 00:00:00 comp_1.2.0
497 ? 00:00:00 comp_1.3.0
498 ? 00:00:00 comp_1.0.1
499 ? 00:00:00 comp_1.1.1
500 ? 00:00:00 comp_1.2.1
501 ? 00:00:00 comp_1.3.1
502 ? 00:00:00 sdma0
504 ? 00:00:00 vcn_dec
505 ? 00:00:00 vcn_enc0
506 ? 00:00:00 vcn_enc1
507 ? 00:00:00 jpeg_dec
651 ? 00:00:00 jbd2/sda6-8
652 ? 00:00:00 ext4-rsv-conver
654 ? 00:00:00 jbd2/sda8-8
655 ? 00:00:00 ext4-rsv-conver
679 ? 00:00:00 rpcbind
683 ? 00:00:00 systemd-resolve
684 ? 00:00:00 systemd-timesyn
745 ? 00:00:00 accounts-daemon
746 ? 00:00:00 acpid
751 ? 00:00:00 avahi-daemon
752 ? 00:00:00 bluetoothd
753 ? 00:00:00 cron
754 ? 00:00:00 cupsd
755 ? 00:00:00 dbus-daemon
761 ? 00:00:00 NetworkManager
774 ? 00:00:00 irqbalance
778 ? 00:00:00 networkd-dispat
785 ? 00:00:00 polkitd
787 ? 00:00:00 rsyslogd
790 ? 00:00:01 snapd
794 ? 00:00:00 switcheroo-cont
795 ? 00:00:00 systemd-logind
797 ? 00:00:00 udisksd
800 ? 00:00:00 wpa_supplicant
810 ? 00:00:00 avahi-daemon
842 ? 00:00:00 cups-browsed
874 ? 00:00:00 ModemManager
880 ? 00:00:00 kworker/1:3-events
894 ? 00:00:00 sshd
916 ? 00:00:00 apache2
919 ? 00:00:00 apache2
920 ? 00:00:00 apache2
982 ? 00:00:00 unattended-upgr
991 ? 00:00:00 gdm3
1023 ? 00:00:00 gdm-session-wor
1046 ? 00:00:00 systemd
1052 ? 00:00:00 (sd-pam)
1058 ? 00:00:00 pulseaudio
1060 ? 00:00:52 tracker-miner-f
1063 ? 00:00:00 gnome-keyring-d
1067 tty2 00:00:00 gdm-x-session
1071 tty2 00:00:01 Xorg
1072 ? 00:00:00 dbus-daemon
1073 ? 00:00:00 rtkit-daemon
1080 ? 00:00:00 gvfsd
1095 ? 00:00:00 gvfsd-fuse
1100 ? 00:00:00 gvfs-udisks2-vo
1107 ? 00:00:00 gvfs-mtp-volume
1111 ? 00:00:00 gvfs-goa-volume
1115 ? 00:00:00 goa-daemon
1137 ? 00:00:00 goa-identity-se
1142 ? 00:00:00 gvfs-afc-volume
1148 ? 00:00:00 gvfs-gphoto2-vo
1152 ? 00:00:00 upowerd
1164 ? 00:00:00 krfcommd
1192 tty2 00:00:00 gnome-session-b
1260 ? 00:00:00 ssh-agent
1289 ? 00:00:00 at-spi-bus-laun
1294 ? 00:00:00 dbus-daemon
1313 ? 00:00:00 gnome-session-c
1320 ? 00:00:00 gnome-session-b
1335 ? 00:00:03 gnome-shell
1373 ? 00:00:00 ibus-daemon
1377 ? 00:00:00 ibus-dconf
1378 ? 00:00:00 ibus-extension-
1380 ? 00:00:00 ibus-x11
1382 ? 00:00:00 ibus-portal
1395 ? 00:00:00 at-spi2-registr
1399 ? 00:00:00 xdg-permission-
1404 ? 00:00:00 gnome-shell-cal
1410 ? 00:00:00 evolution-sourc
1418 ? 00:00:00 evolution-calen
1423 ? 00:00:00 dconf-service
1435 ? 00:00:00 evolution-addre
1459 ? 00:00:00 gjs
1469 ? 00:00:00 gvfsd-trash
1482 ? 00:00:00 gsd-a11y-settin
1483 ? 00:00:00 gsd-color
1485 ? 00:00:00 gsd-datetime
1491 ? 00:00:00 gsd-housekeepin
1492 ? 00:00:00 gsd-keyboard
1493 ? 00:00:00 gsd-media-keys
1494 ? 00:00:00 gsd-power
1497 ? 00:00:00 gsd-print-notif
1498 ? 00:00:00 gsd-rfkill
1499 ? 00:00:00 gsd-screensaver
1500 ? 00:00:00 gsd-sharing
1501 ? 00:00:00 gsd-smartcard
1503 ? 00:00:00 gsd-sound
1505 ? 00:00:00 gsd-usb-protect
1506 ? 00:00:00 gsd-wacom
1507 ? 00:00:00 gsd-wwan
1509 ? 00:00:00 gsd-xsettings
1529 ? 00:00:00 evolution-alarm
1559 ? 00:00:00 gsd-disk-utilit
1563 ? 00:00:00 ibus-engine-sim
1590 ? 00:00:00 colord
1620 ? 00:00:00 gsd-printer
1661 ? 00:00:00 nmbd
1662 ? 00:00:00 whoopsie
1664 ? 00:00:00 kerneloops
1668 ? 00:00:00 kerneloops
1692 ? 00:00:00 smbd
1695 ? 00:00:00 smbd-notifyd
1696 ? 00:00:00 cleanupd
1697 ? 00:00:00 lpqd
1728 ? 00:00:01 gnome-terminal-
1736 pts/0 00:00:00 bash
1744 pts/0 00:00:01 top
1749 ? 00:00:00 sshd
1867 ? 00:00:00 sshd
1868 pts/1 00:00:00 bash
1912 ? 00:00:00 dbus
1913 ? 00:00:00 dbus
1914 ? 00:00:00 dbus
1937 ? 00:00:00 gvfsd-metadata
1942 ? 00:00:00 update-notifier
2028 ? 00:00:00 smbd
2371 ? 00:00:00 rpc.idmapd
2372 ? 00:00:00 rpc.mountd
2376 ? 00:00:00 lockd
2377 ? 00:00:00 kworker/4:0-events
2378 ? 00:00:00 kworker/4:1-events
2381 ? 00:00:00 nfsd
2382 ? 00:00:00 nfsd
2383 ? 00:00:00 nfsd
2384 ? 00:00:00 nfsd
2385 ? 00:00:00 nfsd
2386 ? 00:00:00 nfsd
2387 ? 00:00:00 nfsd
2388 ? 00:00:00 nfsd
2395 pts/1 00:00:00 ps
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ps -e | grep nfs*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ps -e | grep nfs
2381 ? 00:00:00 nfsd
2382 ? 00:00:00 nfsd
2383 ? 00:00:00 nfsd
2384 ? 00:00:00 nfsd
2385 ? 00:00:00 nfsd
2386 ? 00:00:00 nfsd
2387 ? 00:00:00 nfsd
2388 ? 00:00:00 nfsd
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ps -e | grep nfs*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$
3、NFS服务器配置(开发板)
# 新建一个文件夹用于挂载NFS文件
mkdir my_nfs
# 挂载NFS
# 格式:mount <device> <path> <name> [uid gid]
(这个是鸿蒙系统下的参数配置,linux下的略有不同!)
mount 192.168.1.6:/home/long/nfs_files /my_nfs nfs
https://blog.csdn.net/qq_30722795/article/details/110275444
linux开发板挂载NFS网络文件系统
剑之所向 2019-02-06 17:12:28 2739 收藏 12
开发板设置去挂载网络上(linux服务器)的文件系统
配置开发板的ip 开发板上启动内核和文件系统后
查看ip地址#ifconfig
设置ip地址# ifconfig eth0 192.168.2.3
开发板启动flash的文件系统后,建立一个/mnt目录作为挂载点,
我们把linux服务器的文件系统挂载到mnt目录
# mount -t nfs -o nolock 192.168.2.2:/work/nfs_root/first_fs /mnt
可能出现以下问题
nfs: server 192.168.2.2 not responding, still trying
nfs: server 192.168.2.2 not responding, still trying
nfs: server 192.168.2.2 not responding, still trying
建议改用以下命令(nfs本身的问题,nfs默认是udp协议,因此使用下面的命令完美解决)
#mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.2.2:/work/nfs_root/first_fs /mnt
hibvt_rtc 12080000.rtc: setting system clock to 1970-01-01 01:25:46 UTC (5146)
clk: Not disabling unused clocks
Waiting for root device /dev/mmcblk0p3...
mmc0: new HS200 MMC card at address 0001
mmc0: -524: cmdq: unable to set-up
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
_ _ _ _ _ _ _ _ _ _ _ _
\ _ _ _ _ _ ___
/ /__/ \ |_/
/ __ / - _ ___
/ / / / / /
_ _ _ _/ / / \_/ \_ ______
___________\___\__________________
[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
random: udevd: uninitialized urandom read (16 bytes read)
udevd[89]: starting eudev-3.2.7
[RCS]: /etc/init.d/S80network
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Auto login as root ...
login[109]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.
~ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
~ #
~ #
~ #
~ #
~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:756 (756.0 B) TX bytes:648 (648.0 B)
Interrupt:26
~ #
~ #
~ # ping www.baidu.com
PING www.baidu.com (104.193.88.123): 56 data bytes
64 bytes from 104.193.88.123: seq=0 ttl=53 time=176.839 ms
64 bytes from 104.193.88.123: seq=1 ttl=53 time=171.034 ms
64 bytes from 104.193.88.123: seq=2 ttl=53 time=167.973 ms
64 bytes from 104.193.88.123: seq=3 ttl=53 time=169.294 ms
64 bytes from 104.193.88.123: seq=4 ttl=53 time=176.662 ms
^C
--- www.baidu.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 167.973/172.360/176.839 ms
~ #
~ #
~ #
~ # ls -l
total 0
~ #
~ # pwd
/root
~ #
~ #
~ # cd /
/ #
random: fast init done
/ #
/ # pwd
/
/ #
/ #
/ #
/ # ls -l
total 84
drwxr-x--- 2 root root 4096 Jan 1 00:34 bin
drwxr-x--- 2 root root 4096 Apr 19 2006 boot
drwxr-xr-x 9 root root 3000 Jan 1 01:25 dev
drwxr-x--- 4 root root 4096 Jan 1 00:03 etc
drwxr-x--- 2 root root 4096 Apr 19 2006 home
lrwxrwxrwx 1 root root 9 Apr 1 2021 init -> sbin/init
drwxr-x--- 2 root root 4096 Jun 20 2018 komod
drwxr-x--- 2 root root 4096 Apr 1 2021 lib
lrwxrwxrwx 1 root root 11 Apr 1 2021 linuxrc -> bin/busybox
drwxr-x--- 2 root root 4096 Apr 19 2006 lost+found
-rwxr-x--- 1 root root 1317 Jul 31 2018 mkimg.rootfs
-rwxr-x--- 1 root root 431 Apr 21 2011 mknod_console
drwxr-x--- 2 root root 4096 Apr 19 2006 mnt
drwxr-x--- 2 root root 4096 Jan 1 00:14 my_nfs
drwxr-x--- 2 root root 4096 May 21 2008 nfsroot
drwxr-x--- 2 root root 4096 Apr 19 2006 opt
dr-xr-xr-x 81 root root 0 Jan 1 00:00 proc
drwxr-x--- 2 root root 4096 Jan 1 00:03 root
drwxr-xr-x 3 root root 4096 Jan 1 00:01 run
dr-xr-x--- 2 root root 4096 Apr 1 2021 sbin
drwxr-x--- 2 root root 4096 Apr 19 2006 share
drwxr-x--- 2 root root 4096 Jun 20 2018 sharefs
dr-xr-xr-x 12 root root 0 Jan 1 01:25 sys
drwxr-x--- 2 root root 4096 Apr 19 2006 tmp
drwxr-x--- 6 root root 4096 Apr 1 2021 usr
drwxr-x--- 3 root root 4096 Apr 19 2006 var
/ #
/ #
/ # cd my_nfs/
/my_nfs #
/my_nfs # ls -l
total 0
/my_nfs #
/my_nfs #
/my_nfs #
/my_nfs #
/my_nfs # ping 192.168.0.204
PING 192.168.0.204 (192.168.0.204): 56 data bytes
64 bytes from 192.168.0.204: seq=0 ttl=64 time=1.517 ms
64 bytes from 192.168.0.204: seq=1 ttl=64 time=0.983 ms
64 bytes from 192.168.0.204: seq=2 ttl=64 time=0.680 ms
64 bytes from 192.168.0.204: seq=3 ttl=64 time=0.906 ms
64 bytes from 192.168.0.204: seq=4 ttl=64 time=0.594 ms
64 bytes from 192.168.0.204: seq=5 ttl=64 time=0.815 ms
^C
--- 192.168.0.204 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.594/0.915/1.517 ms
/my_nfs #
/my_nfs #
/my_nfs #
/my_nfs #
/my_nfs # mount 192.168.0.204:/home/rootroot/nfs_files /my_nfs nfs
BusyBox v1.26.2 (2021-04-01 16:31:59 CST) multi-call binary.
Usage: mount [OPTIONS] [-o OPT] DEVICE NODE
Mount a filesystem. Filesystem autodetection requires /proc.
-a Mount all filesystems in fstab
-f Dry run
-v Verbose
-r Read-only mount
-t FSTYPE[,...] Filesystem type(s)
-T FILE Read FILE instead of /etc/fstab
-O OPT Mount only filesystems with option OPT (-a only)
-o OPT:
loop Ignored (loop devices are autodetected)
[a]sync Writes are [a]synchronous
[no]atime Disable/enable updates to inode access times
[no]diratime Disable/enable atime updates to directories
[no]relatime Disable/enable atime updates relative to modification time
[no]dev (Dis)allow use of special device files
[no]exec (Dis)allow use of executable files
[no]suid (Dis)allow set-user-id-root programs
[r]shared Convert [recursively] to a shared subtree
[r]slave Convert [recursively] to a slave subtree
[r]private Convert [recursively] to a private subtree
[un]bindable Make mount point [un]able to be bind mounted
[r]bind Bind a file or directory [recursively] to another location
move Relocate an existing mount point
remount Remount a mounted filesystem, changing flags
ro Same as -r
There are filesystem-specific -o flags.
/my_nfs #
/my_nfs #
/my_nfs # ls -l
total 0
/my_nfs #
/my_nfs #
/my_nfs # mount -t nfs -o nolock 192.168.0.204:/home/rootroot/nfs_files /my_nfs
/my_nfs #
/my_nfs # ls -l
total 0
/my_nfs #
/my_nfs #
/my_nfs # cd ..
/ #
/ #
/ # ls -l
total 84
drwxr-x--- 2 root root 4096 Jan 1 00:34 bin
drwxr-x--- 2 root root 4096 Apr 19 2006 boot
drwxr-xr-x 9 root root 3000 Jan 1 01:25 dev
drwxr-x--- 4 root root 4096 Jan 1 00:03 etc
drwxr-x--- 2 root root 4096 Apr 19 2006 home
lrwxrwxrwx 1 root root 9 Apr 1 2021 init -> sbin/init
drwxr-x--- 2 root root 4096 Jun 20 2018 komod
drwxr-x--- 2 root root 4096 Apr 1 2021 lib
lrwxrwxrwx 1 root root 11 Apr 1 2021 linuxrc -> bin/busybox
drwxr-x--- 2 root root 4096 Apr 19 2006 lost+found
-rwxr-x--- 1 root root 1317 Jul 31 2018 mkimg.rootfs
-rwxr-x--- 1 root root 431 Apr 21 2011 mknod_console
drwxr-x--- 2 root root 4096 Apr 19 2006 mnt
drwxrwxr-x 2 1000 1000 4096 Apr 2 2021 my_nfs
drwxr-x--- 2 root root 4096 May 21 2008 nfsroot
drwxr-x--- 2 root root 4096 Apr 19 2006 opt
dr-xr-xr-x 81 root root 0 Jan 1 00:00 proc
drwxr-x--- 2 root root 4096 Jan 1 00:03 root
drwxr-xr-x 3 root root 4096 Jan 1 00:01 run
dr-xr-x--- 2 root root 4096 Apr 1 2021 sbin
drwxr-x--- 2 root root 4096 Apr 19 2006 share
drwxr-x--- 2 root root 4096 Jun 20 2018 sharefs
dr-xr-xr-x 12 root root 0 Jan 1 01:25 sys
drwxr-x--- 2 root root 4096 Apr 19 2006 tmp
drwxr-x--- 6 root root 4096 Apr 1 2021 usr
drwxr-x--- 3 root root 4096 Apr 19 2006 var
/ #
/ #
/ # cd my_nfs/
/my_nfs #
/my_nfs # ls -l
total 112
-rwxrwxr-x 1 1000 1000 112812 Apr 2 2021 himm
/my_nfs #
/my_nfs #
/my_nfs # cp himm /bin/
/my_nfs #
/my_nfs #
出现如下,即为挂载完成!!!
/ #
/ # cd my_nfs/
/my_nfs #
/my_nfs # ls -l
total 112
-rwxrwxr-x 1 1000 1000 112812 Apr 2 2021 himm
/my_nfs #
/my_nfs #
57-20210402华为海思Hi3516DV300的linux系统下NFS文件系统挂载(eMMC模式)相关推荐
- 56-20210402华为海思Hi3516DV300的linux系统下读取TF卡(eMMC模式)
56-20210402华为海思Hi3516DV300的linux系统下读取TF卡(eMMC模式) 2021/4/2 15:02 https://xueqiu.com/7970718062/159110 ...
- 61-20210407华为海思Hi3516DV300的linux系统下控制GPIO口(标准linux模式点亮LED灯)
61-20210407华为海思Hi3516DV300的linux系统下控制GPIO口(标准linux模式点亮LED灯) 2021/4/7 15:13 https://xueqiu.com/797071 ...
- 51-20210316华为海思Hi3516DV300的linux系统编译2(SPI模式)
51-20210316华为海思Hi3516DV300的linux系统编译 2021/3/16 10:42 https://xueqiu.com/7970718062/159110439 官井想开挖掘机 ...
- 51-20210316华为海思Hi3516DV300的linux系统编译1(SPI模式)
51-20210316华为海思Hi3516DV300的linux系统编译 2021/3/16 10:42 https://xueqiu.com/7970718062/159110439 官井想开挖掘机 ...
- 52-20210322华为海思Hi3516DV300的linux系统编译(eMMC模式)1
52-20210322华为海思Hi3516DV300的linux系统编译(eMMC模式) 2021/3/22 18:00 请严重注意: 本文所使用的的SDK是:Hi3516CV500R001C02SP ...
- 12-20210225华为海思Hi3518EV300在鸿蒙系统下测试WIFI(AP+STATION模式)
12-20210225华为海思Hi3518EV300在鸿蒙系统下测试WIFI(AP+STATION模式) 2021/2/25 10:45 [HarmonyOS HiSpark_IPC_DIY开发套件] ...
- 11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像)
11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像) 2021/2/25 9:37 将Hi3518EV300在鸿蒙系统下配置为UVC模式,原厂(华为海思/江苏润和) ...
- 05-20210301在WIN10下通过串口给华为海思Hi3516DV300刷机(鸿蒙系统)
05-20210301在WIN10下通过串口给华为海思Hi3516DV300刷机(鸿蒙系统) 2021/3/1 15:11 (!!!!请严重注意,串口烧录需要花很久很久的时间:2小时6分41秒.) h ...
- 07-20210305在WIN10下通过USB口给华为海思Hi3516DV300刷机(鸿蒙系统)
07-20210305在WIN10下通过USB口给华为海思Hi3516DV300刷机(鸿蒙系统) 2021/3/5 17:26 https://blog.csdn.net/cocoron/articl ...
- 08-20210305在WIN10下通过网口给华为海思Hi3516DV300刷机(鸿蒙系统)
08-20210301在WIN10下通过网口给华为海思Hi3516DV300刷机(鸿蒙系统) 2021/3/5 11:03 https://bbs.elecfans.com/jishu_2002000 ...
最新文章
- 《UNIXLinux程序设计教程》一3.7 非阻塞I/O
- linux lvm 调整分区大小,linux调整lvm分区大小(/home分区过大,/root分区过小)
- 微信又添新功能!这个微信群可以学英语,而且全程免费
- kotlin 二进制_Kotlin程序检查数字是否为二进制
- freecodecamp_freeCodeCamp的服务器到底发生了什么?
- 给管道注册事件,用于用户是否登录!
- python数据1-4
- Lyft Level 5 Challenge 2018 - Elimination Round题解【待补】
- 字符串hash(类似于进制的hash)
- 电脑照片尺寸如何调整成自己想要的
- hilbert希尔伯特变换
- 【伸手党福利】投影仪初学者入门——投影亮度及幕布选择——从入门到精通
- c语言int作用,C语言中的int max(int x,int y) 究竟有何作用?
- 服务器端渲染-Vue SSR搭建
- his系统计算机软件,医院信息系统(HIS)
- Java中==与equals
- Java常见的线程安全工具容器类(待完善)
- 51nod1327 棋盘游戏 [dp]
- 蓝旭前端第二周预习———HTML标签+如何查看控制台
- html中的布局方式,网页设计的布局方式有哪几种
热门文章
- 使用Python,OpenCV反转视频
- java程序员的电脑配置_JAVA程序员笔记本电脑推荐?
- win7计算机广告更改,win7电脑弹窗广告怎么彻底关闭_win7去除弹窗广告的步骤
- 百位LOL英雄联盟角色合集
- 如何自己搭建钓鱼网站检测系统
- Animation动画播放
- python为图像设置标记_Python OpenCV 图像标记,取经之旅第 12 天
- IPV6个人使用,实测电脑ping通联通手机
- git 拉取代码时提示:would clobber existing tag
- java中,参数后面跟三个点(...)的含义