Flashing a Netgear R6080 router with OpenWRT

Install tooling

[user@fedora ~]$ mkdir netgear
[user@fedora netgear]$ cd netgear/
[user@fedora netgear]$ git clone https://github.com/jclehner/nmrpflash
[user@fedora netgaer]$ cd nmrpflash/
[user@fedora nmrpflash]$ sudo dnf install libpcap-devel libnl3-devel 
[user@fedora nmrpflash]$ make
[user@fedora nmrpflash]$ wget https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt76x8/openwrt-22.03.0-ramips-mt76x8-netgear_r6080-squashfs-factory.img

Flash firmware

connect the router to the PC with an ethernet cable. This will not work if you connect the cable to the WAN port, you must use one of the switch ports.

[user@fedora nmrpflash]$ ifconfig
[user@fedora nmrpflash]$ ./nmrpflash -L
[user@fedora nmrpflash]$ sudo ./nmrpflash -i enp0s31f6 -f ./openwrt-22.03.0-ramips-mt76x8-netgear_r6080-squashfs-factory.img 
# wait
[user@fedora nmrpflash]$ ssh root@192.168.1.1

With a shell on the router:

root@R6080:~# jffs2reset
root@R6080:~# reboot
# wait

reconnect:

[user@fedora nmrpflash]$ ssh root@192.168.1.1
# remove old keys, keys changed
[user@fedora nmrpflash]$ vim ~/.ssh/known_hosts
[user@fedora nmrpflash]$ ssh root@192.168.1.1

Update and install a web ui:

Connect the router to WAN (other router->WAN eth port or modem->WAN eth port)

root@R6080:~# opkg update
root@R6080:~# opkg install luci

resume configuration via the web ui

[user@fedora nmrpflash]$ firefox 192.168.1.1

Post-install setup

As per the documentation, default configuration might be limiting. Things you must manually do include:

  • set a root password
  • enable wireless interfaces
  • set up crypto on said interfaces