immortalwrt/target/linux
INAGAKI Hiroshi ef8552eeb9 ramips: add support for I-O DATA WN-DX2033GR
I-O DATA WN-DX2033GR is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based on
MT7621A.

Specification:

- SoC		: MediaTek MT7621A
- RAM		: DDR3 128 MiB
- Flash		: Raw NAND 128 MiB (Macronix MX30LF1G18AC-TI)
- WLAN		: 2.4/5 GHz
  - 2.4 GHz	: 2T2R, MediaTek MT7603E
  - 5 GHz	: 4T4R, MediaTek MT7615
- Ethernet	: 5x 10/100/1000 Mbps
  - Switch	: MediaTek MT7530 (SoC)
- LEDs/Keys	: 2x/3x (2x buttons, 1x slide-switch)
- UART		: through-hole on PCB
  - J5: 3.3V, TX, RX, NC, GND from triangle mark
  - 57600n8
- Power		: 12 VDC, 1 A

Flash instruction using initramfs image:

1. Boot WN-DX2033GR normally
2. Access to "http://192.168.0.1/" and open firmware update page
   ("ファームウェア")
3. Select the OpenWrt initramfs image and click update ("更新") button
   to perform firmware update
4. On the initramfs image, download the sysupgrade.bin image to the
   device and perform sysupgrade with it
5. Wait ~120 seconds to complete flashing

Notes:

- The hardware of WN-DX2033GR and WN-AX2033GR are almost the same, and
  it is certified under the same radio-wave related regulations in Japan

- The last 0x80000 (512 KiB) in NAND flash is not used on stock firmware

- stock firmware requires "customized uImage header" (called as "combo
  image") by MSTC (MitraStar Technology Corp.), but U-Boot doesn't

  - uImage magic ( 0x0 - 0x3 ) : 0x434F4D42 ("COMB")
  - header crc32 ( 0x4 - 0x7 ) : with "data length" and "data crc32"
  - image name   (0x20 - 0x37) : model ID and firmware versions
  - data length  (0x38 - 0x3b) : kernel + rootfs
  - data crc32   (0x3c - 0x3f) : kernel + rootfs

- There are 2x important flags in the flash:

  - bootnum   : select os partition for booting (persist, 0x4)

    - 0x01: firmware
    - 0x02: firmware_2

  - debugflag : allow interrupt kernel loader, it's named as "Z-LOADER"
    (Factory, 0xFE75)

    - 0x00: disable debug
    - 0x01: enable debug

MAC addresses:

LAN     : 50:41:B9:xx:xx:90 (Factory, 0xE000 (hex) / Ubootenv, ethaddr (text))
WAN     : 50:41:B9:xx:xx:92 (Factory, 0xE006 (hex))
2.4 GHz : 50:41:B9:xx:xx:90 (Factory, 0x4    (hex))
5 GHz   : 50:41:B9:xx:xx:91 (Factory, 0x8004 (hex))

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2021-09-27 23:51:02 +08:00
..
apm821xx kernel: bump 5.4 to 5.4.145 2021-09-15 10:29:40 +08:00
arc770 arc770: drop target 2021-09-14 03:17:29 +08:00
archs38 kernel: Add missing kernel config options 2021-09-16 23:53:31 +08:00
armvirt kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
at91 kernel: move some drm symbols to generic config 2021-06-14 11:48:45 +08:00
ath25 Merge Mainline 2021-09-23 10:13:31 +08:00
ath79 kernel: bump 5.4 to 5.4.144 2021-09-15 10:29:29 +08:00
bcm27xx kernel: bump 5.4 to 5.4.145 2021-09-15 10:29:40 +08:00
bcm47xx Merge Mainline 2021-09-23 10:13:31 +08:00
bcm53xx bcm53xx: MR32: read mac-address from eeprom 2021-09-24 23:55:03 +08:00
bcm63xx bcm63xx: remove memcpy from mac assignment 2021-09-23 23:51:29 +08:00
bcm4908 Merge Mainline 2021-09-23 10:13:31 +08:00
bmips linux: update b53 upstream driver 2021-09-19 23:57:41 +08:00
gemini kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
generic kernel: add patch to fix an issue with kernel headers that broke perf 2021-09-26 23:58:42 +08:00
imx6 Merge Mainline 2021-09-23 10:13:31 +08:00
ipq40xx Merge Mainline 2021-09-23 10:13:31 +08:00
ipq806x Merge Mainline 2021-09-23 10:13:31 +08:00
ipq807x kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
kirkwood kirkwood: increase kernel size of Linksyses 2021-09-21 23:55:02 +08:00
lantiq kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
layerscape kernel: Add missing kernel config options 2021-09-16 23:53:31 +08:00
malta kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mediatek kernel: bump 5.4 to 5.4.144 2021-09-15 10:29:29 +08:00
mpc85xx kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mvebu Merge Mainline 2021-09-23 10:13:31 +08:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
octeon kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
octeontx octeontx: add linux 5.10 testing kernel support 2021-09-21 23:56:13 +08:00
omap kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
oxnas kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
pistachio kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
ramips ramips: add support for I-O DATA WN-DX2033GR 2021-09-27 23:51:02 +08:00
realtek realtek: add ZyXEL GS1900-24HPv2 support 2021-09-21 23:51:59 +08:00
rockchip rockchip: also apply fixes for pine64-bin 2021-09-25 10:10:09 +08:00
sunxi kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
tegra kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
x86 Merge Mainline 2021-09-11 05:29:44 +08:00
zynq Merge Mainline 2021-09-23 10:13:31 +08:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00