User Tools

Site Tools


toh:netgear:netgear_r6220

Netgear R6220

Under Construction!
This page is currently under construction. You can edit the article to help completing it.

The Netgear R6220 is a simultaneous dual band WIFI router with AC1200 WiFi - 300+867 Mbps (2.4 & 5 GHz) speeds. It contains non-removable external antennas. The router features 4 Gbit LAN and one Gbit WAN port. It comes with a large 128 MB NAND ROM with space for many packages and a dual core MIPS CPU powered by 128 MB RAM.

The R6220 is based on the MT7621 and received official support since OpenWrt 18.06.

Netgear R6220

FIXME

Getting started with a new Device Page

  1. This is an empty template that suggests the information that should be present on a well-constructed Device Page. This means, that you have to fill it with life and information.
  2. There are several “fixme” tags with text on a light background (like this text) throughout this template. As you fill in the page, remove those tags so that people can judge its completeness.
  3. When there are no more “fixme” tags left, delete this one too, along with the <WRAP> that encloses it.

Keep the articles modular

  • Please include only model specific information, omit bla,bla and put everything generic into separate articles
  • If you have no time to write certain stuff, link to docs
  • base-system should lead the way, do not explain this again
  • DO NOT provide a complete howto here! Instead groom the general documentation.

Supported Versions

Experimental Versions

None at this time.

Hardware Highlights

ModelVersionSoCCPU MHzFlash MBRAM MBWLAN HardwareWLAN2.4WLAN5.0100M portsGbit portsModemUSB
R6220MediaTek MT7621ST880128128MediaTek MT7603EN, MediaTek MT7612ENb/g/na/n/ac-5-1x 2.0

Installation

Installation through telnet:

  • Copy kernel.bin and rootfs.bin to a USB flash disk, plug to usb port on the router
  • Call the link: http://[IP-address]/setup.cgi?todo=debug (login if required, default: admin - password)
  • You will see “Debug Enabled!”
  • telnet IP-address and login with “root” (default: admin - password)
  • ls /mnt/shares/ to find out path of your USB disk - 'myUdisk' for example
  • cd /mnt/shares/myUdisk
  • mtd_write write rootfs.bin Rootfs
  • mtd_write write kernel.bin Kernel
  • reboot

Replace rootfs.bin and kernel.bin with the names of the images downloaded

Flash Layout

Netgear R6220 Flash Layout
Layer0 NAND flash memory chip (Macronix 3,3V 8-bit SLC) 128 MiB
Layer1 mtd0 u-boot 1 MiB mtd1 SC PID 1 MiB mtd2 kernel 4 MiB mtd3 ubi 28 MiB unused 12 MiB mtd4 factory 1 MiB unused 19 MiB mtd5 reserved 60 MiB
mountpoint / /rom
filesystem OverlayFS SquashFS
Size in KiB 1024 KiB 1024 KiB 4096 KiB 3596 KiB 21204 KiB 12288 KiB 1024 KiB 19456 KiB 61440 KiB

Additional details to be added

Different flash layouts and WIFI MAC issue

Netgear uses different flash layouts for this device. Currently three different layouts are known. Unfortunately up to now there seems to be no way to identify the version with the information printed on the box. The difference among the flash layouts is affecting the location of the factory partition. As a result the WIFI driver of OpenWrt cannot load the MAC address resulting in unstable or failing network connection (esp. on 2.4GHz). You can follow the discussion on the forum, see link below. OpenWrt supports only one flash layout as of now. In case that your flash layout is not supported you will see an error message in your kernel messages using dmesg:

mt76x2e 0000:01:00.0: EEPROM data check failed: ffff
mt76x2e 0000:01:00.0: Invalid MAC address, using random address xx:xx:xx:xx:xx:xx

Flash layout discussion: https://forum.openwrt.org/t/mt7603en-mt7612en-wifi-troubles-on-netgear-r6220/3705

Update 2018-11-08: There has been a bug filed with regards to this behavior stating that in case of bad erase blocks prior to the factory partition OpenWrt uses incorrect/shifted offset addresses to access the factory partition. If this bug is confirmed this may the reason for the behavior reported by several users. Please follow the bug status over here: https://bugs.openwrt.org/index.php?do=details&task_id=1926

FIXME Find out flash layout, then add the flash layout table here (copy, paste, modify the example).

Please check out the article Flash layout. It contains examples and explanations that describe how to document the flash layout.

OEM easy installation

This section deals with

  • How you install OpenWrt from a device freshly opened
  • The steps required such as reset to factory defaults if the device has already been configured

Installation through telnet:

  • Copy kernel.bin and rootfs.bin to a USB flash disk, plug to usb port on the router
  • Call the link: http://192.168.1.1/setup.cgi?todo=debug (login if required, default: admin - password)
  • You will see “Debug Enabled!”
  • telnet IP-address and login with “root” (default: admin - password)
  • ls /mnt/shares/ to find out path of your USB disk - 'myUdisk' for example
  • cd /mnt/shares/myUdisk
  • mtd_write write rootfs.bin Rootfs
  • mtd_write write kernel.bin Kernel
  • reboot

Replace rootfs.bin and kernel.bin with the names of the images downloaded

OEM installation using the TFTP method

Specific values needed for tftp

FIXME Enter values for “FILL-IN” below

