mt7621: Add support for Netgear R6220

The factory image can either be flashed via the vendor WebUI or
the bootloader using nmrpflash.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Fabian Bläse 2020-07-14 15:21:49 +02:00 committed by Adrian Schmutzler
parent b886c938dc
commit ce4146cf4a
4 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@ chipset=ramips
subtarget=mt7621
images=(
"openwrt-ramips-mt7621-r6220-squashfs-*"
"openwrt-ramips-mt7621-ubnt-erx-squashfs-*"
"openwrt-ramips-mt7621-ubnt-erx-sfp-squashfs-*"
)

View File

@ -4,6 +4,8 @@
CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_r6220=y
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_r6220=""
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt-erx=y
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_ubnt-erx=""
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt-erx-sfp=y

View File

@ -11,6 +11,7 @@ case "$BOARD" in
tplink,tl-wr1043nd-v2|\
tplink,tl-wr1043nd-v3|\
tl-wr841n-v13|\
r6220|\
ubnt-erx|\
ubnt-erx-sfp)
CPUPORT="6t"

View File

@ -0,0 +1,12 @@
. /lib/functions/fff/network
PORTORDER="4 3 2 1 0"
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS="6t 0 1"
WAN_PORTS="6t 4"
BATMAN_PORTS="6t 2 3"
ROUTERMAC=$(cat /sys/class/net/eth0/address)
ETHMESHMAC=$(macFlipLocalBit "$(cat /sys/class/net/eth0/address)")