当前位置:网站首页>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 
边栏推荐
- A new attribute value must be added to the entity entity class in the code, but there is no corresponding column in the database table
- Operator details
- Map in JS (including leetcode examples)
- C case of communication between server and client based on mqttnet
- 函数栈帧的创建和销毁
- Mysql重点难题(2)汇总
- Fabric.js 将本地图像上传到画布背景
- The underlying principle of go map (storage and capacity expansion)
- Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
- How to configure PostgreSQL 12.9 to allow remote connections
猜你喜欢

Fabric.js 右键菜单

Fabric.js 渐变

Storage of data

Gee: remote sensing image composite and mosaic

Video cover image setting, put cover images into multiple videos in the simplest way

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

Gee dataset: chirps pentad high resolution global grid rainfall dataset
![Gee: use of common mask functions in remote sensing image processing [updatemask]](/img/55/bf4ef5fc923242e72caab71f1a4e4b.jpg)
Gee: use of common mask functions in remote sensing image processing [updatemask]

C case of communication between server and client based on mqttnet

Fabric.js IText设置指定文字的颜色和背景色
随机推荐
Summary of database problems
黑馬筆記---Set系列集合
[opencv] image binarization
将光盘中的cda保存到电脑中
Solution: the agent throws an exception error
Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share
Video multiple effects production, fade in effect and border background are added at the same time
Collectors. Groupingby sort
Fasttext text text classification
Oracle和MySQL的基本区别(入门级)
Leetcode18题 【四数之和】递归解法
The reason why sizeof (ARR) / sizeof (arr[0]) is used in the function to calculate the length of the array is incorrect
Differential identities (help find mean, variance, and other moments)
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
Basic differences between Oracle and MySQL (entry level)
Fabric.js 精简JSON
ubuntu20.04安装mysql8
6.30 year end summary, end of student age
Mysql重点难题(2)汇总
Fabric.js 将本地图像上传到画布背景