[PATCH 2/2] Add support for TP-Link C50 v3

Fabian Bläse fabian at blaese.de
Do Apr 2 13:43:41 CEST 2020


Signed-off-by: Fabian Bläse <fabian at blaese.de>
---
 bsp/board_mt76x8.bsp                          |  5 ++++
 bsp/mt76x8/.config                            | 27 +++++++++++++++++++
 .../fff-network/ramips/network.tplink,c50-v3  |  9 +++++++
 3 files changed, 41 insertions(+)
 create mode 100644 bsp/board_mt76x8.bsp
 create mode 100644 bsp/mt76x8/.config
 create mode 100644 src/packages/fff/fff-network/ramips/network.tplink,c50-v3

diff --git a/bsp/board_mt76x8.bsp b/bsp/board_mt76x8.bsp
new file mode 100644
index 0000000..812456c
--- /dev/null
+++ b/bsp/board_mt76x8.bsp
@@ -0,0 +1,5 @@
+machine=mt76x8
+chipset=ramips
+subtarget=mt76x8
+images=("openwrt-${chipset}-${subtarget}-tplink_c50-v3-squashfs-sysupgrade.bin"
+        )
diff --git a/bsp/mt76x8/.config b/bsp/mt76x8/.config
new file mode 100644
index 0000000..9d76ed5
--- /dev/null
+++ b/bsp/mt76x8/.config
@@ -0,0 +1,27 @@
+# Generated using "./buildscript config openwrt".
+# Do no edit manually
+#
+CONFIG_TARGET_ramips=y
+CONFIG_TARGET_ramips_mt76x8=y
+CONFIG_TARGET_MULTI_PROFILE=y
+CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_tplink_c50-v3=y
+CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_tplink_c50-v3=""
+CONFIG_BUSYBOX_CUSTOM=y
+CONFIG_TARGET_PER_DEVICE_ROOTFS=y
+# CONFIG_BUSYBOX_CONFIG_BRCTL is not set
+# CONFIG_BUSYBOX_CONFIG_CROND is not set
+# CONFIG_BUSYBOX_CONFIG_CRONTAB is not set
+# CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set
+# CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set
+CONFIG_CLEAN_IPKG=y
+# CONFIG_DROPBEAR_CURVE25519 is not set
+# CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set
+# CONFIG_FASTD_ENABLE_MAC_GHASH is not set
+# CONFIG_FASTD_ENABLE_MAC_UHASH is not set
+# CONFIG_FASTD_ENABLE_METHOD_COMPOSED_GMAC is not set
+# CONFIG_FASTD_ENABLE_METHOD_COMPOSED_UMAC is not set
+# CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set
+# CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set
+# CONFIG_PACKAGE_ALFRED_VIS is not set
+CONFIG_PACKAGE_opkg=m
+CONFIG_STRIP_KERNEL_EXPORTS=y
diff --git a/src/packages/fff/fff-network/ramips/network.tplink,c50-v3 b/src/packages/fff/fff-network/ramips/network.tplink,c50-v3
new file mode 100644
index 0000000..9dbc9f8
--- /dev/null
+++ b/src/packages/fff/fff-network/ramips/network.tplink,c50-v3
@@ -0,0 +1,9 @@
+. /lib/functions/fff/network
+
+WANDEV=eth0
+SWITCHDEV=eth0
+CLIENT_PORTS="6t 3 4"
+WAN_PORTS="6t 0"
+BATMAN_PORTS="6t 1 2"
+
+ROUTERMAC=$(cat /sys/class/net/eth0/address)
-- 
2.26.0



Mehr Informationen über die Mailingliste franken-dev