Struggling reverting to stock firmware on WAX202

I walked away from this, but came back to it today. Still couldn't get nmrpflash or TFTP64 to work. I also tried the built-in Windows TFTP command line, but was never able to connect to the router. All of the posts say to be patient and keep trying, but I must have done it 30 times.

The solution came from this post and this post. I had to manually upload the firmware with scp, then SSH in to write it.

Here's the full procedure for anyone else who runs into the same issues.

  1. Reset OpenWRT so that there's no password on the root user.
  2. Follow steps 1 through 5.d in Netgear's How do I upload firmware to my NETGEAR router using TFTP from the Microsoft Windows Command Prompt? webpage.
    • I also recommend renaming the firmware to be wax202.img
  3. Instead of using tftp to put the file on the router, use the scp command to upload to the tmp folder.
    • scp wax202.img root@192.168.1.1:/tmp

Windows might display a warning that looks like this:

The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ED****5 key fingerprint is ***********************.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

If so, type yes and Enter to continue.

Warning: Permanently added '192.168.1.1' (ED****5) to the list of known hosts.
WAX202.img                                       100%   22MB   5.4MB/s   00:04
  1. Close the command prompt window.
  2. SSH into the router using a client such as PuTTY
    • Host name: 192.168.1.1
    • Port: 22
  3. Change to the tmp directory and write the firmware.
    • cd /tmp
    • mtd write wax202.img firmware # mtd3 is 'firmware'
  4. Unplug and plug the router to reboot.

It will take a few minutes to install the stock firmware. I expected the router to revert to factory settings, but it retained the last settings I had before flashing OpenWRT onto it.

Good grief.