当前位置:网站首页>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 
边栏推荐
- Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
- Gee series: unit 7 remote sensing image classification using GEE [random forest classification]
- 黑馬筆記---Set系列集合
- Record my pytorch installation process and errors
- Summary of MySQL key challenges (2)
- Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share
- Exercise notes 13 (effective letter ectopic words)
- 國產全中文-自動化測試軟件Apifox
- Set the default style of scroll bar Google browser
- Video cover image setting, put cover images into multiple videos in the simplest way
猜你喜欢

Gee series: Unit 2 explore datasets

Simple and practical accounting software, so that accounts can be checked

Paddlepaddle project source code

Gee: create a new feature and set corresponding attributes

Storage of data

运维工作的“本手、妙手、俗手”

Summary of database problems

Fabric.js 将本地图像上传到画布背景

创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
![Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]](/img/ff/59956c2323567cc614458a2bccb642.jpg)
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]
随机推荐
视差特效的原理和实现方法
ERP management system development and design existing source code
Summary of database problems
Fabric.js 背景不受视口变换影响
Fabric.js 激活输入框
[quick view opencv] familiar with CV matrix operation with image splicing examples (3)
Leetcode18题 【四数之和】递归解法
Essence and physical meaning of convolution (deep and brief understanding)
Basic differences between Oracle and MySQL (entry level)
Briefly introduce chown command
Fabric.js 渐变
Fabric.js 右键菜单
Operator details
Leetcode basic programming: array
7.1 simulation summary
Draw a wave chart_ Digital IC
Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
2022阿里巴巴全球数学竞赛 第4题 虎虎生威(盲盒问题、集卡问题)解决思路
No logic is executed after the El form is validated successfully
Summary of MySQL key challenges (2)