openwrt-mirror/target/linux
INAGAKI Hiroshi ba723a3f6c ath79: add support for NEC Aterm WG600HP
NEC Aterm WG600HP is a 2.4/5 GHz band 11n (Wi-Fi 4) router, based on
AR9344.

Specification:

- SoC             : Atheros AR9344
- RAM             : DDR2 128 MiB (2x Hynix H5PS5162GFR-S6C)
- Flash           : SPI-NOR 8 MiB (Macronix MX25L6406EMI-12G)
- WLAN            : 2.4/5 GHz 2T2R
  - 2.4 GHz       : Atheros AR9344 (SoC)
  - 5 GHz         : Atheros AR9382
- Ethernet        : 5x 10/100/1000 Mbps
  - switch        : Atheros AR8327
- LEDs/Keys (GPIO): 10x/4x
  - note          : all LEDs are controlled by ath9k chip (AR9382)
- UART            : through-hole on PCB
  - assignment    : 3.3V, GND, NC, TX, RX from tri-angle marking
  - settings      : 9600n8
- USB             : 1x USB 2.0 Type-A
  - hub (internal): NEC uPD720114
- Power           : 12 VDC, 1.5 A (Max. 16 W)
- Stock OS        : NetBSD based

Flash instruction using initramfs-factory.bin image (StockFW WebUI):

1. Boot WG600HP with router mode normally
2. Access to the WebUI ("http://aterm.me/" or "http://192.168.0.1/") on
   the device and open firmware update page ("ファームウェア更新")
3. Select the OpenWrt initramfs-factory.bin image and click update
   ("更新") button
4. After updating, the device will be rebooted and booted with OpenWrt
   initramfs image
5. On the initramfs image, upload (or download) uboot.bin and
   sysupgrade.bin image to the device
6. Replace the bootloader with a uboot.bin image

   mtd write <uboot.bin image> bootloader

7. Perform sysupgrade with a sysupgrade.bin image

   sysupgrade <sysupgrade image>

8. Wait ~120 seconds to complete flashing

Flash instruction using initramfs-factory.bin image (bootloader CLI):

 1. Connect and open serial console
 2. Power on WG600HP and interrupt bootloader by ESC key
 3. Login to the bootloader CLI with a password "chiron"
 4. Start TFTP server by "tftpd" command
 5. Upload initramfs-factory.bin via tftp from your computer

   example (Windows): tftp -i 192.168.0.1 PUT initramfs-factory.bin

 6. Boot initramfs image by "boot" command
 7. On the initramfs image, back up the stock bootloader and firmware if
   needed
 8. Upload (or download) uboot.bin and sysupgrade.bin image to the device
 9. Replace the bootloader with a uboot.bin image
10. Perform sysupgrade with a sysupgrade.bin image
11. Wait ~120 seconds to complete flashing

Notes:

- All LEDs are connected to the GPIO controller on the ath9k chip
  (AR9382) and controlled by it. Those LEDs are probed after probing of
  ath9k chip, so they cannot be handled as status LEDs of OpenWrt while
  booting.

- A reset pin of the internal USB hub is connected to the GPIO
  controller of the ath9k chip, like LEDs above. That hub will be
  detected after probing of the ath9k chip.

- The stock bootloader requires an unknown filesystem on firmware area
  in the flash. Booting of OpenWrt from that filesystem cannot be
  handled, so the bootloader needs to be replaced to mainline U-Boot
  before OpenWrt installation.

MAC Addresses:

