From 89f0e6793ebc187ba865f2ef9e2731f96a4e6335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Tue, 3 Jan 2023 00:10:12 +0100 Subject: [PATCH] WIP: Add support for GL.iNet GL-MT1300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Bläse --- bsp/ramips-mt7621.bsp | 1 + bsp/ramips-mt7621/.config | 2 ++ .../fff/fff-network/files/lib/functions/fff/cpuport | 1 + .../fff/fff-network/mipsel/network.glinet,gl-mt1300 | 6 ++++++ 4 files changed, 10 insertions(+) create mode 100644 src/packages/fff/fff-network/mipsel/network.glinet,gl-mt1300 diff --git a/bsp/ramips-mt7621.bsp b/bsp/ramips-mt7621.bsp index 091c5d1d..4e3c1c59 100644 --- a/bsp/ramips-mt7621.bsp +++ b/bsp/ramips-mt7621.bsp @@ -2,6 +2,7 @@ chipset=ramips subtarget=mt7621 images=( + "openwrt-ramips-mt7621-glinet_gl-mt1300-squashfs-*" "openwrt-ramips-mt7621-netgear_r6220-squashfs-*" "openwrt-ramips-mt7621-ubnt_edgerouter-x-squashfs-*" "openwrt-ramips-mt7621-ubnt_edgerouter-x-sfp-squashfs-*" diff --git a/bsp/ramips-mt7621/.config b/bsp/ramips-mt7621/.config index bc7766a9..4f83e7f9 100644 --- a/bsp/ramips-mt7621/.config +++ b/bsp/ramips-mt7621/.config @@ -4,6 +4,8 @@ CONFIG_TARGET_ramips=y CONFIG_TARGET_ramips_mt7621=y CONFIG_TARGET_MULTI_PROFILE=y +CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_glinet_gl-mt1300=y +CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_glinet_gl-mt1300="" CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6220=y CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_netgear_r6220="" CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt_edgerouter-x=y diff --git a/src/packages/fff/fff-network/files/lib/functions/fff/cpuport b/src/packages/fff/fff-network/files/lib/functions/fff/cpuport index 31cfb600..b9d2c833 100644 --- a/src/packages/fff/fff-network/files/lib/functions/fff/cpuport +++ b/src/packages/fff/fff-network/files/lib/functions/fff/cpuport @@ -15,6 +15,7 @@ get_cpu_port() { xiaomi,mi-router-4a-100m) CPUPORT="6t" ;; + glinet,gl-mt1300|\ netgear,r6220|\ tplink,cpe210-v2|\ tplink,cpe210-v3|\ diff --git a/src/packages/fff/fff-network/mipsel/network.glinet,gl-mt1300 b/src/packages/fff/fff-network/mipsel/network.glinet,gl-mt1300 new file mode 100644 index 00000000..dd32a3e0 --- /dev/null +++ b/src/packages/fff/fff-network/mipsel/network.glinet,gl-mt1300 @@ -0,0 +1,6 @@ +WANDEV=switch0 +SWITCHDEV=switch0 +CLIENT_PORTS="lan2" +WAN_PORTS="wan" +BATMAN_PORTS="lan1" +DSA=1