From patchwork Sat Apr 13 04:21:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "guilin.wang" X-Patchwork-Id: 1085035 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gl-inet.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SG867G50"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="d5QQ6ExA"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44h1nj0l9tz9s0W for ; Sat, 13 Apr 2019 14:22:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1M0/0MAz+CDAcdkmC5GneE2++a53Sl0iwZmiWRs5Gr4=; b=SG867G506pEVhv IKKm2RQOQ6xKmeHHIeFthzBRYiEmLCTMdLJuk5tChBwR4FLHa1SLwxLJIdDHz9gCZz6KNsSklvLV+ NmT8wUC+yVXPxlOovLpmwoNMeZBdcu23TiNvaeSQEzAPGZ0Xl0jxGYgAmzG389LLwlgFnQ9EIk4YW QdrcSOL5mcURR+GeDvxoVnLqmQaAIOh55QK/mdfcasWGDKYA5+sbCteYjKxh4RlXuml0IUmrJWPV2 Cv/pnfqG0BNJCeeHtiV5Wi+q7CSIs9FlqYCy8FE+szM4qvo+gxRbTGPGNHz0s8UigwOa5od3U2BPE STt6s5hVXfpKX9gAwHuQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFAB1-0000NU-WC; Sat, 13 Apr 2019 04:22:04 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFAAz-0000NH-IX for openwrt-devel@bombadil.infradead.org; Sat, 13 Apr 2019 04:22:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EqL6H3HuBFdGJB6pa6HLRFCshfXf/DuZEOam6hbnVk0=; b=d5QQ6ExAXwhHh+eRtb1pkbxJJ JXTeyzK8BOjnTXRjH0XJd5rdDaybjsFNuWJg4TH8ystEZSjPYqw7Wzi7DqNI9UypU1N/zzP/1xSUW k1BYokZlL/tVABThVDCgkO2JnLifYHfLEyAGD6Q+LJIboKWp9Zk6MM0fBkPeCpDV+Ptq1LB8TbRzz QesoMaGzf7Ggl3+hpq2XTbVgviTarAriJFw8wJEwwvKyodczixe++TrH+HWf6vJIDIH3VCC7ymzwh MXXMRLJgPQ9MmYc+Uww0fv0lekV74sJNoCuIuEaBp34Y+SkWhN7IORX1cLpYYNaRFVyHAqgDdAcVO l4xRkJswg==; Received: from smtpbgsg2.qq.com ([54.254.200.128]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFAAq-0005kZ-7j for openwrt-devel@lists.openwrt.org; Sat, 13 Apr 2019 04:21:59 +0000 X-QQ-mid: bizesmtp16t1555129278tnbgc70j Received: from localhost.localdomain (unknown [113.116.56.116]) by esmtp4.qq.com (ESMTP) with id ; Sat, 13 Apr 2019 12:21:12 +0800 (CST) X-QQ-SSF: 01400000002000E0CF80B00A0000000 X-QQ-FEAT: 6plONw56toLSqOjJuVjescjdFX0MlrmaNuS6NNIiM5lTKL4gsZJNYz6q7zxR2 o8S3godjC8tquqOSHz4bIlEZmyIwWWsXW13H8cumYmD8OyEinvQ2zKfURyVQFATKvMjvGrm irg1SLPp9WtC4Xc7iKKwiek6R5NYS4VK8ppmYe7hGRJKzLV8wuVbwcn0RWHcWTBchZpejnU viOKzNvpDYmhvWDigJCY4+2BXF810cBwcFSJqW0m95bvoCBmBSVm0B8lHg2NQlL7bTYGAqb LQ+z0Wf04OrEVTCdN7dgUJ5L/VsthgUm2113hWOqsPmlam X-QQ-GoodBg: 2 From: wellnw To: openwrt-devel@lists.openwrt.org Date: Sat, 13 Apr 2019 12:21:02 +0800 Message-Id: <1555129262-40607-1-git-send-email-guilin.wang@gl-inet.com> X-Mailer: git-send-email 2.7.4 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:gl-inet.com:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190413_052152_979393_CB9884A7 X-CRM114-Status: GOOD ( 20.18 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on casper.infradead.org summary: Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [54.254.200.128 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [PATCH] ar71xx: add support for GL.iNet GL-X1200 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wellnw MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This patch adds supports for GL-X1200. Specification: - SOC: QCA9563 (775MHz) - Flash: 16 MiB (W25Q128FVSG) - RAM: 128 MiB DDR2 - Ethernet: 4x 1Gbps LAN + 1x 1Gbps WAN - Wireless: QCA9563(2.4GHz) and QCA9886(5GHz) - SIM: 2x SIM card slots - MicroSD: 1x microSD slot - Antenna: 2x external 5dBi antennas - USB: 1x USB 2.0 port - Button: 1x reset button - LED: 16x LEDs (3x GPIO controllable) - UART: 1x UART on PCB (JP1: 3.3V, RX, TX, GND) Installation through Luci: - The original firmware is openwrt, so both LuCI or sysupgrade can be used. - Do not keep settings, for sysupgrade please use the -n option. Installation through bootloader webserver: - Plug power and hold reset button until 2.4G LED light up. - Install sysupgrade image using web interface on 192.168.1.1. Signed-off-by: guilin wang --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 4 + .../linux/ar71xx/base-files/etc/board.d/02_network | 4 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 5 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.14 | 1 + .../ar71xx/files/arch/mips/ath79/Kconfig.openwrt | 11 ++ target/linux/ar71xx/files/arch/mips/ath79/Makefile | 1 + .../ar71xx/files/arch/mips/ath79/mach-gl-x1200.c | 157 +++++++++++++++++++++ .../linux/ar71xx/files/arch/mips/ath79/machtypes.h | 1 + target/linux/ar71xx/generic/config-default | 1 + target/linux/ar71xx/image/generic.mk | 13 ++ 12 files changed, 202 insertions(+) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x1200.c diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 41dd8c5..eb455ce 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -448,6 +448,10 @@ gl-inet) ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1" ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt" ;; +gl-x1200) + ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt" + ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt" + ;; hiwifi-hc6361) ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1" ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 68874e0..6fd4c25 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -456,6 +456,10 @@ ar71xx_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "2:lan:2" "3:lan:1" "1:wan" ;; + gl-x1200) + ucidef_add_switch "switch0" \ + "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" + ;; jwap230) ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2" ucidef_add_switch "switch0" \ diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 2ded261..fd6f213 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -187,6 +187,11 @@ case "$FIRMWARE" in cf-e385ac) ath10kcal_extract "art" 20480 12064 ;; + gl-x1200) + ath10kcal_extract "art" 20480 12064 + ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \ + /lib/firmware/ath10k/QCA9888/hw2.0/board.bin + ;; esac ;; *) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 990683a..42902d0 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -794,6 +794,9 @@ ar71xx_board_detect() { *"GL-USB150") name="gl-usb150" ;; + *"GL-X1200") + name="gl-x1200" + ;; *"HiveAP-121") name="hiveap-121" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 8173501..55be0a3 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -273,6 +273,7 @@ platform_check_image() { gl-domino|\ gl-mifi|\ gl-usb150|\ + gl-x1200|\ hiwifi-hc6361|\ hornet-ub-x2|\ jwap230|\ diff --git a/target/linux/ar71xx/config-4.14 b/target/linux/ar71xx/config-4.14 index 9a524fa..8f8d8ce 100644 --- a/target/linux/ar71xx/config-4.14 +++ b/target/linux/ar71xx/config-4.14 @@ -130,6 +130,7 @@ CONFIG_ATH79=y # CONFIG_ATH79_MACH_GL_INET is not set # CONFIG_ATH79_MACH_GL_MIFI is not set # CONFIG_ATH79_MACH_GL_USB150 is not set +# CONFIG_ATH79_MACH_GL_X1200 is not set # CONFIG_ATH79_MACH_GS_MINIBOX_V32 is not set # CONFIG_ATH79_MACH_GS_OOLITE_V1 is not set # CONFIG_ATH79_MACH_GS_OOLITE_V5_2 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 6fd78c4..c42fa16 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt +++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt @@ -897,6 +897,17 @@ config ATH79_MACH_GL_USB150 select ATH79_DEV_M25P80 select ATH79_DEV_WMAC +config ATH79_MACH_GL_X1200 + bool "GL.iNet GL-X1200 support" + select SOC_QCA956X + select ATH79_DEV_AP9X_PCI if PCI + 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_EAP120 bool "TP-LINK EAP120 support" select SOC_AR934X diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Makefile b/target/linux/ar71xx/files/arch/mips/ath79/Makefile index 0265b3d..9816175 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/Makefile +++ b/target/linux/ar71xx/files/arch/mips/ath79/Makefile @@ -140,6 +140,7 @@ obj-$(CONFIG_ATH79_MACH_GL_DOMINO) += mach-gl-domino.o obj-$(CONFIG_ATH79_MACH_GL_INET) += mach-gl-inet.o obj-$(CONFIG_ATH79_MACH_GL_MIFI) += mach-gl-mifi.o obj-$(CONFIG_ATH79_MACH_GL_USB150) += mach-gl-usb150.o +obj-$(CONFIG_ATH79_MACH_GL_X1200) += mach-gl-x1200.o obj-$(CONFIG_ATH79_MACH_GS_MINIBOX_V32) += mach-gs-minibox-v32.o obj-$(CONFIG_ATH79_MACH_GS_OOLITE_V1) += mach-gs-oolite-v1.o obj-$(CONFIG_ATH79_MACH_GS_OOLITE_V5_2) += mach-gs-oolite-v5-2.o diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x1200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x1200.c new file mode 100644 index 0000000..873a608 --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-x1200.c @@ -0,0 +1,157 @@ +/* + * GL.iNet GL-X1200 board support + * + * Copyright (C) 2018 guilin wang + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include + +#include "common.h" +#include "dev-ap9x-pci.h" +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-spi.h" +#include "dev-m25p80.h" +#include "dev-wmac.h" +#include "dev-usb.h" +#include "machtypes.h" +#include "pci.h" + +#define GL_X1200_KEYS_POLL_INTERVAL 20 +#define GL_X1200_KEYS_DEBOUNCE_INTERVAL (3 * GL_X1200_KEYS_POLL_INTERVAL) + +#define GL_X1200_GPIO_EXT_WDT 16 +#define GL_X1200_GPIO_LED_WLAN2G 19 +#define GL_X1200_GPIO_LED_WLAN5G 20 +#define GL_X1200_GPIO_LED_POWER 8 +#define GL_X1200_GPIO_USB_POWER 7 + +#define GL_X1200_GPIO_BTN_RESET 2 + +#define GL_X1200_MAC0_OFFSET 0x0000 +#define GL_X1200_WMAC_CALDATA_OFFSET 0x1000 +#define GL_X1200_PCI_CALDATA_OFFSET 0x5000 + +static void __init gl_x1200_ext_watchdog_setup(int gpio_wdt) +{ + int state = 0; + int i = 0; + if (gpio_wdt) { + gpio_request_one(gpio_wdt, GPIOF_OUT_INIT_HIGH, + "gl-x1200:watchdog"); + //disable watchdog + for(i = 0; i < 20; i++) { + state = !state; + gpio_set_value(gpio_wdt, state); + msleep(10); + } + } +} + +static struct gpio_led gl_x1200_leds_gpio[] __initdata = { + { + .name = "gl-x1200:green:power", + .gpio = GL_X1200_GPIO_LED_POWER, + .default_state = LEDS_GPIO_DEFSTATE_KEEP, + .active_low = 1, + },{ + .name = "gl-x1200:green:usbpower", + .gpio = GL_X1200_GPIO_USB_POWER, + .active_low = 1, + },{ + .name = "gl-x1200:green:wlan2g", + .gpio = GL_X1200_GPIO_LED_WLAN2G, + .active_low = 1, + },{ + .name = "gl-x1200:green:wlan5g", + .gpio = GL_X1200_GPIO_LED_WLAN5G, + .active_low = 0, + } +}; + +static struct gpio_keys_button gl_x1200_gpio_keys[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = GL_X1200_KEYS_DEBOUNCE_INTERVAL, + .gpio = GL_X1200_GPIO_BTN_RESET, + .active_low = 1, + }, +}; + +static struct ar8327_pad_cfg gl_x1200_ar8327_pad0_cfg = { + .mode = AR8327_PAD_MAC_SGMII, + .sgmii_delay_en = true, +}; + +static struct ar8327_platform_data gl_x1200_ar8327_data = { + .pad0_cfg = &gl_x1200_ar8327_pad0_cfg, + .port0_cfg = { + .force_link = 1, + .speed = AR8327_PORT_SPEED_1000, + .duplex = 1, + .txpause = 1, + .rxpause = 1, + }, +}; + + +static struct mdio_board_info gl_x1200_mdio0_info[] = { + { + .bus_id = "ag71xx-mdio.0", + .mdio_addr = 0, + .platform_data = &gl_x1200_ar8327_data, + }, +}; + +static void __init gl_x1200_setup(void) +{ + u8 *eeprom = (u8 *) KSEG1ADDR(0x1f050000); + + ath79_register_m25p80(NULL); + + ath79_init_mac(ath79_eth0_data.mac_addr, + eeprom + GL_X1200_MAC0_OFFSET, 0); + + ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII; + ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev; + ath79_eth0_data.phy_mask = BIT(0); + + mdiobus_register_board_info(gl_x1200_mdio0_info, + ARRAY_SIZE(gl_x1200_mdio0_info)); + ath79_register_mdio(0, 0x00); + ath79_register_eth(0); + ath79_register_usb(); + + ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE); + + ath79_register_wmac(eeprom + GL_X1200_WMAC_CALDATA_OFFSET, NULL); + ap91_pci_init(eeprom + GL_X1200_PCI_CALDATA_OFFSET, NULL); + + ath79_register_leds_gpio(-1, ARRAY_SIZE(gl_x1200_leds_gpio), + gl_x1200_leds_gpio); + + ath79_register_gpio_keys_polled(-1, GL_X1200_KEYS_POLL_INTERVAL, + ARRAY_SIZE(gl_x1200_gpio_keys), + gl_x1200_gpio_keys); + gl_x1200_ext_watchdog_setup(GL_X1200_GPIO_EXT_WDT); +} + +MIPS_MACHINE(ATH79_MACH_GL_X1200, "GL-X1200", "GL-X1200", + gl_x1200_setup); diff --git a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h index 9722744..f5c3e3d 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h +++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h @@ -138,6 +138,7 @@ enum ath79_mach_type { ATH79_MACH_GL_INET, /* GL-CONNECT GL-INET */ ATH79_MACH_GL_MIFI, /* GL-MIFI support */ ATH79_MACH_GL_USB150, /* GL.iNet GL-USB150 */ + ATH79_MACH_GL_X1200, /* GL.iNet GL-X1200 */ ATH79_MACH_GS_MINIBOX_V1, /* GainStrong MiniBox V1.0 */ ATH79_MACH_GS_MINIBOX_V32, /* Gainstrong MiniBox V3.2 */ ATH79_MACH_GS_OOLITE_V1, /* GainStrong Oolite V1.0 */ diff --git a/target/linux/ar71xx/generic/config-default b/target/linux/ar71xx/generic/config-default index 25b58ae..de7586f 100644 --- a/target/linux/ar71xx/generic/config-default +++ b/target/linux/ar71xx/generic/config-default @@ -99,6 +99,7 @@ CONFIG_ATH79_MACH_GL_DOMINO=y CONFIG_ATH79_MACH_GL_INET=y CONFIG_ATH79_MACH_GL_MIFI=y CONFIG_ATH79_MACH_GL_USB150=y +CONFIG_ATH79_MACH_GL_X1200=y CONFIG_ATH79_MACH_GS_MINIBOX_V32=y CONFIG_ATH79_MACH_GS_OOLITE_V1=y CONFIG_ATH79_MACH_GS_OOLITE_V5_2=y diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index 30a8b34..2018333 100644 --- a/target/linux/ar71xx/image/generic.mk +++ b/target/linux/ar71xx/image/generic.mk @@ -543,6 +543,19 @@ define Device/gl-usb150 endef TARGET_DEVICES += gl-usb150 +define Device/gl-x1200 + DEVICE_TITLE := GL.iNet GL-X1200 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \ + kmod-ath10k ath10k-firmware-qca9888 + BOARDNAME := GL-X1200 + SUPPORTED_DEVICES := gl-x1200 + IMAGE_SIZE := 16000k + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware) + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \ + append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) +endef +TARGET_DEVICES += gl-x1200 + define Device/lan-turtle $(Device/tplink-16mlzma) DEVICE_TITLE := Hak5 LAN Turtle