当前位置:网站首页>Ls1046nfs mount file system
Ls1046nfs mount file system
2022-07-02 05:17:00 【MHai】
For embedded Linux Development , adopt NFS Mount the root file system , The root file system does not need to be downloaded to FLASH(FLASH You also need to erase before writing ), Can be saved directly in Linux host , And in Linux The developed driver does not need to be downloaded to Linux Development board FLASH, This makes development very convenient and fast , The passage is recorded below NFS The process of mounting the root file system .
linux Modification on virtual machine :
1) open /etc/exports, The content in the edit is
/home/nfs *(rw,sync,insecure,no_root_squash,no_all_squash,no_subtree_check)
2) Re open nfs
/etc/init.d/nfs-kernel-server restart
3) stay /home/nsf Put into file system
4) modify ls1046ardb_boot.scr file
Input boot Command to start the kernel , The device will execute an additional startup script :/boot/ls1046ardb_boot.scr
The script is located on the development board /dev/mmcblk0p2 Medium /boot Under the table of contents , The script will be rewritten during execution bootargs environment variable , This leads to the user setting before bootargs Will be covered , The system will not be able to mount the root file system from a user-defined location .
ls1046ardb_boot.scr Is a binary program , among :
The source file is located in :flexbuild/configs/board/ls1046ardb/manifest
Compile generated .scr The file is located in :flexbuild/build/firmware/u-boot/ls1046ardb/ls1046ardb_boot.scr
The compile command is :flex-builder -i mkdistroscr -a arm64 -m ls1046ardb
Where is the source file mainfest Medium and startup settings bootargs What's relevant is :
setenv bootargs console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=$partuuid3
rw rootwait board_name=$board_name serdes1=$serdes1 $othbootargs;
Put setenv bootargs Delete , Then recompile to generate .scr Program , And update it to the development board emmc The partition 2( The equipment is :/dev/mmcblk0p2) Of boot Under the table of contents . In this way, we will uboot The command set in will not be rewritten .
5) In the development board u-boot Stage settings bootargs environment variable
=>setenv bootargs 'console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root
fstype=nfsroot root=/dev/nfs nfsroot=192.168.8.10:/home/nfs,proto=tcp,nfsvers=3,nolock
ip=192.168.8.46:192.168.8.10:192.168.8.1:255.255.255.0::eth1:off
board_name=$board_name serdes1=$serdes1 $othbootargs'
=>saveenv
192.168.8.10 by ubuntu The server ip,192.168.8.46 For development board ip, Guarantee two ip In the same network segment ping All right , stay uboot The default network port used in the phase is fm1-mac3, At this stage, the network interface is named eth1, This cannot be written as fm1-mac3.
After restart nfs Mount the root file system
stay /home/nfs Created in aaa Folder
You can see that the root directory of the development board appears aaa Folder ,nfs Mount successfully
边栏推荐
- 7.1模擬賽總結
- Collectors. Groupingby sort
- About PROFIBUS: communication backbone network of production plant
- Pycharm breakpoint management: temporarily cancel some breakpoints + run directly to a line
- Gee series: unit 8 time series analysis in Google Earth engine [time series]
- 指针使用详解
- LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
- 4. Flask cooperates with a tag to link internal routes
- 摆正元素(带过渡动画)
- Gee: use of common mask functions in remote sensing image processing [updatemask]
猜你喜欢
创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
No logic is executed after the El form is validated successfully
摆正元素(带过渡动画)
视差特效的原理和实现方法
Pyechart1.19 national air quality exhibition
Fabric.js 精简JSON
Video multiple effects production, fade in effect and border background are added at the same time
Pyechats 1.19 generate a web version of Baidu map
Solution: the agent throws an exception error
Record my pytorch installation process and errors
随机推荐
Dark horse notes -- Set Series Collection
LeetCode 1175. 质数排列(质数判断+组合数学)
MMAP zero copy knowledge point notes
Nodejs (03) -- custom module
Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
LS1046nfs挂载文件系统
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]
6.网络-基础
Fabric.js IText 手动设置斜体
Leetcode basic programming: array
Fabric.js 右键菜单
Mathematical knowledge (Euler function)
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
How to make an RPM file
Collectors. Groupingby sort
There are duplicate elements in leetcode. Go implementation
Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
Feign realizes file uploading and downloading
Set the default style of scroll bar Google browser
Exercise notes 13 (effective letter ectopic words)