当前位置:网站首页>TFTP download kernel, NFS mount file system
TFTP download kernel, NFS mount file system
2022-06-30 17:31:00 【Cao Lele loves learning】
TFTP Download function :
1、 First, build tftp The server : Under the virtual machine Ubuntu20
sudo apt-get install tftp-hpa tftpd-hpa
sudo apt-get install xinetdmkdir -p /home/ckl/my_board/tftp
sudo chmod 777 /home/ckl/my_board/tftp
2、 To configure tftp:
New file /etc/xinetd.d/tftp
server tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /home/ckl/my_board/tftp
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
Modify file :/etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/ckl/my_board/tftp"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="-l -c -s"
3、 take Image and dtb Put it in tftp Under the table of contents

mount :
1、 Format a SD card (fat32 Format )
2、 Only the modified atom is burned uboot
sudo dd if=./u-boot.imx of=/dev/sdc bs=1024 seek=1

3、 Set network related parameters :
==> setenv ipaddr 192.168.1.100
==> setenv ethaddr 0:0c:29:c6:ff:c9
==> setenv gatewayip 192.168.1.1
==> setenv netmask 255.255.255.0
==> setenv serverip 192.168.1.99
【 Premise : It's set up 】: Reference resources :uboot Next use nfs Download Online kernel
4、 a key :
1、 Set up bootarges( Set up nfs Mount file system )
setenv bootargs 'console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.1.99:/home/ckl/my_board/nfs/rootfs,proto=tcp nfsvers=4 rw ip=192.168.1.100:192.168.1.99:192.168.1.1:255.255.255.0:ckl:eth0:off'$ root=/dev/nfs nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>] ip=<client-ip>:<server-ip>:<gwip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip>
<server-ip>: The server IP Address , That is, the host where the root file system is stored IP Address
<root-dir>: Storage path of root file system
<nfs-options>: NFS Other optional options for , Generally not set
<client-ip>: client IP Address , That is, our development board IP Address
<server-ip>: The server IP Address , ditto<gw-ip>: default gateway
<netmask>: Subnet mask , It's usually 255.255.255.0<hostname>: The name of the client , This value can be left blank
<device>: Device name , That is, the network card name , The use of atomic alpha use ENET2, Network card name is eth0
<autoconf>: Automatic configuration , Generally not used , So set to off
<dns0-ip>: DNS0 The server IP Address , Don't use
<dns1-ip>: DNS1 The server IP Address , Don't use
therefore :root=/dev/nfs nfsroot=192.168.1.99:/home/ckl/my_board/nfs/rootfs,proto=tcp rw ip=192.168.1.100:192.168.1.99:192.168.1.1:255.255.255.0:ckl:eth0:off
proto=tcp” Said the use of TCP agreement ,“rw” Express nfs The mounted root file system is readable and writable
Baidu :nfs The mount is incompatible , So will bootargs Change to specify NFSv4
2、 Set up bootcmd
setenv bootcmd 'tftp 80800000 zImage;tftp 83000000 standerd.dtb;bootz 80800000 - 83000000'=> saveenv
=> reset
边栏推荐
- Nichenet actual silicosis
- canvas鼠标控制重力js特效
- Exch:exchange server 2013 is about to end support
- 高等数学(第七版)同济大学 总习题一 个人解答
- 分享 5 大常用的特征选择方法,机器学习入门必看!!!
- 5G业务正式商用,属于广电的机会在哪?
- Write the simplest small program in C language Hello World
- MOOG servo valve d661-4577c
- Construction schedule of intelligent management and control platform in Shanxi Chemical Industry Park
- [C language] detailed explanation of threads - multi threads for collaborative operation
猜你喜欢

canvas鼠标控制重力js特效

如何写一个技术方案

Splitting.js文本标题缓慢加载js特效

Horizontal visual error effect JS special effect code

Rexroth hydraulic control check valve z2s10-1-3x/

Differential analysis between different groups nichenet for silicosis runs successfully!

Implementation of graduation project management system based on SSM

New power of data analysis -- the first open source integrated real-time HTAP database in China was released by stonedb

ssh工具 pyqt

广电5G正式启航,黄金频段将如何应用引关注
随机推荐
Map集合
美国PARKER派克传感器P8S-GRFLX
万卷书 - 书单整理 [01]
Implementation of graduation project management system based on SSM
【Proteus仿真】Arduino UNO利用74LS148扩展中断
parker比例溢流阀RS10R35S4SN1JW
Plane intersection and plane equation
中基协:推荐使用电子合同
MySQL advanced notes
【C语言】详解线程 — 开启两个线程
Consolidate entry-C basic variables and constants
js 从原型链到继承
Cesium-1.72 learning (earth rotation)
登录框Tricks
高等数学(第七版)同济大学 总习题一 个人解答
【网易云信】播放demo构建:无法将参数 1 从“AsyncModalRunner *”转换为“std::nullptr_t”**
6 張圖帶你搞懂 TCP 為什麼是三次握手?
k线图精解与实战应用技巧(见位进场)
将 EMQX Cloud 数据通过公网桥接到 AWS IoT
【OpenCV 例程200篇】215. 基于多段线绘制近似椭圆