[OpenWrt-Devel] [PATCH] [ipq806x] Add initial support for TP-Link Archer C2600

Jonas Gorski jogo at openwrt.org
Sat Dec 5 09:08:40 EST 2015


Hi,

On Sat, Dec 5, 2015 at 5:13 AM, Josh Bendavid <Josh.Bendavid at cern.ch> wrote:
> 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

The TP-Link doesn't have a eSATA port, so please create its own dts file for it.


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



More information about the openwrt-devel mailing list