编程器件、uboot、fullflash.doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
编程器件、uboot、fullflash

编程器固件、uboot、fullflash HYPERLINK mailto:root@DD-WRT root@DD-WRT:~# cat /proc/mtd dev:??? size?? erasesize? name mtd0:00010000 RedBoot mtd1: 007c0000linux mtd2:00010000 rootfs mtd3:00010000 ddwrt mtd4:00010000 nvram mtd5:00010000 board_config mtd6:00010000 fullflash mtd7:00010000 fullboot HYPERLINK mailto:root@DD-WRT root@DD-WRT:~# DDWRT备份成编程器固件命令(前提是有fullash分区) HYPERLINK mailto:root@DD-WRT root@DD-WRT:~# dd if=/dev/mtd6 of=/tmp/741_fullflash.bin 16384+0 records in 16384+0 records out HYPERLINK mailto:root@DD-WRT root@DD-WRT:~# 刷成编程器固件命令(前提是有fullash分区) HYPERLINK mailto:root@DD-WRT root@DD-WRT:~# mtd -r write fullflash /tmp/741_fullflash.bin 16384+0 records in 16384+0 records out HYPERLINK mailto:root@DD-WRT root@DD-WRT:~# ? 编程openwrt固件时修改mach-tl-mr3x20.c(对应3420)增加一个fullash }, { ? .name? = fullflash, ? .offset? = 0, ? .size? = 0x800000, ? .mask_flags = MTD_WRITEABLE, } ? .size? = 0x800000, 这个是flash大小8M 去掉? .mask_flags = MTD_WRITEABLE,是分区可以写,否者只可读 ? ? 编程器固件包含uboot+内核固件+art/board_config (适用于ar 3240固件等) 一、准备uboot、内核固件(firmware)、art/board_config ? 1、登录路由 ? 2、切换到tmp目录, ? 3、使用dd命令备份uboot、firmware、art/board_config, ? 4、使用cat命令将文件合并,假设新文件名为xxx.bin ? 5、使用WinSCP将文件复制到电脑 root@OpenWrt:~# cd /tmp root@OpenWrt:/tmp# cat /proc/mtd dev:??? size?? erasesize? name mtd0:00010000 u-boot mtd1:00010000 kernel mtd2:00010000 rootfs mtd3:00010000 rootfs_data mtd4:00010000 art mtd5: 007d0000firmware root@OpenWrt:/tmp# dd if=/dev/mtd0 of=uboot.bin root@OpenWrt:/tmp# dd if=/dev/mtd5 of=firmware.bin root@OpenWrt:/tmp# dd if=/dev/mtd4 of=art.bin root@OpenWrt:/tmp# cat uboot.bin firmware.bin art.bin fullflash.bin 相当于windows下?? copy /b?1.txt+2.txt 3.txt ? 区分固件是否带uboot 用Uedit32打开固件 这个是有uboot的 这个是有没有uboot的的openwrt固件 去掉固件的uboot??(也就是删除固件前成128k数据) 这个是有uboot的 128K*1024 =131072 ? 固件加uboot copy /b uboot.bin+固件.bin 新固件.bin ? ? uboot下刷机 打开tftpd32 把固件放tf

您可能关注的文档

文档评论(0)

ybcm963 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档