LAN    : A4:12:42:xx:xx:A0 (config,  0x6 (hex))
WAN    : A4:12:42:xx:xx:A1 (config,  0xc (hex))
2.4 GHz: A4:12:42:xx:xx:A2 (config,  0x0 (hex) / art, 0x1002 (hex))
5 GHz  : A4:12:42:xx:xx:A3 (config, 0x12 (hex) / art, 0x5002 (hex))

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15432
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-28 18:47:56 +02:00
..
airoha airoha: drop kernel 6.1 support 2024-06-05 09:34:06 +02:00
apm821xx apm821xx: drop 6.1 kernel support files 2024-06-17 12:58:41 +02:00
archs38 archs38: enable 6.6 testing kernel 2024-07-28 14:33:16 +02:00
armsr kernel: bump 6.1 to 6.1.97 2024-07-08 00:01:30 +02:00
at91 at91: 5.15: remove old config and patch files 2024-04-28 17:50:37 +02:00
ath79 ath79: add support for NEC Aterm WG600HP 2024-07-28 18:47:56 +02:00
bcm27xx kernel: bump 6.6 to 6.6.41 2024-07-19 16:53:24 +02:00
bcm47xx bcm47xx: drop 6.1 support 2024-07-04 19:32:50 +02:00
bcm53xx kernel: bump 6.1 to 6.1.95 2024-06-23 16:33:41 +02:00
bcm4908 bcm4908: set kernel 6.6 as a testing version 2024-04-27 12:14:00 +02:00
bmips kernel: bump 6.6 to 6.6.36 2024-07-04 22:07:10 +02:00
d1 d1: drop 6.1 support 2024-05-29 17:56:28 +02:00
gemini kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
generic generic: 6.6: backport fix uninitialized variable warnings 2024-07-28 14:33:16 +02:00
imx imx: 6.6: add upstream patches for imx8m{m,n,p} venice 2024-06-22 16:29:39 +02:00
ipq40xx ipq40xx: eth: Fix PHY access over ipqess driver 2024-07-28 16:12:51 +02:00
ipq806x ipq806x: 6.6: enable at803x driver 2024-06-27 17:11:40 +02:00
ixp4xx ixp4xx: Add back support for D-Link DSM G600 A 2024-05-25 09:17:19 +02:00
kirkwood treewide: gpio to gpios 2024-06-17 12:57:06 +02:00
lantiq lantiq: fix checkpatch warnings in etop driver 2024-07-21 14:07:26 +02:00
layerscape treewide: refresh patches 2024-06-24 09:46:19 +02:00
loongarch64 kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
malta malta: enable VM targets again 2024-06-30 22:00:03 +02:00
mediatek mediatek: add support for TP-Link TL-XTR8488 2024-07-25 22:54:16 +02:00
mpc85xx mpc85xx: fix label-mac-address for Enterasys WS-AP3710i 2024-06-16 14:02:19 +02:00
mvebu mvebu: rb5009: wire SFP led by default 2024-07-12 09:51:46 +02:00
mxs mxs: drop 6.1 support 2024-04-25 14:33:22 +02:00
octeon octeon: convert to new LED color/function format where possible 2024-02-07 14:48:41 +01:00
omap omap: re-enable target 2024-07-17 23:27:50 +02:00
pistachio pistachio: Fix setting mtd name 2024-07-01 00:46:16 +02:00
qoriq qoriq: use 6.1 by default and drop 5.15 2024-06-21 20:27:53 +02:00
qualcommax qualcommax: ipq807x: add Asus RT-AX89X BX revision 2024-07-09 12:33:17 +02:00
ramips ramips: eth: Fix PHY access over mtk_eth_soc driver 2024-07-28 16:12:51 +02:00
realtek realtek: Trap LLDP packets to the CPU 2024-05-10 16:03:51 +02:00
rockchip rockchip: add support for Radxa ROCK 3A 2024-07-25 22:50:28 +02:00
sifiveu sifiveu: drop 6.1 support 2024-04-30 11:02:48 +02:00
starfive kernel: bump 6.1 to 6.1.96 2024-07-04 22:02:47 +02:00
sunxi sunxi: add csi video support for nanopi-neo-air 2024-07-22 00:32:38 +02:00
tegra tegra: promote kernel 6.6 as default 2024-07-13 14:29:16 +02:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
zynq zynq: 5.15: remove files 2024-05-01 10:26:41 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00