openwrt/target/linux
Georgi Vlaev 51b653de94 ramips: add support for Wavlink WL-WN531A6
This patch adds support for Wavlink WL-WN531A6 (Quantum D6).

Specifications:
--------------

* SoC: Mediatek MT7621AT 2C2T, 880MHz
* RAM: 128MB DDR3, Nanya NT5CB64M16GP-EK
* Flash: 16MB SPI NOR flash, GigaDevice GD25Q127CSIG
* WiFi 5GHz: Mediatek MT7615N (4x4:4) on mini PCIE slot.
* WiFi 2.4GHz: Mediatek MT7603EN (2x2:2) on mini PCIE slot.
* Ethernet: MT7630, 5x 1000Base-T
* LED: Power, WAN, LAN(x4), WiFi, WPS, dual color
       "WAVLINK" LED logo on the top cover.
* Buttons: Reset, WPS, "Turbo", touch button on the top
           cover via RH6015C touch sensor.
* UART: UART1: serial console (57600 8n1) on the J4 header
               located below the top heatsink.
        UART2: J12 header, located on the right side of
               the board.
* USB: One USB3 port.
* I2C: J9 header, located below the top heatsink.

Backup the OEM Firmware:
-----------------------

There isn't any firmware released for the WL-WN531A6 on
the Wavlink web site. Reverting back to the OEM firmware is
not possible unless we have a backup of the original OEM
firmware.

The OEM firmware is stored on /dev/mtd4 ("Kernel").

  1) Plug a FAT32 formatted USB flash drive into the USB port.
  2) Navigate to "Setup->USB Storage". Under the "Available
     Network folder" you can see part of the mount point of
     the newly mounted flash drive filesystem - e.g "sda1".
     The full mount point is prefixed with "/media", so in
     this case the mount point becomes "/media/sda1".
  3) Go to http://192.168.10.1/webcmd.shtml .
  4) Type the following line in the "Command" input box:

     dd if=/dev/mtd4ro of=/media/sda1/firmware.bin

  5) Click "Apply"
  6) After few seconds, in the text area should appear this
     output:

        30080+0 records in
      30080+0 records out

  7) Type "sync" in the "Command" input box and click "Apply".
  8) At this point the OEM firmware is stored on the flash
     drive as "firmware.bin". The size of the file is 15040 KB.

Installation:
------------

* Flashing instructions (OEM web interface):
The OEM web interface accepts only files with names containing
"WN531A6". It's also impossible to flash the *-sysupgrade.bin
image, so we have to flash the *-initramfs-kernel.bin first and
use the OpenWrt's upgrade interface to write the sysupgrade
image.

  1) Rename openwrt-ramips-mt7621-wavlink_wl-wn531a6-initramfs-kernel.bin
     to WN531A6.bin.
  2) Connect your computer to the one of the LAN ports of the
     router with an Ethernet cable and open http://192.168.10.1
  3) Browse to Setup -> Firmware Upgrade interface.
  4) Upload the (renamed) OpenWrt image - WN531A6.bin.
  5) Proceed with the firmware installation and give the device
     a few minutes to finish and reboot.
  6) After reboot wait for the "WAVLINK" logo on the top cover
     to turn solid blue, and open http://192.168.1.1
  7) Use the OpenWrt's "Flash Firmware" interface to write the
     OpenWrt sysupgrade image:
     openwrt-ramips-mt7621-wavlink_wl-wn531a6-squashfs-sysupgrade.bin

* Flashing instructions (u-boot TFTP):
  1) Configure a TFTP server on your computer and set its IP
     to 192.168.10.100
  2) Rename the OpenWrt sysupgrade image to firmware.bin and
     place it in the root folder of the TFTP server.
  3) Power off the device and connect an Ethernet cable from
     one of its LAN ports your computer.
  4) Press the "Reset" button (and keep it pressed)
  5) Power on the device.
  6) After a few seconds, when the connected port LAN LED stops
     blinking fast, release the "Reset" button.
  7) Flashing OpenWrt takes less than a minute, system will
     reboot automatically.
  8) After reboot the WAVLINK logo on the top cover will indicate
     the current OpenWrt running status (wait until the logo tunrs
     solid blue).

Revert to the OEM Firmware:
--------------------------
* U-boot TFTP:
  Follow "Flashing instructions (u-boot TFTP)" and use the
  "firmware.bin" backup image.

* OpenWrt "Flash Firmware" interface:
  Upload the "firmware.bin" backup image and select "Force update"
  before continuing.

Notes:
-----
* The MAC address shown on the label at the back of the device
is assigned to the 2.4G WiFi adapter.

  MAC addresses assigned by the OEM firmware:
  2.4G: *:XX (label): factory@0x0004
    5G: *:XX + 1    : factory@0x8004
   WAN: *:XX - 1    : factory@0xe006
   LAN: *:XX - 2    : factory@0xe000

* The I2C bus and UART2 are fully functional. The headers are
not populated.

Signed-off-by: Georgi Vlaev <georgi.vlaev@konsulko.com>
2020-08-28 00:25:33 +02:00
..
apm821xx treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
ar71xx ar71xx: fix ZyXEL NBG6616 wifi switch 2020-08-11 01:12:22 +02:00
arc770 kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
archs38 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
armvirt kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
at91 at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget 2020-08-27 16:36:18 +02:00
ath25 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
ath79 ath79: fix ethernet setup for some qca953x devices 2020-08-25 20:54:24 +02:00
bcm27xx kernel: bump 5.4 to 5.4.60 2020-08-24 17:33:58 +02:00
bcm47xx treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
bcm53xx treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
bcm63xx kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
cns3xxx treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
gemini gemini: Add swap partition to DNS-313 2020-07-31 18:34:40 +02:00
generic kernel: backport RTL8366RB patches 2020-08-24 18:53:59 +02:00
imx6 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
ipq40xx treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
ipq806x kernel: bump 5.4 to 5.4.60 2020-08-24 17:33:58 +02:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
kirkwood treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
lantiq lantiq: remove vmmc node from FritzBox 7412 dts 2020-08-20 23:45:39 +02:00
layerscape layerscape: add flashing manual for LS1012FRDM 2020-08-25 16:42:21 +02:00
malta kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
mediatek treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
mpc85xx treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
mvebu kernel: bump 5.4 to 5.4.60 2020-08-24 17:33:58 +02:00
mxs treewide: make dependency on kmod-usb-net selective 2020-08-10 12:54:30 +02:00
octeon octeon: add support for Itus Shield Router 2020-08-16 02:15:06 +02:00
octeontx kernel: bump 5.4 to 5.4.60 2020-08-24 17:33:58 +02:00
omap treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
oxnas treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
pistachio pistachio: Use kernel 5.4 by default 2020-08-27 00:34:46 +02:00
ramips ramips: add support for Wavlink WL-WN531A6 2020-08-28 00:25:33 +02:00
rb532 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
rockchip kernel: bump 5.4 to 5.4.58 2020-08-18 18:14:54 +02:00
samsung kernel: Update kernel 4.14 to version 4.14.187 2020-07-04 21:12:42 +02:00
sunxi treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
tegra treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
uml uml: update to linux 5.4 2020-08-22 07:02:01 +02:00
x86 kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
zynq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00