參考本文
http://datahunter.org/openwrt_restore
atheros uboot 有一些注意事項...
一.官方原廠FW 差不多都是帶有uboot.這樣從 openwrt 下 要回復官方FW 要把uboot去掉
如果強制刷的話 很容易會報
mtd -r write fw.bin firmware [e]Failed to erase block
這是因為官方FW 有帶uboot , 而uboot 大小為257*512 =131584 轉成 hex =0x20200
可以用dd if=orig.bin of=mod.bin skip=257 bs=512
或是winhex 去掉都可以
官方FW請參考本圖 Header TP-LINK 有出現二次..
00000000 01 00 00 00 54 50 2d 4c 49 4e 4b 20 54 65 63 68 |....TP-LINK Tech| 00000010 6e 6f 6c 6f 67 69 65 73 00 00 00 00 76 65 72 2e |nologies....ver.| 00000020 20 31 2e 30 00 00 00 00 00 00 00 00 00 00 00 00 | 1.0............| 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000040 07 40 00 04 00 00 00 01 00 00 00 00 3f df 17 e0 |.@..........?...| 00000050 dd 25 a9 6b e8 62 53 bc 19 05 5b b5 00 00 00 00 |.%.k.bS...[.....| 00000060 33 1d 49 c2 f8 8e 92 03 1f fc ac 70 30 73 1e 6b |3.I........p0s.k| 00000070 00 00 00 00 80 00 20 00 80 1d 6c 50 00 3e 02 00 |...... ...lP.>..| 00000080 00 00 02 00 00 0d a3 18 00 10 00 00 00 2c 00 00 |.............,..| 00000090 00 00 00 00 00 00 c1 55 00 03 00 10 00 06 00 00 |.......U........| 000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000200 10 00 00 ff 00 00 00 00 10 00 00 fd 00 00 00 00 |................| 00000210 10 00 01 8e 00 00 00 00 10 00 01 8c 00 00 00 00 |................| 00000220 10 00 01 8a 00 00 00 00 10 00 01 88 00 00 00 00 |................| 00000230 10 00 01 86 00 00 00 00 10 00 01 84 00 00 00 00 |................| 00000240 10 00 01 82 00 00 00 00 10 00 01 80 00 00 00 00 |................| 00000250 10 00 01 7e 00 00 00 00 10 00 01 7c 00 00 00 00 |...~.......|....| 00000260 10 00 01 7a 00 00 00 00 10 00 01 78 00 00 00 00 |...z.......x....| 00000270 10 00 01 76 00 00 00 00 10 00 01 74 00 00 00 00 |...v.......t....| .............................................................................. 0000c340 60 c1 01 0a c1 a5 a7 41 22 a7 1f 59 5e f9 8c 03 |`......A"..Y^...| 0000c350 9c 82 a0 64 f3 ff ff ff ff ff ff ff ff ff ff ff |...d............| 0000c360 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * (以上為uboot 下面為不帶uboot firmware) 00020200 01 00 00 00 54 50 2d 4c 49 4e 4b 20 54 65 63 68 |....TP-LINK Tech| 00020210 6e 6f 6c 6f 67 69 65 73 00 00 00 00 76 65 72 2e |nologies....ver.| 00020220 20 31 2e 30 00 00 00 00 00 00 00 00 00 00 00 00 | 1.0............| 00020230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00020240 07 40 00 04 00 00 00 01 00 00 00 00 9d e6 8b f6 |.@..............| 00020250 77 03 09 24 a7 3e 4e 72 c9 b1 a0 04 00 00 00 00 |w..$.>Nr........| 00020260 33 1d 49 c2 f8 8e 92 03 1f fc ac 70 30 73 1e 6b |3.I........p0s.k| 00020270 00 00 00 00 80 00 20 00 80 1d 6c 50 00 3c 00 00 |...... ...lP.<..| 00020280 00 00 02 00 00 0d a3 18 00 10 00 00 00 2c 00 00 |.............,..| 00020290 00 00 00 00 00 00 00 00 00 03 00 10 00 06 00 00 |................| 000202a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00020400 5d 00 00 00 02 0c 83 27 00 00 00 00 00 00 00 6f |]......'.......o| 00020410 fd ff ff a3 b7 7f 63 c5 55 7e bc 4d 37 52 96 27 |......c.U~.M7R.'| 00020420 37 85 77 0a 76 7c 9c ea 33 4a 4b eb b9 9b 7a 11 |7.w.v|..3JK...z.| 00020430 fb ce b9 aa a4 90 b9 74 72 ab 50 51 06 2f 6e 57 |.......tr.PQ./nW| 00020440 42 85 14 3b 63 d4 7c e9 c2 20 fb dc 1f 11 83 d4 |B..;c.|.. ......| 00020450 d9 12 e0 66 4d 2b 08 11 7a b5 5d b3 00 d5 c6 0c |...fM+..z.].....| 00020460 9e 63 4f 83 a2 d7 20 e9 5c bc b9 71 71 42 a2 69 |.cO... .\..qqB.i| 00020470 f7 a1 86 9d cb 99 79 94 bc a7 e1 29 32 bd 83 a3 |......y....)2...| .............................................................................. 0036c0a0 89 63 ff e8 9b 97 5e 94 9a b6 80 99 4f 47 65 2e |.c....^.....OGe.| 0036c0b0 5e 01 00 2e 6e bc 5f 18 5e a3 68 e8 ff ff 2b 3a |^...n._.^.h...+:| 0036c0c0 b9 00 d7 ba 24 00 00 00 00 00 04 80 00 00 00 00 |....$...........| 0036c0d0 ca be 24 00 00 00 00 00 00 00 00 00 00 00 00 00 |..$.............| 0036c0e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 0036c200 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 003e0200
可以比對一下 本頁面有二種不同的FW 可自行下載參考
修改好後再用上傳到router 內
mtd -r write mod.bin firmware
如果會自動reboot 就代表刷寫OK
Images 0 | ||
---|---|---|
No images to display in the gallery. |