Bootloader tftp server IPv4 address FILL-IN
Bootloader MAC address (special) FILL-IN
Firmware tftp image Latest OpenWrt release (NOTE: Name must contain “tftp”)
TFTP transfer window FILL-IN seconds
TFTP window start approximately FILL-IN seconds after power on
TFTP client required IP address FILL-IN

Upgrading OpenWrt

generic.sysupgrade

FIXME These are generic instructions. Update with your router's specifics.

LuCI Web Upgrade Process

Terminal Upgrade Process

If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line. There are two command line methods for upgrading:

  • sysupgrade
  • mtd

Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.

sysupgrade

  • Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
sysupgrade /tmp/xxx.abc

mtd

If sysupgrade does not support this router, use mtd.

  • Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
mtd write /tmp/xxx.abc linux && reboot

Debricking

generic.debrick

Debricking of the R6220 can be done by using the tool nmrpflash tool. See details over here: https://github.com/jclehner/nmrpflash

This tool can also be used to go back to stock firmware.

Failsafe mode

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration

FIXME Please fill in real values for this device, then remove the EXAMPLEs

Network interfaces

The default network configuration is:

Interface Name Description Default configuration
br-lan EXAMPLE LAN & WiFi EXAMPLE 192.168.1.1/24
vlan0 (eth0.0) EXAMPLE LAN ports (1 to 4) EXAMPLE None
vlan1 (eth0.1) EXAMPLE WAN port EXAMPLE DHCP
wl0 EXAMPLE WiFi EXAMPLE Disabled

Switch Ports (for VLANs)

FIXME Please fill in real values for this device, then remove the EXAMPLEs

Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.

Port Switch port
Internet (WAN) EXAMPLE 4
LAN 1 EXAMPLE 3
LAN 2 EXAMPLE 2
LAN 3 EXAMPLE 1
LAN 4 EXAMPLE 0

Buttons

hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

FIXME Please fill in real values for this device, then remove the EXAMPLEs

The Netgear R6220 has the following buttons:

BUTTON Event
EXAMPLE Reset reset
EXAMPLE Secure Easy Setup ses
EXAMPLE No buttons at all. -

Hardware

Info

General
Brand Netgear
Model R6220
Versions
Device Type WiFi Router
Availability Available 2017
Comments - general The port mapping on this device is backwards relative to the printed numbers 1-4 on the device. This can be important when configuring LEDE's switch features since Physical 1 --> LAN4, Physical 2 --> LAN3, Physical 3 --> LAN2, and Physical 4 --> LAN1.
OpenWrt Support
Supported Since Revision
Supported Since Release 18.06.0
Supported Current Release 18.06.1
Unsupported
Hardware
Instruction set ¿
Sub Instruction Set ¿
bootloader U-Boot
Target ramips
System-On-Chip
CPU MHz 880
Flash MB 128
RAM MB 128
Network
Ethernet 100M ports -
Ethernet Gbit ports 5
switch MediaTek MT7621ST
Modem -
VLAN Yes
Comments - network ports
Wireless
WLAN 2.4GHz b/g/n
WLAN 5.0GHz a/n/ac
WLAN Hardware MediaTek MT7603EN, MediaTek MT7612EN
Detachable Antennas -
Comments - WLAN MIMO 2x2
Interfaces
USB ports 1x 2.0
SATA ports -
Serial Yes
JTAG ¿
Comments - USB & SATA ports
Misc
LED count 9
Button count 3
Power supply 12 VDC, 1.5 A
Links
Forum Topic URL
WikiDevi URL https://wikidevi.com/wiki/Netgear_R6220
OEM device homepage URL https://www.netgear.com/home/products/networking/wifi-routers/R6220.aspx
Firmware OEM Stock URL https://www.netgear.com/support/product/R6220
Firmware OpenWrt Install URL http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7621/openwrt-18.06.1-ramips-mt7621-r6220-squashfs-kernel.bin, http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7621/openwrt-18.06.1-ramips-mt7621-r6220-squashfs-rootfs.bin
Firmware OpenWrt Upgrade URL http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7621/openwrt-18.06.1-ramips-mt7621-r6220-squashfs-sysupgrade.tar
Edit the underlying data View/Edit data

Photos

Front:
Insert photo of front of the casing

Back:
Insert photo of back of the casing

Backside label:
Insert photo of backside label

Opening the case

Note: This will void your warranty!

The case is not held together using screws, only plastic latches. Use a prying tool to slowly pry the top part of the case away from the bottom. Remove a piece of tape covering the antenna wires and remove the antennas. Next, remove the screws holding the motherboard in place and slowly take it out of the case.

Main PCB:
Insert photo of PCB

Serial

port.serial general information about the serial port, serial port cable, etc.

How to connect to the Serial Port of this specific device:

FIXME Insert photo of PCB with markings for serial port

Serial connection parameters
for Netgear R6220 @@Version@@
57600, 8N1

JTAG

port.jtag general information about the JTAG port, JTAG cable, etc.

How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port

Bootloader mods

Hardware mods

Note: If you are a beginner, you should inform yourself about soldering in general and even then obtain some experience!

Here are some interesting hardware modifications for the R6220, from the OpenWrt forum:

Bootlogs

OEM bootlog

COPY HERE THE BOOTLOG WITH THE ORIGINAL FIRMWARE


OpenWrt bootlog

COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING


Notes

Space for additional notes, links to forum threads or other resources.

Tags

FIXME Add tags below, then remove this fixme.

How to add tags

toh/netgear/netgear_r6220.txt · Last modified: 2018/11/12 14:51 by mirage