0%

网件r6400刷回官方固件记录

nmrpflash 项目地址

1
2
3
4
# 页面介绍是 Netgear Unbrick Utility
# 看实际效果某些品牌比如华硕也可以用

https://github.com/jclehner/nmrpflash

查询连接的路由端口

基础恢复命令操作

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -i 指定连接的物理端口
# -f 指定要恢复的官方固件, 以 chk 和 img 为后缀的文件
# 这个 reset.chk 是我自己改了个好输入的名字

# 下面是官方项目页介绍的用法

Usage: nmrpflash [OPTIONS...]

Options (-i, and -f or -c are mandatory):
-a <ipaddr> IP address to assign to target device
-A <ipaddr> IP address to assign to selected interface
-B Blind mode (don't wait for response packets)
-c <command> Command to run before (or instead of) TFTP upload
-f <firmware> Firmware file
-F <filename> Remote filename to use during TFTP upload
-i <interface> Network interface directly connected to device
-m <mac> MAC address of target device (xx:xx:xx:xx:xx:xx)
-M <netmask> Subnet mask to assign to target device
-t <timeout> Timeout (in milliseconds) for NMRP packets
-T <timeout> Time (seconds) to wait after successfull TFTP upload
-p <port> Port to use for TFTP upload
-R <region> Set device region (NA, WW, GR, PR, RU, BZ, IN, KO, JP)
-v Be verbose
-V Print version and exit
-L List network interfaces
-h Show this screen

恢复失败 1

1
2
3
4
5
6
7
8
9
10
# Timeout while waiting for TFTP_UL_REQ

报这个错误,基本就是操作出了问题,六步走

1, 将电脑 ip 设置为 192.168.1.2
2, 连接路由和电脑, 用 -L 命令查询路由连接端口
3, 输入下面的恢复命令, 不要动(注意替换端口)
4, 路由断电, 按住路由重置键不要动
5, 考验手眼协调的关键一步: 给路由器通电1s 后, 松开手中的重置键, 然后电脑上命令行回车
6, 电脑会报下图的错误, 不要急, 重复复制上面的命令, 继续回车, ok

恢复失败 2

1
2
3
# Received upload request without filename

之前在 windows 上恢复也是走到这一步没有下文,具体也搞不懂哪里出了问题,反复试过几次后,又可以了,建议报这个错误时多试几次

恢复成功

1
恢复成功会有 keep-alive 保持连接的提示, 不要断开路由连接


window 系统操作类似

1
细节有些不同而已, 下面是个网图