<div dir="ltr"><div><div style="font-size:12.8px">From: Josh Bendavid <<a href="mailto:joshbendavid@gmail.com" target="_blank">joshbendavid@gmail.com</a>><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Signed-off-by: Josh Bendavid <<a href="mailto:joshbendavid@gmail.com" target="_blank">joshbendavid@gmail.com</a>><br></div><div style="font-size:12.8px">---</div></div><div><br></div><div>diff --git a/include/<a href="http://image.mk">image.mk</a> b/include/<a href="http://image.mk">image.mk</a></div><div>index fd5e3f4..9ad2d43 100644</div><div>--- a/include/<a href="http://image.mk">image.mk</a></div><div>+++ b/include/<a href="http://image.mk">image.mk</a></div><div>@@ -327,6 +327,16 @@ define Build/netgear-dni</div><div> <span class="" style="white-space:pre">       </span>mv $@.new $@</div><div> endef</div><div> </div><div>+define Build/tplink-safe</div><div>+<span class="" style="white-space:pre">       </span>$(STAGING_DIR_HOST)/bin/tplink-safeloader \</div><div>+<span class="" style="white-space:pre">               </span>-B $(TPLINK_BOARD_ID) -V OpenWrt.$(REVISION) \</div><div>+<span class="" style="white-space:pre">            </span>-k $(word 1,$^) \</div><div>+<span class="" style="white-space:pre">         </span>-r $(word 2,$^) \</div><div>+<span class="" style="white-space:pre">         </span>-j \</div><div>+<span class="" style="white-space:pre">              </span>-o $@.new</div><div>+<span class="" style="white-space:pre"> </span>mv $@.new $@</div><div>+endef</div><div>+</div><div> define Build/fit</div><div> <span class="" style="white-space:pre">       </span>$(TOPDIR)/scripts/mkits.sh \</div><div> <span class="" style="white-space:pre">             </span>-D $(DEVICE_NAME) -o $@.its -k $@ \</div><div>diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile</div><div>index 14cf442..8e6a174 100644</div><div>--- a/target/linux/ipq806x/image/Makefile</div><div>+++ b/target/linux/ipq806x/image/Makefile</div><div>@@ -85,6 +85,18 @@ define Device/DniImage</div><div> endef</div><div> DEVICE_VARS += KERNEL_SIZE NETGEAR_BOARD_ID NETGEAR_HW_ID DEVICE_BLOCK_SIZE DEVICE_PAGE_SIZE</div><div> </div><div>+define Device/TpSafeImage</div><div>+<span class="" style="white-space:pre"> </span>PROFILES += $$(DEVICE_NAME)</div><div>+<span class="" style="white-space:pre">       </span>FILESYSTEMS := squashfs</div><div>+<span class="" style="white-space:pre">   </span>KERNEL_SUFFIX := -uImage</div><div>+<span class="" style="white-space:pre">  </span>KERNEL = kernel-bin | append-dtb | uImage none</div><div>+<span class="" style="white-space:pre">    </span>KERNEL_NAME := zImage</div><div>+<span class="" style="white-space:pre">     </span>TPLINK_BOARD_ID :=</div><div>+<span class="" style="white-space:pre">        </span>IMAGES := factory.bin</div><div>+<span class="" style="white-space:pre">     </span>IMAGE/factory.bin := tplink-safe</div><div>+endef</div><div>+DEVICE_VARS += TPLINK_BOARD_ID</div><div>+</div><div> define Device/AP148</div><div> <span class="" style="white-space:pre">  </span>$(call Device/FitImage)</div><div> <span class="" style="white-space:pre">  </span>$(call Device/UbiFit)</div><div>@@ -103,6 +115,15 @@ define Device/AP148-legacy</div><div> <span class="" style="white-space:pre">      </span>BOARD_NAME := ap148</div><div> endef</div><div> </div><div>+define Device/C2600</div><div>+<span class="" style="white-space:pre">     </span>$(call Device/TpSafeImage)</div><div>+<span class="" style="white-space:pre">        </span>DEVICE_DTS := qcom-ipq8064-ap148</div><div>+<span class="" style="white-space:pre">  </span>BLOCKSIZE := 128KiB</div><div>+<span class="" style="white-space:pre">       </span>PAGESIZE := 2048</div><div>+<span class="" style="white-space:pre">  </span>BOARD_NAME := ap148</div><div>+<span class="" style="white-space:pre">       </span>TPLINK_BOARD_ID := C2600</div><div>+endef</div><div>+</div><div> define Device/DB149</div><div> <span class="" style="white-space:pre">        </span>$(call Device/FitImage)</div><div> <span class="" style="white-space:pre">  </span>DEVICE_DTS := qcom-ipq8064-db149</div><div>@@ -121,6 +142,6 @@ define Device/R7500</div><div> <span class="" style="white-space:pre">   </span>BOARD_NAME := r7500</div><div> endef</div><div> </div><div>-TARGET_DEVICES += AP148 AP148-legacy DB149 R7500</div><div>+TARGET_DEVICES += AP148 AP148-legacy C2600 DB149 R7500</div><div> </div><div> $(eval $(call BuildImage))</div><div>diff --git a/target/linux/ipq806x/profiles/<a href="http://tplink.mk">tplink.mk</a> b/target/linux/ipq806x/profiles/<a href="http://tplink.mk">tplink.mk</a></div><div>index e69de29..d3f5a6c 100644</div><div>--- a/target/linux/ipq806x/profiles/<a href="http://tplink.mk">tplink.mk</a></div><div>+++ b/target/linux/ipq806x/profiles/<a href="http://tplink.mk">tplink.mk</a></div><div>@@ -0,0 +1,20 @@</div><div>+#</div><div>+# Copyright (c) 2014 The Linux Foundation. All rights reserved.</div><div>+# Copyright (C) 2009 OpenWrt.org</div><div>+#</div><div>+# This is free software, licensed under the GNU General Public License v2.</div><div>+# See /LICENSE for more information.</div><div>+#</div><div>+</div><div>+define Profile/C2600</div><div>+<span class="" style="white-space:pre">      </span>NAME:=TP-Link Archer C2600</div><div>+<span class="" style="white-space:pre">        </span>PACKAGES:= \</div><div>+<span class="" style="white-space:pre">              </span>kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev \</div><div>+<span class="" style="white-space:pre">               </span>kmod-usb3 kmod-usb-dwc3-qcom kmod-usb-phy-qcom-dwc3 \</div><div>+<span class="" style="white-space:pre">             </span>kmod-ath10k ath10k-firmware-qca99x0 wpad-mini</div><div>+endef</div><div>+</div><div>+define Profile/C2600/Description</div><div>+<span class="" style="white-space:pre">        </span>Package set for the TP-Link Archer C2600.</div><div>+endef</div><div>+$(eval $(call Profile,C2600))</div><div><br></div></div>