当前位置:网站首页>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
边栏推荐
- Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
- argo workflows源码解析
- 建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
- postgresql之整体查询大致过程
- MFC Windows 程序设计[147]之ODBC数据库连接(附源码)
- Flir Blackfly S USB3 工业相机:计数器和定时器的使用方法
- Time synchronization of livox lidar hardware -- PPS method
- leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]
- 企业中台建设新路径——低代码平台
- 15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
猜你喜欢
Flir Blackfly S USB3 工业相机:白平衡设置方法
Introduction to FLIR blackfly s industrial camera
How can reinforcement learning be used in medical imaging? A review of Emory University's latest "reinforcement learning medical image analysis", which expounds the latest RL medical image analysis co
云原生混部最后一道防线:节点水位线设计
Lumion 11.0 software installation package download and installation tutorial
Word wrap when flex exceeds width
FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
人脸识别应用解析
Flir Blackfly S工业相机:颜色校正讲解及配置与代码设置方法
[unity notes] screen coordinates to ugui coordinates
随机推荐
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
老板被隔离了
企业中台建设新路径——低代码平台
How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
Overall query process of PostgreSQL
张平安:加快云上数字创新,共建产业智慧生态
Treadpoolconfig thread pool configuration in real projects
遇到慢SQL该怎么办?(下)
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
使用Ceres进行slam必须要弄清楚的几个类和函数
The boss is quarantined
企业中台建设新路径——低代码平台
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
Why am I warned that the 'CMAKE_ TOOLCHAIN_ FILE' variable is not used by the project?
将截断字符串或二进制数据
Sensor: DS1302 clock chip and driver code
Gee upgrade can realize one piece of run tasks