Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: "cerowrt-devel@lists.bufferbloat.net"
	<cerowrt-devel@lists.bufferbloat.net>
Subject: [Cerowrt-devel] Fwd: [OpenWrt-Devel] [PATCH] [ipq806x] Add initial support for TP-Link Archer C2600
Date: Sat, 5 Dec 2015 12:35:59 +0100	[thread overview]
Message-ID: <CAA93jw6GkNa02ePkfFYEqz-m7gahoNX=Njbbd=Sj_6EUKbtA0g@mail.gmail.com> (raw)
In-Reply-To: <CAD1MEwdeK5pmHZfq5fOjAKtE=3ZVj7EU-SH3EjRZwWhkfOuVGw@mail.gmail.com>

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@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@openwrt.org>
Cc: openwrt-devel@lists.openwrt.org


From: Josh Bendavid <joshbendavid@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@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@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

           reply	other threads:[~2015-12-05 11:36 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAD1MEwdeK5pmHZfq5fOjAKtE=3ZVj7EU-SH3EjRZwWhkfOuVGw@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA93jw6GkNa02ePkfFYEqz-m7gahoNX=Njbbd=Sj_6EUKbtA0g@mail.gmail.com' \
    --to=dave.taht@gmail.com \
    --cc=cerowrt-devel@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox