当前位置:网站首页>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 
边栏推荐
- 视差特效的原理和实现方法
- Black Horse Notes - - set Series Collection
- 画波形图_数字IC
- Summary of database problems
- Using QA band and bit mask in Google Earth engine
- 函数栈帧的创建和销毁
- [high speed bus] Introduction to jesd204b
- Mathematical problems (number theory) trial division to judge prime numbers, decompose prime factors, and screen prime numbers
- C # picture display occupancy problem
- Collectors. Groupingby sort
猜你喜欢

Paddlepaddle project source code

黑马笔记---Map集合体系

Record my pytorch installation process and errors

Operator details

Collectors. Groupingby sort

4. Flask cooperates with a tag to link internal routes

LS1046nfs挂载文件系统

Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization

Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced

视差特效的原理和实现方法
随机推荐
将光盘中的cda保存到电脑中
Line by line explanation of yolox source code of anchor free series network (7) -- obj in head_ loss、Cls_ Loss and reg_ Calculation and reverse transmission of loss I
Feign realizes file uploading and downloading
Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
CubeMx DMA笔记
Go GC garbage collection notes (three color mark)
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]
Feign realizes file uploading and downloading
Pycharm breakpoint management: temporarily cancel some breakpoints + run directly to a line
Detailed explanation of Pointer use
Pyflink writes MySQL examples with JDBC
About PROFIBUS: communication backbone network of production plant
Fabric.js 3个api设置画布宽高
Gee: remote sensing image composite and mosaic
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
黑马笔记---Map集合体系
Cultivate primary and secondary school students' love for educational robots
Mathematical knowledge -- understanding and examples of fast power
Disable access to external entities in XML parsing
Video multiple effects production, fade in effect and border background are added at the same time