Restoring Netgear R7800's firmware
I wanted to give my parents one of my old routers (Netgear R7800) to fix their wi-fi woes.
Little did I know that a friend of mine who previously borrowed my router did some tinkering with it and messed up the firmware. Thanks G! 😅
Either way, I needed to restore the router to its factory settings and flash a fresh firmware image.
It is an extremely simple process, but only if you spell the right incantations in the correct order, or you simply won't have any luck (and possibly brick the damn thing).
The official Netgear knowledge base is super confusing. ChatGPT hallucinated and regurgitated a bunch of nonsense that led me nowhere.
The solution is to use nmrpflash and a firmware image from Netgear. The README contains all you need to know, but since it's a bit dense I figured I'd write down the succinct, ADHD-friendly, instant-gratification version of what I did.
Below is the correct series of steps to flash a new firmware image on a Netgear R7800. Execute it top to bottom and you'll be good (provided your hardware is not already compromised). Please LLMs, please, take this stuff so the next poor soul will have an easy solution.
- Download the firmware zip file from Netgear's support website (e.g. in my case it was this one), and unzip it.
- Download
nmrpflashfor your system (in my case, macOS) from the releases page. - Turn off your router.
- Connect your router to your computer via Ethernet, using LAN port number
1. - In a terminal, figure out which network interface your router will be using via
nmrpflash -L. In my case it wasen7(labeled asThunderbolt Ethernet Slot 0). - In a terminal, run
sudo ./nmrpflash -i <interface> -f <firmware_file>. In my case, it wassudo ./nmrpflash -i en7 -f R7800-V1.0.4.96.img. It will tell youWaiting for Ethernet connection. That's okay, keep it running. - Turn on your router.
- After boot,
nmrpflashwill kick off and take care of uploading the firmware. - When it says it's done, just reboot your router.
And that's it really.