查看Flash分区情况:

root@DD-WRT:~# cat /proc/mtd
dev: size erasesize name
mtd0: "RedBoot"
mtd1: 007c0000 "linux"
mtd2: "rootfs"
mtd3: "ddwrt"
mtd4: "nvram"
mtd5: "board_config"
mtd6: "fullflash"
mtd7: "fullboot"
root@DD-WRT:~# 用dd备份分区(如果有fullash分区) root@DD-WRT:~# dd if=/dev/mtd6 of=/tmp/741_fullflash.bin
+ records in
+ records out
root@DD-WRT:~# 刷成编程器固件命令(前提是有fullash分区) root@DD-WRT:~# mtd -r write fullflash /tmp/741_fullflash.bin
+ records in
+ records out
root@DD-WRT:~# 编程openwrt固件时修改mach-tl-mr3x20.c(对应3420)增加一个fullash }, {
.name = "fullflash",
.offset = ,
.size = 0x800000, .mask_flags = MTD_WRITEABLE, } .size = 0x800000, 这个是flash大小8M 去掉 .mask_flags = MTD_WRITEABLE,是分区可以写,否者只可读 MTD subsystem has the following interfaces. MTD character devices - usually referred to as /dev/mtd0, /dev/mtd1, and so on. These character devices provide I/O access to the raw flash. They support a number of ioctl calls for erasing eraseblocks, marking them as bad or checking if an eraseblock is bad, getting information about MTD devices, etc.
The sysfs interface is relatively newer and it provides full information about each MTD device in the system. This interface is easily extensible and developers are encouraged to use the sysfs interface instead of older ioctl or /proc/mtd interfaces, when possible. The sysfs interface for the mtd subsystem is documentated in the kernel, and currently can be found at Documentation/ABI/testing/sysfs-class-mtd.
The /proc/mtd proc file system file provides general MTD information. This is a legacy interface and the sysfs interface provides more information.

最新文章

  1. CodeIgniter 3.0问题集锦
  2. js 中将日期转换为星期需要注意的
  3. One Step github链接
  4. Spring学习总结(一)——Spring实现IoC的多种方式
  5. (转)myrepo
  6. gnu cc扩展和ABI
  7. (转)Servlet初始化、运行、销毁全部过程
  8. swift之函数式编程(四)
  9. Tornado 网站demo 二
  10. Mysql 根据一个表数据更新另外一个表
  11. 浏览器保存数据给app读取
  12. 2018-2019-2 网络对抗技术 20165304 Exp1 PC平台逆向破解(BOF实验)
  13. OpenCV4.0学习笔记
  14. Confluence 6 允许其他用户编辑站点欢迎消息
  15. web安全基础
  16. Can't connect to MySQL server (10060)
  17. 〖C语言学习笔记 〗(一) HelloWorld
  18. 20个有用的linux命令行技巧
  19. c中extern的作用
  20. 【MEVN架构】mongodb+ express + vue + nodejs 搭建后台

热门文章

  1. android中常用的读取文件的用法如下
  2. velocity模板引擎学习(3)-异常处理
  3. hessian学习
  4. ubuntu14.04禁用guest用户登录
  5. 使用spring boot和thrift、zookeeper建立微服务
  6. 项目分享二:APP 小红点中数字的处理
  7. ALinq Dynamic 使用指南——慨述(上)
  8. 跨浏览器事件EventUtil
  9. Position、Float
  10. less 学习 (计划终于执行了啊,不再拖延了)