Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

记一次网件R6400v2救砖过程 #15

Open
oufeng opened this issue Apr 5, 2021 · 0 comments
Open

记一次网件R6400v2救砖过程 #15

oufeng opened this issue Apr 5, 2021 · 0 comments
Labels

Comments

@oufeng
Copy link
Owner

oufeng commented Apr 5, 2021

缘起

因担心梅林改版固件(koolshare)安全问题决定刷回原版固件,不知道是因为没有恢复出厂设置还是因为R6400v2本身的问题。结果路由器变砖了,长按reset也不起任何作用,于是就着手救砖。

查资料发现了网件的救砖工具(nmrpflash),需要通过网线将电脑的网口和路由器的LAN口相连。

由于家里的电脑只有一台Thinkpad有网口,并且装的是centos 7系统。网上很多教程都是基于window系统的,linux的少之又少。遂记录一下,方便下次再救砖。

准备工作

安装nmrpflash以及官方最新版固件

sudo yum install libpcap libnl-3
cd /tmp
mkdir -p netgear-tools
cd netgear-tools

wget https://www.downloads.netgear.com/files/GDC/R6400v2/R6400v2-V1.0.4.106_10.0.80.zip
unzip R6400v2-V1.0.4.106_10.0.80.zip
rm R6400v2-V1.0.4.106_10.0.80.zip
rm R6400v2-V1.0.4.106_10.0.80_Release_Notes.html

wget https://github.com/jclehner/nmrpflash/releases/download/v0.9.15/nmrpflash-0.9.15-linux.zip
unzip nmrpflash-0.9.15-linux.zip
chmod +x nmrpflash
rm nmrpflash-0.9.15-linux.zip

查看nmrpflash安装情况以及网卡列表

./nmrpflash -L 

如果遇到error while loading shared libraries: libpcap.so.0.8。解决方案如下:

cd /usr/lib64/
ln -s libpcap.so.1.5.3 libpcap.so.0.8

开始救砖

先定位到/tmp/netgear-tools并且切换到root权限

cd /tmp/netgear-tools
su

然后用网线将电脑的网口和路由器的LAN口相连,相关LAN灯亮代表连接成功。

然后重启路由器,在电源指示灯亮起时快速执行此命令。先开机,再快速执行。

./nmrpflash -i enp0s31f6 -f R6400v2-V1.0.4.106_10.0.80.chk

centos有线网卡根据系统固件和硬件来命名,我的网卡是/etc/sysconfig/network-scripts/ifcfg-enp0s31f6

然后终端会出现Waiting for physical connection.Advertising NMRP server on enp0s31f6 ... /等信息。

如果出现Timeout while waiting for TFTP_UL_REQ,需要再执行一次./nmrpflash -i enp0s31f6 -f R6400v2-V1.0.4.106_10.0.80.chk此时不用关路由器

直到显示Remote finished. Closing connection.Reboot your device now.等信息就可以重启路由器。

救砖完成。

参考

nmrpflash
[教程] 网件通用救砖,超详细教程
If you ever bricker your netgear router, this will likely save your ass: https://github.com/jclehner/nmrpflash
Unable to install CentOS 7

@oufeng oufeng added the 其他 label May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant