[Cerowrt-devel] Fwd: [OpenWrt-Devel] [PATCH] [ipq806x] Add initial support for TP-Link Archer C2600

Dave Taht dave.taht at gmail.com
Sat Dec 5 06:35:59 EST 2015


It seems like it has taken far too long, but more useful, almost
hackable hardware seems to be arriving. If only we could just find one
802.11ac wifi maker willing to open their onboard firmware... or find
ways to work with those that do have access to it.

https://plus.google.com/u/0/100866848340734561931/posts/9MufV2Fq4Ck



---------- Forwarded message ----------
From: Josh Bendavid <Josh.Bendavid at cern.ch>
Date: Sat, Dec 5, 2015 at 5:13 AM
Subject: [OpenWrt-Devel] [PATCH] [ipq806x] Add initial support for
TP-Link Archer C2600
To: John Crispin <blogic at openwrt.org>
Cc: openwrt-devel at lists.openwrt.org


From: Josh Bendavid <joshbendavid at gmail.com>

Add initial support for Archer C2600 to Makefiles and profiles.  This
is sufficient to build a working factory image.  Sysupgrade image is
not implemented yet.  Currently wired network is working, but
LED's/buttons/wireless are not.

Signed-off-by: Josh Bendavid <joshbendavid at gmail.com>
---

diff --git a/include/image.mk b/include/image.mk
index fd5e3f4..9ad2d43 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -327,6 +327,16 @@ define Build/netgear-dni
  mv $@.new $@
 endef

+define Build/tplink-safe
+ $(STAGING_DIR_HOST)/bin/tplink-safeloader \
+ -B $(TPLINK_BOARD_ID) -V OpenWrt.$(REVISION) \
+ -k $(word 1,$^) \
+ -r $(word 2,$^) \
+ -j \
+ -o $@.new
+ mv $@.new $@
+endef
+
 define Build/fit
  $(TOPDIR)/scripts/mkits.sh \
  -D $(DEVICE_NAME) -o $@.its -k $@ \
diff --git a/target/linux/ipq806x/image/Makefile
b/target/linux/ipq806x/image/Makefile
index 14cf442..8e6a174 100644
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -85,6 +85,18 @@ define Device/DniImage
 endef
 DEVICE_VARS += KERNEL_SIZE NETGEAR_BOARD_ID NETGEAR_HW_ID
DEVICE_BLOCK_SIZE DEVICE_PAGE_SIZE

+define Device/TpSafeImage
+ PROFILES += $$(DEVICE_NAME)
+ FILESYSTEMS := squashfs
+ KERNEL_SUFFIX := -uImage
+ KERNEL = kernel-bin | append-dtb | uImage none
+ KERNEL_NAME := zImage
+ TPLINK_BOARD_ID :=
+ IMAGES := factory.bin
+ IMAGE/factory.bin := tplink-safe
+endef
+DEVICE_VARS += TPLINK_BOARD_ID
+
 define Device/AP148
  $(call Device/FitImage)
  $(call Device/UbiFit)
@@ -103,6 +115,15 @@ define Device/AP148-legacy
  BOARD_NAME := ap148
 endef

+define Device/C2600
+ $(call Device/TpSafeImage)
+ DEVICE_DTS := qcom-ipq8064-ap148
+ BLOCKSIZE := 128KiB
+ PAGESIZE := 2048
+ BOARD_NAME := ap148
+ TPLINK_BOARD_ID := C2600
+endef
+
 define Device/DB149
  $(call Device/FitImage)
  DEVICE_DTS := qcom-ipq8064-db149
@@ -121,6 +142,6 @@ define Device/R7500
  BOARD_NAME := r7500
 endef

-TARGET_DEVICES += AP148 AP148-legacy DB149 R7500
+TARGET_DEVICES += AP148 AP148-legacy C2600 DB149 R7500

 $(eval $(call BuildImage))
diff --git a/target/linux/ipq806x/profiles/tplink.mk
b/target/linux/ipq806x/profiles/tplink.mk
index e69de29..d3f5a6c 100644
--- a/target/linux/ipq806x/profiles/tplink.mk
+++ b/target/linux/ipq806x/profiles/tplink.mk
@@ -0,0 +1,20 @@
+#
+# Copyright (c) 2014 The Linux Foundation. All rights reserved.
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/C2600
+ NAME:=TP-Link Archer C2600
+ PACKAGES:= \
+ kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev \
+ kmod-usb3 kmod-usb-dwc3-qcom kmod-usb-phy-qcom-dwc3 \
+ kmod-ath10k ath10k-firmware-qca99x0 wpad-mini
+endef
+
+define Profile/C2600/Description
+ Package set for the TP-Link Archer C2600.
+endef
+$(eval $(call Profile,C2600))


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the Cerowrt-devel mailing list