Add support for Xiaomi Mi Router 4A (Gigabit Edition)

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <freifunk@dresel.systems>
Tested-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Fabian Bläse 2021-07-12 15:33:10 +02:00
parent ffd00a93a7
commit 256ac6a6c6
4 changed files with 11 additions and 1 deletions

View File

@ -5,4 +5,5 @@ images=(
"openwrt-ramips-mt7621-netgear_r6220-squashfs-*"
"openwrt-ramips-mt7621-ubnt_edgerouter-x-squashfs-*"
"openwrt-ramips-mt7621-ubnt_edgerouter-x-sfp-squashfs-*"
"openwrt-ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-*"
)

View File

@ -10,6 +10,8 @@ CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt_edgerouter-x=y
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_ubnt_edgerouter-x=""
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt_edgerouter-x-sfp=y
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_ubnt_edgerouter-x-sfp=""
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-4a-gigabit=y
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_xiaomi_mi-router-4a-gigabit=""
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
# CONFIG_BUSYBOX_CONFIG_BRCTL is not set

View File

@ -31,7 +31,8 @@ get_cpu_port() {
ubnt,nanostation-m|\
ubnt,picostation-m|\
ubnt,unifi|\
ubnt,unifiac-mesh)
ubnt,unifiac-mesh|\
xiaomi,mi-router-4a-gigabit)
CPUPORT=""
;;
tplink,tl-wr1043nd-v1)

View File

@ -0,0 +1,6 @@
WANDEV=switch0
SWITCHDEV=switch0
CLIENT_PORTS="lan2"
WAN_PORTS="wan"
BATMAN_PORTS="lan1"
DSA=1