openwrt/target/linux
INAGAKI Hiroshi cba40405f5 ath79: add support for NEC Aterm WG1800HP2
NEC Aterm WG1800HP2 is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based on
QCA9558.

Specification:

- SoC              : Qualcomm Atheros QCA9558
- RAM              : DDR2 128 MiB (2x Nanya NT5TU32M16DG-AC)
- Flash            : SPI-NOR 16 MiB (Macronix MX25L12845EMI-10G)
- WLAN             : 2.4/5 GHz
  - 2.4 GHz        : 3T3R (Qualcomm Atheros QCA9558 (SoC))
  - 5 GHz          : 3T3R (Qualcomm Atheros QCA9880)
- Ethernet         : 5x 10/100/1000 Mbps
  - switch         : Atheros AR8327
- LEDs/Keys (GPIO) : 12x/5x
- 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. 17 W)
- Stock OS         : NetBSD based

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

1. Boot WG1800HP2 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 WG1800HP2 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 TI TCA6416A (marking: PH416A) I2C
  Expander 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:44 (config, 0x6 (hex))
WAN    : A4:12:42:xx:xx:45 (config, 0xc (hex))
2.4 GHz: A4:12:42:xx:xx:46 (config, 0x0 (hex))
5 GHz  : A4:12:42:xx:xx:47 (config, 0x12 (hex))

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16297
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-19 17:56:46 +02:00
..
airoha airoha: drop kernel 6.1 support 2024-06-05 09:34:06 +02:00
apm821xx gemini: apm821xx: Ignore return value of e2fsck 2024-10-06 03:46:45 +02:00
archs38 kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
armsr packages: remove remnants of kernels below 6.6 2024-09-21 13:03:49 +02:00
at91 at91: drop 6.1 support 2024-09-20 18:42:56 +01:00
ath79 ath79: add support for NEC Aterm WG1800HP2 2024-10-19 17:56:46 +02:00
bcm27xx kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
bcm47xx generic: 6.6: add backported bmips CBR patches 2024-08-06 14:06:09 +02:00
bcm53xx kernel: bump 6.6 to 6.6.54 2024-10-05 12:43:51 +02:00
bcm4908 bcm4908: drop 6.1 support 2024-08-30 11:39:44 +02:00
bmips bmips: fix kernel panic caused by missing CBR address 2024-10-01 19:15:45 +02:00
d1 d1: drop 6.1 support 2024-05-29 17:56:28 +02:00
gemini kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
generic kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
imx kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
ipq40xx ipq40xx: switch to zImage kernel for SKSpruce WIA3300-20 2024-10-11 16:32:57 +02:00
ipq806x treewide: rename ZyXEL to Zyxel 2024-08-25 15:08:25 +02:00
ixp4xx ixp4xx: Add back support for D-Link DSM G600 A 2024-05-25 09:17:19 +02:00
kirkwood kirkwood: remove left-over files-6.1 folder 2024-09-20 18:57:33 +01:00
lantiq kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
layerscape layerscape: remove left-over config-6.1 files 2024-09-20 18:57:33 +01:00
loongarch64 kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
malta kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
mediatek mediatek: filogic: convert Acer Predator W6 to use NVMEM framework 2024-10-18 12:38:21 +01:00
mpc85xx mpc85xx: convert Watchguard T10 mac-assignment to NVMEM 2024-10-17 11:23:23 +02:00
mvebu kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
mxs mxs: drop 6.1 support 2024-04-25 14:33:22 +02:00
octeon octeon: set Linux 6.6 as the default kernel 2024-09-09 18:24:34 +02:00
omap omap: remove 6.1 support 2024-09-16 00:19:49 +02:00
pistachio pistachio: drop files for Linux 6.1 2024-09-20 18:57:33 +01:00
qoriq qoriq: add squashfs to FEATURES 2024-10-15 12:15:10 +03:00
qualcommax ipq807x: sax1v1k: fix sysupgrade not touching rootfs_data 2024-09-24 00:07:55 +02:00
ramips ramips: mt7621: add support for Gemtek WVRTM-127ACN and WVRTM-130ACN 2024-10-19 17:23:36 +02:00
realtek realtek: refresh patches 2024-10-17 19:31:38 +02:00
rockchip kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
sifiveu kernel: bump 6.6 to 6.6.55 2024-10-11 19:21:41 +02:00
siflower siflower: new target for Siflower SF19A2890 2024-09-17 22:16:41 +08:00
starfive kernel: bump 6.6 to 6.6.54 2024-10-05 12:43:51 +02:00
sunxi kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +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 x86: generic: config-6.6: refresh config 2024-10-03 16:51:03 +02:00
zynq zynq: drop 6.1 support 2024-08-03 11:36:59 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00