Re: [OpenWrt-Devel] [PATCH] ar71xx: Add support for PISEN TS-D084

2018-04-21 Thread Chuanhong Guo
Sorry I forgot to configure default LAN device. I'll send another patch later.

2018-04-21 12:12 GMT+08:00 Chuanhong Guo :
> PISEN TS-D084 is an wireless router with a battery and integrated power 
> supply based on Atheros AR9331.
>
> Specification:
>
> - 400/400/200 MHz (CPU/DDR/AHB)
> - 64 MB of RAM (DDR2)
> - 8 MB of FLASH (SPI NOR)
> - 1x 10/100 Mbps Ethernet
> - 1T1R 2.4 GHz (AR9331)
> - 1x USB 2.0
>
> Flash instruction:
> The manufacturer are using exactly the same firmware header as TP-LINK 
> TL-WR703N (including device ID!). Simply upload the factory firmware into 
> WebUI and flashing is done.
>
> Signed-off-by: Chuanhong Guo 
> ---
>  target/linux/ar71xx/base-files/etc/diag.sh |  1 +
>  target/linux/ar71xx/base-files/lib/ar71xx.sh   |  3 +
>  .../ar71xx/base-files/lib/upgrade/platform.sh  |  1 +
>  target/linux/ar71xx/config-4.9 |  1 +
>  .../ar71xx/files/arch/mips/ath79/Kconfig.openwrt   | 10 +++
>  target/linux/ar71xx/files/arch/mips/ath79/Makefile |  1 +
>  .../ar71xx/files/arch/mips/ath79/mach-ts-d084.c| 86 
> ++
>  .../linux/ar71xx/files/arch/mips/ath79/machtypes.h |  1 +
>  target/linux/ar71xx/generic/config-default |  1 +
>  target/linux/ar71xx/image/generic.mk   | 11 +++
>  10 files changed, 116 insertions(+)
>  create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-ts-d084.c
>
> diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
> b/target/linux/ar71xx/base-files/etc/diag.sh
> index 797c30f8a5..6a42335f2f 100644
> --- a/target/linux/ar71xx/base-files/etc/diag.sh
> +++ b/target/linux/ar71xx/base-files/etc/diag.sh
> @@ -208,6 +208,7 @@ get_status_led() {
> ;;
> e600g-v2|\
> oolite-v5.2-dev|\
> +   ts-d084|\
> wifi-pineapple-nano)
> status_led="$board:blue:system"
> ;;
> diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
> b/target/linux/ar71xx/base-files/lib/ar71xx.sh
> index 7249cb6151..73b6fa9859 100755
> --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
> +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
> @@ -1319,6 +1319,9 @@ ar71xx_board_detect() {
> *"TL-WR942N v1")
> name="tl-wr942n-v1"
> ;;
> +   *"TS-D084")
> +   name="ts-d084"
> +   ;;
> *"Tube2H")
> name="tube2h"
> ;;
> diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
> b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
> index 376984a14a..39a8e90bb7 100755
> --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
> +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
> @@ -483,6 +483,7 @@ platform_check_image() {
> tl-wr941nd|\
> tl-wr941nd-v5|\
> tl-wr941nd-v6|\
> +   ts-d084|\
> wifi-pineapple-nano)
> local magic_ver="0100"
>
> diff --git a/target/linux/ar71xx/config-4.9 b/target/linux/ar71xx/config-4.9
> index 5cea1b7bde..356c939c10 100644
> --- a/target/linux/ar71xx/config-4.9
> +++ b/target/linux/ar71xx/config-4.9
> @@ -232,6 +232,7 @@ CONFIG_ATH79=y
>  # CONFIG_ATH79_MACH_TL_WR941ND is not set
>  # CONFIG_ATH79_MACH_TL_WR941ND_V6 is not set
>  # CONFIG_ATH79_MACH_TL_WR942N_V1 is not set
> +# CONFIG_ATH79_MACH_TS_D084 is not set
>  # CONFIG_ATH79_MACH_TUBE2H is not set
>  # CONFIG_ATH79_MACH_UBNT is not set
>  # CONFIG_ATH79_MACH_UBNT_UNIFIAC is not set
> diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt 
> b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
> index 4a032f6021..d0a811b544 100644
> --- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
> +++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
> @@ -1997,6 +1997,16 @@ config ATH79_MACH_TL_WR2543N
> select ATH79_DEV_M25P80
> select ATH79_DEV_USB
>
> +config ATH79_MACH_TS_D084
> +   bool "PISEN TS-D084 support"
> +   select SOC_AR933X
> +   select ATH79_DEV_ETH
> +   select ATH79_DEV_GPIO_BUTTONS
> +   select ATH79_DEV_LEDS_GPIO
> +   select ATH79_DEV_M25P80
> +   select ATH79_DEV_USB
> +   select ATH79_DEV_WMAC
> +
>  config ATH79_MACH_TEW_632BRP
> bool "TRENDnet TEW-632BRP support"
> select SOC_AR913X
> diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Makefile 
> b/target/linux/ar71xx/files/arch/mips/ath79/Makefile
> index e606e2c3df..c603273e2e 100644
> --- a/target/linux/ar71xx/files/arch/mips/ath79/Makefile
> +++ b/target/linux/ar71xx/files/arch/mips/ath79/Makefile
> @@ -242,6 +242,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WR941ND) += 
> mach-tl-wr941nd.o
>  obj-$(CONFIG_ATH79_MACH_TL_WR941ND_V6) += mach-tl-wr941nd-v6.o
>  obj-$(CONFIG_ATH79_MACH_TL_WR940N_V4)  += mach-tl-wr940n-v4.o
>  obj-$(CONFIG_ATH79_MACH_TL_WR942N_V1)  += mach-tl-wr942n-v1.o
> +obj-$(CONFIG_ATH79_MACH_TS_D084)   += 

Re: [OpenWrt-Devel] [PATCH] x86: Add APU3 reference to x86 board.d

2018-04-21 Thread Kristian Evensen
Hi,

On Sat, Apr 21, 2018 at 2:58 AM, Philip Prindeville
 wrote:
> Looks okay to me.

Great!

> Are the cases stenciled with the port #’s?

No, there are no markings on the case.

-Kristian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel