Installing LEDE on a Netgear R6220
LEDE has recently added support for the Netgear R6220. LEDE is a Linux operating system based on OpenWrt. We’ll see how to install it.
Disclaimer: R6220 support is still unstable, do not install it if you care about availability! Also, you have a chance to brick your router by flashing LEDE.
R6220 support has been added just a few weeks ago, so factory installation images are not yet available. We’ll need to flash LEDE through Telnet.
First download images for the kernel and the root filesystem:
curl -O https://downloads.lede-project.org/snapshots/targets/ramips/mt7621/lede-ramips-mt7621-r6220-squashfs-rootfs.bin curl -O https://downloads.lede-project.org/snapshots/targets/ramips/mt7621/lede-ramips-mt7621-r6220-squashfs-kernel.bin
Then copy these two files on a USB stick, and plug it on the back of the router.
Enable Telnet on the router by opening this link (you’ll be asked to login, default credentials are printed under the router):
You’ll see something like: Debug Enabled!
We can now open a Telnet connection, login with root and
cd to your USB stick:
telnet 192.168.1.1 # Login with "root" ls /mnt/shares/ # To find your USB stick cd /mnt/shares/<usb stick>
We can now flash the images! Take a deep breath, and:
mtd_write write lede-ramips-mt7621-r6220-squashfs-rootfs.bin Rootfs mtd_write write lede-ramips-mt7621-r6220-squashfs-kernel.bin Kernel reboot
Your router is supposed to boot (blinking power LED). If something goes wrong (e.g. it’s bootlooping), scroll down to the last section of this article.
Setting up LEDE
You can now follow standard instructions to setup LEDE after a snapshot installation. You can install LuCI (the web interface) and configure your router from there.
I myself had an issue with Internet connectivity: I was able to
opkg update was failing. The problem was that I connected the WAN port to
an existing network whose IP address is
192.168.1.0 and that the router’s
default IP address is
192.168.1.1. Thus, my old router’s IP address was
conflicting with LEDE’s IP address. To fix this, I had to edit
/etc/config/network (it seems that only
vi is available) and replace
192.168.2.1 under the
[lan] section. Reboot the router and
now you should be able to run
You can install
kmod-usb3 to get the USB port to work (and
to turn on the corresponding LED when a device is connected).
What if I’ve bricked my router?
If something goes wrong, there’s a way to unbrick your router using nmrpflash.
First download the router’s default firmware and the latest nmrpflash release.
Then follow the instructions in the README. You’ll have to connect your router directly to your computer and run something like this:
nmrpflash -i enp0s25 -F firmware -f R6220_V220.127.116.11_1.0.1.img
If you get the error
Timeout while waiting for ACK(0)/OACK., then you’re as
unlucky as me and you’ll need to manually edit your ARP table. Your router’s
MAC address is printed under it. Some details are in this GitHub issue:
- Official product page: http://www.netgear.com/home/products/networking/wifi-routers/R6220.aspx
- R6220 techdata: https://lede-project.org/toh/hwdata/netgear/netgear_r6220
- Pull request adding R6220 support to LEDE: https://github.com/lede-project/source/pull/921
- Development installation docs: https://lede-project.org/docs/guide-quick-start/developmentinstallation