怎么用uboot刷openwrt系统
答案:1 悬赏:50
解决时间 2021-03-21 12:46
- 提问者网友:人傍凄凉立暮秋
- 2021-03-20 23:55
怎么用uboot刷openwrt系统
最佳答案
- 二级知识专家网友:慢性怪人
- 2021-03-21 01:02
Openwrt常用烧写命令
AR系列分区地址
4M flash的分区地址:
分区名起始地址结束地址 分区长度
uboot0x9f0000000x9f020000 0x20000
firmware 0x9f0200000x9f3e0000 0x3c0000
art0x9f3f00000x9f3e0000 0x10000
8M flash的分区地址:
分区名起始地址结束地址 分区长度
uboot0x9f0000000x9f020000 0x20000
firmware 0x9f0200000x9f7e0000 0x7c0000
art0x9f7f00000x9f7e0000 0x10000
16M flash的分区地址:
分区名起始地址结束地址 分区长度
uboot0x9f0000000x9f020000 0x20000
firmware 0x9f0200000x9ffe0000 0xfc0000
art0x9fff00000x9ffe0000 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(可能 printenv 地址不是0x80000000,没有关系)
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的:
刷编程器全部固件(uboot+fs+art):
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
16M:
FW:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0xfc0000
cp.b 0x80000000 0x9f020000 0xfc0000
AR系列分区地址
4M flash的分区地址:
分区名起始地址结束地址 分区长度
uboot0x9f0000000x9f020000 0x20000
firmware 0x9f0200000x9f3e0000 0x3c0000
art0x9f3f00000x9f3e0000 0x10000
8M flash的分区地址:
分区名起始地址结束地址 分区长度
uboot0x9f0000000x9f020000 0x20000
firmware 0x9f0200000x9f7e0000 0x7c0000
art0x9f7f00000x9f7e0000 0x10000
16M flash的分区地址:
分区名起始地址结束地址 分区长度
uboot0x9f0000000x9f020000 0x20000
firmware 0x9f0200000x9ffe0000 0xfc0000
art0x9fff00000x9ffe0000 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(可能 printenv 地址不是0x80000000,没有关系)
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的:
刷编程器全部固件(uboot+fs+art):
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
16M:
FW:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0xfc0000
cp.b 0x80000000 0x9f020000 0xfc0000
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