博客
关于我
MT7628学习笔记(11)——分区信息查询及数据备份
阅读量:172 次
发布时间:2019-02-28

本文共 1716 字,大约阅读时间需要 5 分钟。

1、查询FLASH上的分区信息:

root@Hiwooya:~# cat /proc/mtd dev:    size   erasesize  namemtd0: 00030000 00010000 "u-boot"mtd1: 00010000 00010000 "u-boot-env"mtd2: 00010000 00010000 "factory"mtd3: 00fb0000 00010000 "firmware"mtd4: 00118e3c 00010000 "kernel"mtd5: 00e971c4 00010000 "rootfs"mtd6: 009e0000 00010000 "rootfs_data"

2、分区释义 (启动LOG中打印)

[    0.500000] Creating 4 MTD partitions on "spi32766.0":[    0.510000] 0x000000000000-0x000000030000 : "u-boot"[    0.520000] 0x000000030000-0x000000040000 : "u-boot-env"[    0.530000] 0x000000040000-0x000000050000 : "factory"[    0.540000] 0x000000050000-0x000001000000 : "firmware"[    0.580000] 2 uimage-fw partitions found on MTD device firmware[    0.590000] 0x000000050000-0x000000168e3c : "kernel"[    0.600000] 0x000000168e3c-0x000001000000 : "rootfs"[    0.610000] mtd: device 5 (rootfs) set to be root filesystem[    0.630000] 1 squashfs-split partitions found on MTD device rootfs[    0.640000] 0x000000620000-0x000001000000 : "rootfs_data"
分区ID 分区位置 容量 作用
u-boot 0x000000000000-0x000000030000 192KB 引导程序,Bootloader
u-boot-env 0x000000030000-0x000000040000 64KB uboot的env存储,配置参数
factory 0x000000040000-0x000000050000 64KB MT7688校准、MAC地址等参数
firmware 0x000000050000-0x000001000000 15.68MB 固件分区
kernel 0x000000050000-0x000000168e3c 1123KB 固件分区内的Linux内核分区,大小会根据内核编译配置不同而有所变化
rootfs 0x000000168e3c-0x000001000000 14MB 固件分区内的文件系统分区,包含rootfs_rom(只读)和rootfs_data(可写)
rootfs_data 0x000000620000-0x000001000000 9MB 固件分区内的可写文件系统分区,常用做jffs2

 

3、拷贝factory(无线校准)数据到www文件夹

root@Hiwooya:~# dd if=/dev/mtd2 of=/www/factory.bin128+0 records in128+0 records outroot@Hiwooya:~# ls -l /www/factory.bin-rw-r--r--    1 root     root         65536 Oct 14 15:37 /www/factory.bin

然后使用FTP或者SCP把文件拷贝出来。

转载地址:http://zyzi.baihongyu.com/

你可能感兴趣的文章
mysql 5.6 修改端口_mysql5.6.24怎么修改端口号
查看>>
MySQL 8.0 恢复孤立文件每表ibd文件
查看>>
MySQL 8.0开始Group by不再排序
查看>>
mysql ansi nulls_SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON 什么意思
查看>>
multi swiper bug solution
查看>>
MySQL Binlog 日志监听与 Spring 集成实战
查看>>
MySQL binlog三种模式
查看>>
multi-angle cosine and sines
查看>>
Mysql Can't connect to MySQL server
查看>>
mysql case when 乱码_Mysql CASE WHEN 用法
查看>>
Multicast1
查看>>
MySQL Cluster 7.0.36 发布
查看>>
Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
查看>>
MySQL Cluster与MGR集群实战
查看>>
multipart/form-data与application/octet-stream的区别、application/x-www-form-urlencoded
查看>>
mysql cmake 报错,MySQL云服务器应用及cmake报错解决办法
查看>>
Multiple websites on single instance of IIS
查看>>
mysql CONCAT()函数拼接有NULL
查看>>
multiprocessing.Manager 嵌套共享对象不适用于队列
查看>>
multiprocessing.pool.map 和带有两个参数的函数
查看>>