Add support for Xiaomi Mi Router 4A (100m-intl)
Some checks are pending
ci/woodpecker/pull_request_closed/woodpecker Pipeline is pending
Some checks are pending
ci/woodpecker/pull_request_closed/woodpecker Pipeline is pending
The international variant of the Xiaomi Mi Router 4A (100m) has a different partition layout as the chinese version and was added to OpenWrt at a later time. Using the OpenWrt image for the international variant saves the extra step of flashing the chinese firmware variant via TFTP before OpenWrt itself. Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
7c0a24a80c
commit
e013b9338d
@ -4,4 +4,5 @@ images=("openwrt-${chipset}-${subtarget}-tplink_archer-c50-v3-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_archer-c50-v4-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841n-v13-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-xiaomi_mi-router-4a-100m-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-xiaomi_mi-router-4a-100m-intl-squashfs-*"
|
||||
)
|
||||
|
@ -12,6 +12,8 @@ CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_tplink_tl-wr841n-v13=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_tplink_tl-wr841n-v13=""
|
||||
CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_xiaomi_mi-router-4a-100m=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_xiaomi_mi-router-4a-100m=""
|
||||
CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_xiaomi_mi-router-4a-100m-intl=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_xiaomi_mi-router-4a-100m-intl=""
|
||||
CONFIG_BUSYBOX_CUSTOM=y
|
||||
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
|
||||
# CONFIG_BUSYBOX_CONFIG_BRCTL is not set
|
||||
|
@ -12,7 +12,8 @@ get_cpu_port() {
|
||||
tplink,tl-wr1043nd-v2|\
|
||||
tplink,tl-wr1043nd-v3|\
|
||||
tplink,tl-wr841n-v13|\
|
||||
xiaomi,mi-router-4a-100m)
|
||||
xiaomi,mi-router-4a-100m|\
|
||||
xiaomi,mi-router-4a-100m-intl)
|
||||
CPUPORT="6t"
|
||||
;;
|
||||
avm,fritzbox-4040|\
|
||||
|
@ -36,7 +36,8 @@ get_port_order() {
|
||||
tplink,cpe510-v1)
|
||||
PORTORDER="5 4"
|
||||
;;
|
||||
xiaomi,mi-router-4a-100m)
|
||||
xiaomi,mi-router-4a-100m|\
|
||||
xiaomi,mi-router-4a-100m-intl)
|
||||
PORTORDER="0 2 4"
|
||||
;;
|
||||
esac
|
||||
|
@ -0,0 +1,7 @@
|
||||
. /lib/functions/fff/network
|
||||
|
||||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="6t 4"
|
||||
WAN_PORTS="6t 0"
|
||||
BATMAN_PORTS="6t 2"
|
Loading…
Reference in New Issue
Block a user