当前位置:网站首页>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
边栏推荐
- Global and Chinese market of hydrocyclone desander 2022-2028: Research Report on technology, participants, trends, market size and share
- Go implements leetcode rotation array
- Gee dataset: chirps pentad high resolution global grid rainfall dataset
- go实现leetcode旋转数组
- 函数中使用sizeof(arr) / sizeof(arr[0])求数组长度不正确的原因
- Fabric.js 渐变
- 7.1 simulation summary
- LeetCode 1175. Prime number arrangement (prime number judgment + Combinatorial Mathematics)
- 将光盘中的cda保存到电脑中
- Cultivate primary and secondary school students' love for educational robots
猜你喜欢
摆正元素(带过渡动画)
Nodejs (02) - built in module
Collectors.groupingBy 排序
Creation and destruction of function stack frames
Collectors. Groupingby sort
Fabric.js 渐变
黑馬筆記---Set系列集合
Record my pytorch installation process and errors
Analyzing the hands-on building tutorial in children's programming
How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
随机推荐
7.1模擬賽總結
No logic is executed after the El form is validated successfully
Gee: create a new feature and set corresponding attributes
Case sharing | intelligent Western Airport
Johnson–Lindenstrauss Lemma(2)
Gee data set: export the distribution and installed capacity of hydropower stations in the country to CSV table
Gee: use of common mask functions in remote sensing image processing [updatemask]
Fabric.js 精简JSON
C # picture display occupancy problem
Online English teaching app open source platform (customized)
Creation and destruction of function stack frames
[high speed bus] Introduction to jesd204b
7.1 simulation summary
The El cascader echo only selects the questions that are not displayed
How to configure PostgreSQL 12.9 to allow remote connections
Fabric.js 基础笔刷
Collectors. Groupingby sort
Pyflink writes MySQL examples with JDBC
4. Flask cooperates with a tag to link internal routes
Cubemx DMA notes