diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2018-12-08 15:18:17 +0900 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2018-12-24 19:18:07 +0100 |
commit | c566439c9bf3cf2b4e5e5a059332c64199d97611 (patch) | |
tree | 88e55e4b1cbf4911e29df8e7ad31e341882d7aae /target/linux/ath79/base-files/etc | |
parent | 99df98442e1101607e3e6c902d5d957e72cea1d6 (diff) | |
download | upstream-c566439c9bf3cf2b4e5e5a059332c64199d97611.tar.gz upstream-c566439c9bf3cf2b4e5e5a059332c64199d97611.tar.bz2 upstream-c566439c9bf3cf2b4e5e5a059332c64199d97611.zip |
ath79: add support for NEC Aterm WG800HP
NEC Aterm WG800HP is a 2.4/5 GHz band 11ac router, based on Qualcomm
Atheros QCA9563.
Specification:
- Qualcomm Atheros QCA9563
- 64 MB of RAM (DDR2)
- 8 MB of Flash (SPI-NOR)
- 2.4/5 GHz wifi
- 2.4 GHz: 2T2R (SoC internal)
- 5 GHz: 1T1R (QCA9887)
- 4x 10/100/1000 Mbps Ethernet
- 8x LEDs, 3x keys (2x buttons, 1x slide-switch)
- UART through-hole on PCB (J2)
- Vcc, GND, NC, TX, RX from SoC side
- 115200n8
Flash instruction using factory image:
1. Connect the computer to the LAN port on WG800HP
2. Connect power cable to WG800HP and turn on it
3. Access to "http://192.168.10.1/" and open firmware update page
("ファームウェア更新")
4. Select the OpenWrt factory image and click update ("更新") button
5. Wait ~150 seconds to complete flashing
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/ath79/base-files/etc')
3 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 1d6cd4e774..35eff1c8f8 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -89,6 +89,10 @@ ath79_setup_interfaces() glinet,gl-x750) ucidef_set_interfaces_lan_wan "eth1" "eth0" ;; + nec,wg800hp) + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan" "3:lan" "4:lan" "1:wan" + ;; netgear,wndr3700|\ netgear,wndr3700v2|\ netgear,wndr3800) @@ -238,6 +242,10 @@ ath79_setup_macs() lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr) wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr) ;; + nec,wg800hp) + lan_mac=$(mtd_get_mac_text board_data 640) + wan_mac=$(mtd_get_mac_text board_data 1152) + ;; netgear,wndr3700|\ netgear,wndr3700v2|\ netgear,wndr3800) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index bf61ecf5dd..f6ff582150 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -111,6 +111,10 @@ case "$FIRMWARE" in ath9k_eeprom_extract "art" 4096 1088 ath9k_patch_fw_mac $(mtd_get_mac_ascii u-boot-env ethaddr) 2 ;; + nec,wg800hp) + ath9k_eeprom_extract "art" 4096 1088 + ath9k_patch_fw_mac $(mtd_get_mac_text board_data 1664) 2 + ;; *) ath9k_eeprom_die "board $board is not supported yet" ;; diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 9ecda22244..fbe70b8b5c 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -96,6 +96,10 @@ case "$FIRMWARE" in ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1) ;; + nec,wg800hp) + ath10kcal_extract "art" 20480 2116 + ath10kcal_patch_mac_crc $(mtd_get_mac_text board_data 2176) + ;; ocedo,koala) ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(mtd_get_mac_binary art 12) |