immortalwrt/target/linux
Davide Fioravanti 2d057df5ce ramips: add support for Wavlink WL-WN531A3
The Wavlink WL-WN531A3 is an AC1200 router with 5 fast ethernet ports
and one USB 2.0 port.
It's also known as Wavlink QUANTUM D4.

Hardware
--------
SoC:   Mediatek MT7628AN
RAM:   64MB
FLASH: 8MB NOR (GigaDevice GD25Q64CSIG3)
ETH:
  - 5x 10/100 Mbps Ethernet (4x LAN + 1x WAN)
WIFI:
  - 2.4GHz: 1x (integrated in SOC) (2x2:2)
  - 5GHz:   1x MT7612E (2x2:2)
  - 4 external antennas
BTN:
  - 1x Reset button
  - 1x WPS button
  - 1x Turbo button
  - 1x Touchlink button
  - 1x ON/OFF switch
LEDS:
  - 1x Red led (system status)
  - 1x Blue led (system status)
  - 7x Blue leds (wifi led + 5 ethernet ports + power)
USB:
  - 1x USB 2.0 port
UART:
  - 57600-8-N-1
    J1
      O VCC +3,3V (near lan ports)
      o RX
      o TX
      o GND

Everything works correctly.

Currently there is no firmware update available. Because of this, in
order to restore the OEM firmware, you must firstly dump the OEM
firmware from your router before you flash the OpenWrt image.

Backup the OEM Firmware
-----------------------
The following steps are to be intended for users having little to none
experience in linux. Obviously there are many ways to backup the OEM
firmware, but probably this is the easiest way for this router.
Procedure tested on M31A3.V4300.200420 firmware version.

1) Go to http://192.168.10.1/webcmd.shtml

2) Type the following line in the "Command" input box and then press enter:
	mkdir /etc_ro/lighttpd/www/dev; cp /dev/mtd0ro /etc_ro/lighttpd/www/dev/mtd0ro; ls -la /etc_ro/lighttpd/www/dev/mtd0ro

3) After few seconds in the textarea should appear this output:
	-rw-r--r--    1 0        0         8388608 /etc_ro/lighttpd/www/dev/mtd0ro

   If your output doesn't match mine, stop reading and ask for
   help in the forum.

4) Open in another tab http://192.168.10.1/dev/mtd0ro to download the
   content of the whole NOR. If the file size is 0 byte, stop reading
   and ask for help in the forum.

5) Come back to the http://192.168.10.1/webcmd.shtml webpage and type:
	rm /etc_ro/lighttpd/www/dev/mtd0ro; for i in 1 2 3 4 ; do cp /dev/mtd${i}ro /etc_ro/lighttpd/www/dev/mtd${i}ro; done; ls -la /etc_ro/lighttpd/www/dev/

6) After few seconds, in the textarea should appear this output:
	-rw-r--r--    1 0        0          196608 mtd1ro
	-rw-r--r--    1 0        0           65536 mtd2ro
	-rw-r--r--    1 0        0           65536 mtd3ro
	-rw-r--r--    1 0        0         8060928 mtd4ro
	drwxr-xr-x    7 0        0               0 ..
	drwxr-xr-x    2 0        0               0 .

   If your output doesn't match mine, stop reading and ask for
   help in the forum.

7) Open the following links to download the partitions of the OEM FW:
	http://192.168.10.1/dev/mtd1ro
	http://192.168.10.1/dev/mtd2ro
	http://192.168.10.1/dev/mtd3ro
	http://192.168.10.1/dev/mtd4ro

   If one (or more) of these files are 0 byte, stop reading and ask
   for help in the forum.

8) Store these downloaded files in a safe place.

9) Reboot your router to remove any temporary file in ram.

Installation
------------
Flash the initramfs image in the OEM firmware interface
(http://192.168.10.1/update.shtml).
When Openwrt boots, flash the sysupgrade image otherwise you won't be
able to keep configuration between reboots.

Restore OEM Firmware
--------------------
Flash the "mtd4ro" file you previously backed-up directly from LUCI.
Warning: Remember to not keep settings!
Warning2: Remember to force the flash.

Notes
-----
1) Router mac addresses:
   LAN		XX:XX:XX:XX:XX:9B (factory @ 0x28)
   WAN		XX:XX:XX:XX:XX:9C (factory @ 0x2e)
   WIFI 2G	XX:XX:XX:XX:XX:9D (factory @ 0x04)
   WIFI 5G	XX:XX:XX:XX:XX:9E (factory @ 0x8004)

   LABEL	XX:XX:XX:XX:XX:9D

2) There is just one wifi led for both wifi interfaces.
   It currently shows only the 2.4 GHz wifi activity.

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
2022-04-22 10:57:52 +08:00
..
apm821xx apm821xx: WNDAP6X0: add missed uci-default for compat 2022-04-07 11:33:15 +08:00
archs38 archs38: update kernel version to 5.10 2021-11-10 23:59:07 +08:00
armvirt kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
at91 at91: add support for sam9x60-ek board 2022-03-17 11:23:53 +08:00
ath25 ath25: disable build for ubnt2/5 2022-01-07 19:40:34 +08:00
ath79 Revert "ath79: append/prepad okli kernel support" 2022-04-18 03:45:49 +08:00
bcm27xx [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
bcm47xx bcm47xx: fix bgmac regression present in 5.10 kernel 2021-11-14 23:56:20 +08:00
bcm53xx kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
bcm63xx treewide: use uniform vendor value for british telecom 2022-04-16 23:38:32 +08:00
bcm4908 bcm4908: add uboot-envtools to default packages 2021-12-21 23:55:17 +08:00
bmips kernel: Deactivate B53 symbols in generic configuration 2021-12-03 00:03:50 +08:00
gemini kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
generic kernel: 5.10: silence bogus "Missing #address-cells in interrupt provider" warnings 2022-04-07 11:36:50 +08:00
imx [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
ipq40xx ipq40xx: add support for FRITZ!Box 7520 2022-04-01 11:09:27 +08:00
ipq806x ipq806x: fix wrong CPU OPP for ipq8062 2022-04-22 10:56:49 +08:00
ipq807x kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
kirkwood kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
lantiq treewide: use uniform vendor value for british telecom 2022-04-16 23:38:32 +08:00
layerscape [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
malta kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mediatek [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
mpc85xx kernel: bump 5.10 to 5.10.80 2021-12-08 23:59:43 +08:00
mvebu [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
mxs kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
octeon [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
octeontx octeontx: Refresh kernel configuration 2022-01-29 19:00:08 +08:00
omap [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
oxnas kernel: bump to 4.9.303, 4.14.268, 4.19.231 2022-02-25 05:03:08 +08:00
pistachio kernel: bump 5.4 to 5.4.156 2021-12-08 23:56:51 +08:00
qoriq qoriq: enable I2C in target kernel config 2022-03-25 10:37:24 +08:00
ramips ramips: add support for Wavlink WL-WN531A3 2022-04-22 10:57:52 +08:00
realtek kernel: bump 5.4 to 5.4.162 2021-12-20 11:16:52 +08:00
rockchip [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
sunxi sunxi: fix mac address for h6 devices 2022-04-08 11:28:31 +08:00
tegra [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
uml uml: make use of 'rootfs-part' feature 2022-02-14 18:29:30 +08:00
x86 x86/zen: drop broken target 2022-04-14 10:36:35 +08:00
zynq kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
Makefile