Posted: Thu Jan 04, 2024 17:21 Post subject: Reverting Netgear WNDR3700v3 to stock
I have a netgear WNDR3700v3 that's running DD-WRT v3.0-r29440 mega that I've been using as a switch. I want to revert it to stock or upgrade the DD-WRT running on it. I just can't seem to get it to install any image, either stock, DD-WRT or OpenWRT, it always just boots back to the existing DD-WRT.
I've tried:
* GUI firmware installation: the connection resets and the browser shows a connection reset error after 3-5 seconds and the router reboots. This happens even if I have a switch in between my computer and the router. I've tried flashing both the stock firmware and DD-WRT and OpenWRT, same result. I've also tried Chome, Firefox and Edge, they all reset in similar ways.
* TFTP installation: I've tried both Windows tftp client and tfpd64, and I've tried holding the reset button under the router during boot [2,3,4] and not [1], I've tried waiting for TTL=100 before trying the tftp upload and running it before and after that, dozens of times, nothing seems to work and the tftp attempt just times out. Holding the reset button while it's powering on leaves the ethernet ports unresponsive to pings and the power LED remains amber with no other LEDs activating until I release the reset button (I've held it for 2+ mins with no change and no ping response), so failsafe/recovery mode doesn't appear to work [5]. The inability to engage recovery mode has the same symptoms as user o0camilo0o posted about here, but nobody replied to that message so I don't know if there's a resolution. When I release the button the other LEDs come on soon after (like wifi), but IP still doesn't respond to pings until I power cycle. At no point have I seen the power LED "steadily blinking green" (or any colour) per the instructions. What I see when I power on the device normally is that the power LED switches to green for maybe 2-3 seconds, then switches to amber and back to green and then stays like that.
* nmrpflash: this never receives a conection. I disabled the Windows firewall and tried both going through a switch and directly to the router.
Any suggestions for how to proceed?
I haven't tried to setup a serial console yet as I assume that will require opening the unit, but with DD-WRT apparently running on the unit I'm hoping this won't be necessary.
Seems that you are either not using the right browser or webUI upgrade is broken; Other means of flashing could be timing or lack of using tftpd32/64 with anticipation window of 1024 or 2048 bytes. The nmrpflash utility sometimes requires specific things to be done to work. You can still upgrade DD-WRT, though.
Using PuTTY or KiTTY via telnet or ssh to upgrade (to current release of) DD-WRT:
Code:
cd /tmp
wget http://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2024/01-02-2024-r54682/broadcom_K3X/dd-wrt.v24-54682_NEWD-2_K3.x_mega-nv64k.bin
write dd-wrt.v24-54682_NEWD-2_K3.x_mega-nv64k.bin linux
reboot
_________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
Upgrade: Use mega-nv64k.bin, mini-nv64k.bin or trailed (mini-WNDR3700v3.chk) images.
• This is a Broadcom unit with 64k nvram, identical to WNDR4000.
K3.X builds do work on this unit but you must first flash K2.6, as there is no mini K3.X build:
• (i.e. K3.x_mega-WNDR3700v3.chk K3.x_mega-nv64k.bin)
_________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
Thanks, ssh was a bust, it immediately aborted the connection once I tried to execute the write command. Telnet worked but I received this error:
Code:
root@DD-WRT:/tmp# write dd-wrt.v24-54682_NEWD-2_K3.x_mega-nv64k.bin linux
function stop_pppoeserver not found
function stop_freeradius not found
dd-wrt.v24-54682_NEWD-2_K3.x_mega-nv64k.bin: Bad trx header
This thread suggests using nmrpflash, but I already tried that. I gave it another go, this time ensuring I was plugging into port 1 on the router, and I used the explicit -a and -A parameters to set the IP addresses on each end. It didn't work when I plugged directly into the router from the computer, but when I went through an intermediate switch nmrpflash suddenly found the device!
I managed to flash the stock firmware. Thanks for your help!
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Thu Jan 04, 2024 21:55 Post subject:
Would've been nice to see what the .chk file produced from either webUI while tailing the syslog (tail -f /var/log/messages via telnet/ssh) or from CLI flash. Seems this device can be finnicky and lack of reporting save and except for a report on a K2.6 build in the New Build - 11/01/2023 - r53843 thread requires some attention.
Joined: 06 Jun 2006 Posts: 7492 Location: Dresden, Germany
Posted: Fri Jan 05, 2024 4:25 Post subject:
naasking wrote:
Thanks, ssh was a bust, it immediately aborted the connection once I tried to execute the write command. Telnet worked but I received this error:
Code:
root@DD-WRT:/tmp# write dd-wrt.v24-54682_NEWD-2_K3.x_mega-nv64k.bin linux
function stop_pppoeserver not found
function stop_freeradius not found
dd-wrt.v24-54682_NEWD-2_K3.x_mega-nv64k.bin: Bad trx header
This thread suggests using nmrpflash, but I already tried that. I gave it another go, this time ensuring I was plugging into port 1 on the router, and I used the explicit -a and -A parameters to set the IP addresses on each end. It didn't work when I plugged directly into the router from the computer, but when I went through an intermediate switch nmrpflash suddenly found the device!
I managed to flash the stock firmware. Thanks for your help!
you are doing it wrong. the nv64 files are only flashable by web and have a special webgui only header. if you use the standard .bin file it will work _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Fri Jan 05, 2024 17:11 Post subject:
So, to flash an upgrade via CLI, it would be this instead, I presume:
Code:
cd /tmp
wget http://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2024/01-02-2024-r54682/broadcom_K3X/dd-wrt.v24-54682_NEWD-2_K3.x_mega.bin
write dd-wrt.v24-54682_NEWD-2_K3.x_mega.bin linux
reboot
I also found this thread which says once you go K3x initially with K3.x_mega.nv64k.bin you can use the generic K3.x_mega.bin (assumption is by webUI, but I doubt that):