- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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? namemtd0:00010000 RedBootmtd1: 007c0000linuxmtd2:00010000 rootfsmtd3:00010000 ddwrtmtd4:00010000 nvrammtd5:00010000 board_configmtd6:00010000 fullflashmtd7: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.bin16384+0 records in16384+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.bin16384+0 records in16384+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 /tmproot@OpenWrt:/tmp# cat /proc/mtddev:??? size?? erasesize? namemtd0:00010000 u-bootmtd1:00010000 kernelmtd2:00010000 rootfsmtd3:00010000 rootfs_datamtd4:00010000 artmtd5: 007d0000firmwareroot@OpenWrt:/tmp# dd if=/dev/mtd0 of=uboot.binroot@OpenWrt:/tmp# dd if=/dev/mtd5 of=firmware.binroot@OpenWrt:/tmp# dd if=/dev/mtd4 of=art.binroot@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
您可能关注的文档
- 精英主bios设置.doc
- 管道支制作与安装专项施工方案 3.doc
- 精轧区汇.doc
- 精选例.doc
- 精伦电二代证阅读器.doc
- 管理模题(A,B,C) 谢绝外传 只读打开.doc
- 精馏计题.doc
- 系统安课程(3小时).doc
- 系统常错误.doc
- 系统管员STK使用手册.doc
- 2024年江西省寻乌县九上数学开学复习检测模拟试题【含答案】.doc
- 2024年江西省省宜春市袁州区数学九上开学学业水平测试模拟试题【含答案】.doc
- 《GB/T 44275.2-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第2部分:术语》.pdf
- 中国国家标准 GB/T 44275.2-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第2部分:术语.pdf
- GB/T 44285.1-2024卡及身份识别安全设备 通过移动设备进行身份管理的构件 第1部分:移动电子身份系统的通用系统架构.pdf
- 《GB/T 44285.1-2024卡及身份识别安全设备 通过移动设备进行身份管理的构件 第1部分:移动电子身份系统的通用系统架构》.pdf
- 中国国家标准 GB/T 44285.1-2024卡及身份识别安全设备 通过移动设备进行身份管理的构件 第1部分:移动电子身份系统的通用系统架构.pdf
- GB/T 44275.11-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第11部分:术语制定指南.pdf
- 中国国家标准 GB/T 44275.11-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第11部分:术语制定指南.pdf
- 《GB/T 44275.11-2024工业自动化系统与集成 开放技术字典及其在主数据中的应用 第11部分:术语制定指南》.pdf
文档评论(0)