[LEDE-DEV] [PATCH] ar71xx: add support for GL.iNet GL-AR750
From: Luochongjun <1464691...@qq.com> This patch adds supports for the GL.iNet GL-AR750 Specifiation: - SoC: QCA9531 at 650 MHz - Flash: 16 MiB (W25Q128FVSG) - RAM: 128 MiB DDR - Ethernet: 1 x WAN (100 Mbps) and 2 x LAN (100 Mbps) - USB: 1 x USB 2.0 port - Button: 1 x switch button, 1 x reset button - LED: 3 x LEDS - UART: 1 x UART on PCB (JP1: GND, RX, TX, 3.3V) Installation through Luci: - The original firmware is LEDE, 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 red LED blink to bright. - Install sysupgrade image using web interface on 192.168.1.1. Signed-off-by: chongjun Luo <1464691...@qq.com> --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 4 + .../linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 +- .../etc/hotplug.d/firmware/11-ath10k-caldata | 4 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.4 | 1 + .../ar71xx/files/arch/mips/ath79/Kconfig.openwrt | 10 ++ target/linux/ar71xx/files/arch/mips/ath79/Makefile | 1 + .../ar71xx/files/arch/mips/ath79/mach-gl-ar750.c | 187 + .../linux/ar71xx/files/arch/mips/ath79/machtypes.h | 1 + target/linux/ar71xx/image/generic.mk | 10 ++ 12 files changed, 225 insertions(+), 1 deletion(-) mode change 100644 => 100755 target/linux/ar71xx/base-files/etc/diag.sh mode change 100644 => 100755 target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata mode change 100644 => 100755 target/linux/ar71xx/config-4.4 mode change 100644 => 100755 target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt mode change 100644 => 100755 target/linux/ar71xx/files/arch/mips/ath79/Makefile create mode 100755 target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar750.c mode change 100644 => 100755 target/linux/ar71xx/files/arch/mips/ath79/machtypes.h mode change 100644 => 100755 target/linux/ar71xx/image/generic.mk 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 e5baa90..c948902 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -391,6 +391,10 @@ dlan-pro-1200-ac) gl-ar300m) ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt" ;; +gl-ar750) + ucidef_set_led_wlan "wlan-2g" "WLAN-2G" "gl-ar750:wlan-2g" "phy1tpt" + ucidef_set_led_wlan "wlan-5g" "WLAN-5G" "gl-ar750:wlan-5g" "phy0tpt" + ;; gl-mifi) ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt" ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0" 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 7cf4212..01887f2 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -145,6 +145,7 @@ ar71xx_setup_interfaces() dr344|\ gl-ar150|\ gl-ar300m|\ + gl-ar750|\ gl-domino|\ gl-inet|\ gl-mifi|\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh old mode 100644 new mode 100755 index 6cbb357..6e5341d --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -75,7 +75,7 @@ get_status_led() { ap90q|\ cpe830|\ cpe870|\ - gl-ar300m|\ + gl-ar300m|\ gl-inet|\ gl-mifi) status_led="$board:green:lan" @@ -521,6 +521,7 @@ set_state() { done) status_led_on case $(board_name) in + gl-ar750|\ gl-ar300m) fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0 ;; 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 old mode 100644 new mode 100755 index 6a0a59f..d0e7b76 --- 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 @@ -81,6 +81,10 @@ case "$FIRMWARE" in ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(mtd_get_mac_binary art 18) ;; + gl-ar750) +
[LEDE-DEV] [PATCH] ar71xx: add support for GL.iNet GL-AR750
From: Luochongjun <1464691...@qq.com> This patch adds supports for the GL.iNet GL-AR750 Specifiation: - SoC: QCA9531 at 650 MHz - Flash: 16 MiB (W25Q128FVSG) - RAM: 128 MiB DDR - Ethernet: 1 x WAN (100 Mbps) and 2 x LAN (100 Mbps) - USB: 1 x USB 2.0 port - Button: 1 x switch button, 1 x reset button - LED: 3 x LEDS - UART: 1 x UART on PCB (JP1: GND, RX, TX, 3.3V) Installation through Luci: - The original firmware is LEDE, 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 red LED blink to bright. - Install sysupgrade image using web interface on 192.168.1.1. Signed-off-by: chongjun Luo <1464691...@qq.com> --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 4 + .../linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 +- .../etc/hotplug.d/firmware/11-ath10k-caldata | 4 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.4 | 1 + .../ar71xx/files/arch/mips/ath79/Kconfig.openwrt | 10 ++ target/linux/ar71xx/files/arch/mips/ath79/Makefile | 1 + .../ar71xx/files/arch/mips/ath79/mach-gl-ar750.c | 187 + .../linux/ar71xx/files/arch/mips/ath79/machtypes.h | 1 + target/linux/ar71xx/image/generic.mk | 10 ++ 12 files changed, 225 insertions(+), 1 deletion(-) mode change 100644 => 100755 target/linux/ar71xx/base-files/etc/diag.sh mode change 100644 => 100755 target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata mode change 100644 => 100755 target/linux/ar71xx/config-4.4 mode change 100644 => 100755 target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt mode change 100644 => 100755 target/linux/ar71xx/files/arch/mips/ath79/Makefile create mode 100755 target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar750.c mode change 100644 => 100755 target/linux/ar71xx/files/arch/mips/ath79/machtypes.h mode change 100644 => 100755 target/linux/ar71xx/image/generic.mk 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 e5baa90..c948902 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -391,6 +391,10 @@ dlan-pro-1200-ac) gl-ar300m) ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt" ;; +gl-ar750) + ucidef_set_led_wlan "wlan-2g" "WLAN-2G" "gl-ar750:wlan-2g" "phy1tpt" + ucidef_set_led_wlan "wlan-5g" "WLAN-5G" "gl-ar750:wlan-5g" "phy0tpt" + ;; gl-mifi) ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt" ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0" 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 7cf4212..01887f2 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -145,6 +145,7 @@ ar71xx_setup_interfaces() dr344|\ gl-ar150|\ gl-ar300m|\ + gl-ar750|\ gl-domino|\ gl-inet|\ gl-mifi|\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh old mode 100644 new mode 100755 index 6cbb357..6e5341d --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -75,7 +75,7 @@ get_status_led() { ap90q|\ cpe830|\ cpe870|\ - gl-ar300m|\ + gl-ar300m|\ gl-inet|\ gl-mifi) status_led="$board:green:lan" @@ -521,6 +521,7 @@ set_state() { done) status_led_on case $(board_name) in + gl-ar750|\ gl-ar300m) fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0 ;; 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 old mode 100644 new mode 100755 index 6a0a59f..d0e7b76 --- 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 @@ -81,6 +81,10 @@ case "$FIRMWARE" in ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(mtd_get_mac_binary art 18) ;; + gl-ar750) +