当前位置:网站首页>3 -- Xintang nuc980 kernel supports JFFS2, JFFS2 file system production, kernel mount JFFS2, uboot network port settings, and uboot supports TFTP
3 -- Xintang nuc980 kernel supports JFFS2, JFFS2 file system production, kernel mount JFFS2, uboot network port settings, and uboot supports TFTP
2022-07-07 02:26:00 【A beam of light in the dark 1023】
Contents of this article
1.uboot Network port setting
2. Kernel creation MTD Partition ,Jffs2 File system production
3. The kernel support jffs2
4. Kernel mount jffs2
First support spi nor flash
https://blog.csdn.net/qq_43145360/article/details/125520066?spm=1001.2014.3001.5502
1.uboot Network port setting
Print the file path that needs to be modified for the space problem , I'll meet you later
//Net:
board_r.c 659
// modify nuc980 emac
drivers/net/nuc980_eth.c 255
Final effect :
1) modify include/configs/nuc980_evb.h
Modified into :
2) modify include/env_default.h
default_enviroment Newly added CONFIG_ETHADDR
3) modify uboot Configure and support network ports
open network device support
modify Command line interface
->Network commands
Remove the first three , Otherwise, it can't be used tftp. Support ping
4) Compile and download
Print out env
Use the network cable to make the board and the computer in the same network segment , open tftp Tools , Use tftp Download the kernel image
tftp 0xa0000 980uimage
run bootcmd
2. Kernel creation MTD Partition ,Jffs2 File system production
Kernel creation MTD Partition reference article
https://blog.csdn.net/qq_43145360/article/details/125573572?spm=1001.2014.3001.5502
Effect after kernel startup :
Busybox Making root file system can refer to the article
Reference article
https://blog.csdn.net/weixin_38387929/article/details/108538631?spm=1001.2014.3001.5506
Need to use mtd-util Of mkfs.jffs2 and rootfs/ Generate rootfs.jffs2
Make jffs2 Mirror can refer to the article
https://blog.csdn.net/itismine/article/details/4775824?spm=1001.2014.3001.5506
After compilation, it can be started in /dev/ram0 Within the Division cramfs Format of the file system
Generated rootfs.jff2 Put it in rootfs/tmp/ in , Program into the kernel image
3. The kernel support jffs2
File systems --->
Miscellaneous filesystems --->
<*> YAFFS2 file system support
[*] Autoselect yaffs2 format
Configure language options
Native Language support --->
(iso8859-1) Default NLS Option
<*> Codepage 437(United States, Canada)
<*> Simplified Chinese charset(CP936, GB2312)
<*> NLS ISO8859-1 (Latin 1; Western European Language)
<*> NLS UTF-8
4. Kernel mount jffs2
Use uboot After booting the kernel , Get into tmp in ,
Use dd Command generation is all ff Of , Size and mtdblock2 Same file , Also on the tmp in , Program into kernel ,
Reference article
https://www.jianshu.com/p/398fb66d06b2
Using redirection cat erase mtdblock2 Partition
cat fftxt > /dev/mtdblock2
Use cat take rootfs.jff2 write in mtdblock2 Partition
cat rootfs.jffs2 > /dev/mtdblock2
mount -a
mdev -s
notice proc After there is a device under the folder
Use mount mount /dev/block2 Partition
mount -t jffs2 /dev/mtdblock2 /mnt
cd /mnt
ls
You can see the mounted file system
It has been debugged to this , About cramfs and jffs2, I think this is to start a small file system first (ram), Go in and then mount mount
—> The links quoted in this article are all for the purpose of sorting out materials , If there is any infringement , Please contact to delete
边栏推荐
- [paper reading | deep reading] graphsage:inductive representation learning on large graphs
- 一片叶子两三万?植物消费爆火背后的“阳谋”
- Infrared camera: juge infrared mag32 product introduction
- Redis configuration class redisconfig
- 新一代云原生消息队列(一)
- Halcon knowledge: segment_ contours_ XLD operator
- Web3对法律的需求
- go swagger使用
- 【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations
- 最近小程序开发记录
猜你喜欢
低代码平台中的数据连接方式(上)
3D激光SLAM:Livox激光雷达硬件时间同步
leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】
新一代云原生消息队列(一)
STM32F4---PWM输出
Vingt - trois mille feuilles? "Yang mou" derrière l'explosion de la consommation végétale
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
解密函数计算异步任务能力之「任务的状态及生命周期管理」
FLIR blackfly s industrial camera: auto exposure configuration and code
This week's hot open source project!
随机推荐
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
Time synchronization of livox lidar hardware -- PPS method
The empirical asset pricing package (EAP) can be installed through pypi
Douban average 9 x. Five God books in the distributed field!
Robot team learning method to achieve 8.8 times human return
The mega version model of dall-e MINI has been released and is open for download
Seconds understand the delay and timing function of wechat applet
XML to map tool class xmlmaputils (tool class V)
FLIR blackfly s usb3 industrial camera: white balance setting method
Recent applet development records
1--新唐nuc980 NUC980移植 UBOOT,从外部mx25l启动
RC振荡器和晶体振荡器简介
Several classes and functions that must be clarified when using Ceres to slam
FLIR blackfly s industrial camera: explanation and configuration of color correction and code setting method
强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
Why am I warned that the 'CMAKE_ TOOLCHAIN_ FILE' variable is not used by the project?
Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code
Flir Blackfly S 工业相机:通过外部触发实现多摄像头同步拍摄
Untiy文本框的代码换行问题
投资的再思考