From patchwork Sat Nov 23 13:25:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v2] Add support for Archer C2600 From: Fabian Blaese X-Patchwork-Id: 1226 Message-Id: <20191123132528.93042-1-fabian@blaese.de> To: franken-dev@freifunk.net Date: Sat, 23 Nov 2019 14:25:28 +0100 Signed-off-by: Fabian Bläse Reviewed-by: Robert Langhammer --- Changes in v2: - Remove obsolete target Variable from bsp --- bsp/board_ipq806x.bsp | 7 +++++++ bsp/ipq806x/.config | 12 ++++++++++++ .../fff/fff-network/ipq806x/network.tplink,c2600 | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 bsp/board_ipq806x.bsp create mode 100644 bsp/ipq806x/.config create mode 100644 src/packages/fff/fff-network/ipq806x/network.tplink,c2600 diff --git a/bsp/board_ipq806x.bsp b/bsp/board_ipq806x.bsp new file mode 100644 index 0000000..cfb9b7c --- /dev/null +++ b/bsp/board_ipq806x.bsp @@ -0,0 +1,7 @@ +machine=ipq806x +chipset=ipq806x +subtarget=generic + +images=( + "openwrt-${chipset}-tplink_c2600-squashfs-sysupgrade.bin" + ) diff --git a/bsp/ipq806x/.config b/bsp/ipq806x/.config new file mode 100644 index 0000000..707e6bd --- /dev/null +++ b/bsp/ipq806x/.config @@ -0,0 +1,12 @@ +# Generated using "./buildscript config openwrt". +# Do no edit manually +# +CONFIG_TARGET_ipq806x=y +CONFIG_TARGET_MULTI_PROFILE=y +CONFIG_TARGET_DEVICE_ipq806x_DEVICE_tplink_c2600=y +CONFIG_BUSYBOX_CUSTOM=y +CONFIG_CLEAN_IPKG=y +CONFIG_PACKAGE_kmod-hwmon-core=m +CONFIG_PACKAGE_opkg=m +CONFIG_STRIP_KERNEL_EXPORTS=y +CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 diff --git a/src/packages/fff/fff-network/ipq806x/network.tplink,c2600 b/src/packages/fff/fff-network/ipq806x/network.tplink,c2600 new file mode 100644 index 0000000..efc8063 --- /dev/null +++ b/src/packages/fff/fff-network/ipq806x/network.tplink,c2600 @@ -0,0 +1,9 @@ +. /lib/functions/fff/network + +WANDEV=eth0 +SWITCHDEV=eth0 +CLIENT_PORTS="0t 1 2" +WAN_PORTS="0t 5" +BATMAN_PORTS="0t 3 4" + +ROUTERMAC=$(cat /sys/class/net/eth1/address)