aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorChris Blake <chrisrblake93@gmail.com>2017-04-26 22:09:27 -0500
committerPiotr Dymacz <pepe2k@gmail.com>2017-05-15 22:58:59 +0200
commit10d11859dfbad0b4482d1a50b20ef91eeeeca2d7 (patch)
treeb51f9723c883450d618e8b9536365cfb94c596b2 /target/linux/ar71xx/base-files
parentcd9d0f9e97c912d45bbceb7868bcec51653de299 (diff)
downloadupstream-10d11859dfbad0b4482d1a50b20ef91eeeeca2d7.tar.gz
upstream-10d11859dfbad0b4482d1a50b20ef91eeeeca2d7.tar.bz2
upstream-10d11859dfbad0b4482d1a50b20ef91eeeeca2d7.zip
ar71xx: add support for Aerohive AP-121
This adds support for Aerohive AP-121 access point. Specification: - SoC: Atheros AR9344-BC2A at 560MHz - WiFi 1: 2.4GHz Atheros AR9340? - SoC - WiFi 2: 5.0GHz Atheros AR9382-AL1A - Memory: 128MB from 2x Nanya NT5TU32M16DG-AC - SPI: 1MB Macronix MX25L8006E - NAND: 128MB Hynix H27U1G8F2BTR-BC - Ethernet: Atheros AR8035-A - USB: 1x 2.0 - TPM: Atmel SC3204 Flashing: 1. Hook into UART (9600 baud) and enter U-Boot. You may need to enter a password of administrator or AhNf?d@ta06 if prompted. 2. Once in U-Boot, download and flash LEDE factory image over tftp: dhcp; setenv serverip tftp-server-ip; tftpboot 0x81000000 lede-ar71xx-nand-hiveap-121-squashfs-factory.bin; nand erase 0x800000 0x800000; nand write 0x81000000 0x800000 0x800000; reset; Signed-off-by: Chris Blake <chrisrblake93@gmail.com> [minor text changes in commit subject and description, fixed alphabetical order in etc/diag.sh, use only model name in lib/ar71xx.sh, fixed code style issues in mach-hiveap-121.c, ubinized factory image] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh2
4 files changed, 10 insertions, 3 deletions
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 2a6dfa55bf..2737129eb6 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -74,6 +74,7 @@ ar71xx_setup_interfaces()
eap300v2|\
eap7660d|\
el-mini|\
+ hiveap-121|\
loco-m-xw|\
mr12|\
mr16|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index cea95b7f4e..9cad8995db 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -196,6 +196,10 @@ get_status_led() {
esr900)
status_led="engenius:amber:power"
;;
+ hiveap-121|\
+ nbg6716)
+ status_led="$board:white:power"
+ ;;
hiwifi-hc6361)
status_led="hiwifi:blue:system"
;;
@@ -248,9 +252,6 @@ get_status_led() {
nbg460n_550n_550nh)
status_led="nbg460n:green:power"
;;
- nbg6716)
- status_led="$board:white:power"
- ;;
om2p|\
om2pv2|\
om2pv4|\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 5c3b1a7e1b..a751c64a3a 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -651,6 +651,9 @@ ar71xx_board_detect() {
*"GL-MIFI")
name="gl-mifi"
;;
+ *"HiveAP-121")
+ name="hiveap-121"
+ ;;
*"HiWiFi HC6361")
name="hiwifi-hc6361"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 8ebdea3018..e246f35add 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -519,6 +519,7 @@ platform_check_image() {
return $?
;;
c-60|\
+ hiveap-121|\
nbg6716|\
r6100|\
rambutan|\
@@ -662,6 +663,7 @@ platform_pre_upgrade() {
case "$board" in
c-60|\
+ hiveap-121|\
nbg6716|\
r6100|\
rambutan|\