当前位置:网站首页>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
边栏推荐
- [C # notes] use file stream to copy files
- Flir Blackfly S工业相机:颜色校正讲解及配置与代码设置方法
- Untiy文本框的代码换行问题
- Introduction to the internal structure of the data directory of PostgreSQL
- SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
- 使用Ceres进行slam必须要弄清楚的几个类和函数
- Web开发小妙招:巧用ThreadLocal规避层层传值
- Lidar: introduction and usage of ouster OS
- Livox激光雷达硬件时间同步---PPS方法
- FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
猜你喜欢
【森城市】GIS数据漫谈(二)
张平安:加快云上数字创新,共建产业智慧生态
Data connection mode in low code platform (Part 1)
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
Dall-E Mini的Mega版本模型发布,已开放下载
使用Ceres进行slam必须要弄清楚的几个类和函数
低代码平台中的数据连接方式(上)
Time synchronization of livox lidar hardware -- PPS method
组合导航:中海达iNAV2产品描述及接口描述
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
随机推荐
Draco - glTF模型压缩利器
Use of pgpool II and pgpooladmin
Word wrap when flex exceeds width
张平安:加快云上数字创新,共建产业智慧生态
1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
Integerset of PostgreSQL
Chang'an chain learning notes - certificate model of certificate research
【LeetCode】Day97-移除链表元素
张平安:加快云上数字创新,共建产业智慧生态
fiddler的使用
Blackfly s usb3 industrial camera: buffer processing
Recent applet development records
处理streamlit库上传的图片文件
Seconds understand the delay and timing function of wechat applet
freeswitch拨打分机号源代码跟踪
Stm32f4 --- general timer update interrupt
Real project, realized by wechat applet opening code (end)
New generation cloud native message queue (I)
Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code
STM32F4---通用定时器更新中断