openwrt固件,串口烧写flash
2016-10-28 14:51
337 查看
原文地址:http://blog.chinaunix.net/uid-25631578-id-4011568.html
AR系列分区地址
4M flash的分区地址:
分区名 起始地址 结束地址 分区长度
uboot 0x9f000000 0x9f020000 0x20000
firmware 0x9f020000 0x9f3e0000 0x3c0000
art 0x9f3f0000 0x9f3e0000 0x10000
8M flash的分区地址:
分区名 起始地址 结束地址 分区长度
uboot 0x9f000000 0x9f020000 0x20000
firmware 0x9f020000 0x9f7e0000 0x7c0000
art 0x9f7f0000 0x9f7e0000 0x10000
1.命令行刷系统
固件传至/tmp
cd /tmp
cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 “u-boot”
mtd1: 000e01c4 00010000 “kernel”
mtd2: 002efe3c 00010000 “rootfs”
mtd3: 00060000 00010000 “rootfs_data”
mtd4: 00010000 00010000 “art”
mtd5: 003d0000 00010000 “firmware”
从上面的命令可以得知,mtd5是 firmare
#使用mtd更新系统
mtd -r write factory.bin firmware
#使用sysupgrade更新系统,推荐。
sysupgrade factory.bin
2.ttl刷新编程器固件、fw、uboot、art
4M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x400000
cp.b 0x80000000 0x9f000000 0x400000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x3c0000
cp.b 0x80000000 0x9f020000 0x3c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f3f0000 +0x10000
cp.b 0x80000000 0x9f3f0000 0x10000
8M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x800000
cp.b 0x80000000 0x9f000000 0x800000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x7c0000
cp.b 0x80000000 0x9f020000 0x7c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f7f0000 +0x10000
cp.b 0x80000000 0x9f7f0000 0x10000
AR系列分区地址
4M flash的分区地址:
分区名 起始地址 结束地址 分区长度
uboot 0x9f000000 0x9f020000 0x20000
firmware 0x9f020000 0x9f3e0000 0x3c0000
art 0x9f3f0000 0x9f3e0000 0x10000
8M flash的分区地址:
分区名 起始地址 结束地址 分区长度
uboot 0x9f000000 0x9f020000 0x20000
firmware 0x9f020000 0x9f7e0000 0x7c0000
art 0x9f7f0000 0x9f7e0000 0x10000
1.命令行刷系统
固件传至/tmp
cd /tmp
cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 “u-boot”
mtd1: 000e01c4 00010000 “kernel”
mtd2: 002efe3c 00010000 “rootfs”
mtd3: 00060000 00010000 “rootfs_data”
mtd4: 00010000 00010000 “art”
mtd5: 003d0000 00010000 “firmware”
从上面的命令可以得知,mtd5是 firmare
#使用mtd更新系统
mtd -r write factory.bin firmware
#使用sysupgrade更新系统,推荐。
sysupgrade factory.bin
2.ttl刷新编程器固件、fw、uboot、art
4M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x400000
cp.b 0x80000000 0x9f000000 0x400000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x3c0000
cp.b 0x80000000 0x9f020000 0x3c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f3f0000 +0x10000
cp.b 0x80000000 0x9f3f0000 0x10000
8M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x800000
cp.b 0x80000000 0x9f000000 0x800000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x7c0000
cp.b 0x80000000 0x9f020000 0x7c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f7f0000 +0x10000
cp.b 0x80000000 0x9f7f0000 0x10000
相关文章推荐
- 通过串口烧写龙芯1c固件到flash(基于pmon中的ymodem)
- uboot通过tftp下载固件并烧写到flash
- 281x无需仿真器,串口烧写Flash方法
- Openwrt:mtd/mtd_write烧写固件
- 430自编程--用串口烧写430的Flash(只要3根串口线即可- Tx,Rx,GND)
- openwrt-AR系列flash地址分区及系统烧写
- openwrt 实现tcp和串口的透传 编译固件设置ser2net
- Hi3516A u-boot uboot 用串口做 fastboot 烧写spi flash
- OpenWrt固件刷入后串口终端没有反应的问题
- [OpenWrt] 使用TLL刷FLASH(固件)的方法
- OpenWrt学习笔记2 -- 烧写固件
- 烧写Openwrt固件
- 如何备份flash上的openwrt的固件
- TP-LINK WR720N升级8M Flash 64M Ram,加USB-TTL,烧openwrt官方固件,接蓝牙适配器
- STM32 串口烧写 FLASH 外部字库 UCGUI显示 自我学习总结
- TMS320F28335项目开发记录4_28335之启动模式(串口烧写Flash)
- Openwrt 之 mtd/mtd_write烧写固件
- J-Flash arm v4.84a使用SWD方式烧写.hex固件
- TP-Link WR703N OpenWRT固件修改WAN LAN排序
- [OpenWrt] TP路由,打造完整的固件,无需复杂的TTL ,U-boot命令