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

Specification:

- SoC		: MediaTek MT7621A
- RAM		: DDR3 128 MiB
- Flash		: raw NAND 128 MiB
- WLAN		: 2.4/5 GHz 2T2R
  - 2.4 GHz	: MediaTek MT7603E
  - 5 GHz	: MediaTek MT7613BE
- Ethernet	: 10/100/1000 Mbps x5
  - 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-DX1200GR 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, perform sysupgrade with the
   squashfs-sysupgrade image
5. Wait ~120 seconds to complete flashing

Notes:

- currently, mt7615e driver in mt76 doesn't fully support MT7613
  (MT7663) wifi chip
  - the eeprom data in flash is not used by mt7615e driver and the
    driver reports the tx-power up to 3dBm
  - the correct MAC address for MT7613BE in eeprom data cannot be
    assigned to the phy

- 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 ) : 0x434F4D43 ("COMC")
  - 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

MAC addresses:

LAN:	50:41:B9:xx:xx:08 (Ubootenv, ethaddr (text) / Factory, 0x1E000 (hex))
WAN:	50:41:B9:xx:xx:0A (Factory,  0x1E006 (hex))
2.4GHz:	50:41:B9:xx:xx:08 (Factory,  0x4     (hex))
5GHz:	50:41:B9:xx:xx:09 (Factory,  0x8004  (hex))

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
[add check whether dflag_offset is set]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-07 21:58:51 +01:00
..
apm821xx treewide: provide global default for SUPPORTED_DEVICES 2021-01-23 12:45:21 +01:00
arc770 arc770: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
archs38 config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-25 14:37:41 +01:00
armvirt armvirt: README: rename it from LEDE to OpenWrt 2020-12-14 21:38:10 +00:00
at91 treewide: provide global default for SUPPORTED_DEVICES 2021-01-23 12:45:21 +01:00
ath25 kernel: bump 5.4 to 5.4.86 2021-01-01 17:07:28 +01:00
ath79 ath79: wrap ucidef_add_switch in 02_network 2021-02-05 21:57:19 +01:00
bcm27xx kernel: bump 5.4 to 5.4.94 2021-02-01 19:10:43 +01:00
bcm47xx kernel: drop empty kmod-ledtrig-* packages 2021-01-15 18:24:31 +01:00
bcm53xx bcm53xx: use default SUPPORTED_DEVICES for Meraki MR32 2021-01-23 23:42:47 +01:00
bcm63xx bcm63xx: kernel: reenable the TRNG 2021-02-07 19:06:52 +01:00
bcm4908 bcm4908: sort and wrap build recipes 2021-01-27 21:31:20 +01:00
gemini treewide: provide global default for SUPPORTED_DEVICES 2021-01-23 12:45:21 +01:00
generic mac80211: convert UniFi Outdoor+ HSR support to OF 2021-02-01 00:47:36 +01:00
imx6 kernel: bump 5.4 to 5.4.95 2021-02-04 22:07:32 +01:00
ipq40xx ipq40xx: remove generic profile 2021-01-27 21:31:20 +01:00
ipq806x ipq806x: replace full-text BSC license by SPDX identifier 2021-02-05 18:28:30 +01:00
ipq807x config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-25 14:37:41 +01:00
kirkwood kirkwood: use 3 temperature sensors for Zyxel NSA310B 2021-02-05 22:21:08 +01:00
lantiq lantiq: change phy-mode to mii for FRITZ!Box 7412 2021-02-05 18:56:19 +01:00
layerscape kernel: bump 5.4 to 5.4.94 2021-02-01 19:10:43 +01:00
malta config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-25 14:37:41 +01:00
mediatek treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
mpc85xx mpc85xx: refresh kernel config 2021-02-06 17:13:33 +01:00
mvebu kernel: bump 5.4 to 5.4.94 2021-02-01 19:10:43 +01:00
mxs kernel: drop empty kmod-ledtrig-* packages 2021-01-15 18:24:31 +01:00
octeon kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
octeontx kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic 2020-10-09 23:20:19 +01:00
omap treewide: provide global default for SUPPORTED_DEVICES 2021-01-23 12:45:21 +01:00
oxnas config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-25 14:37:41 +01:00
pistachio kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ramips ramips: add support for I-O DATA WN-DX1200GR 2021-02-07 21:58:51 +01:00
realtek kernel: bump 5.4 to 5.4.93 2021-01-29 14:22:09 +01:00
rockchip rockchip: fix SUPPORTED_DEVICES for Radxa ROCK Pi 4 2021-01-27 21:31:20 +01:00
sunxi sunxi: add support for linksprite pcDuino3 nano board 2021-01-27 23:14:30 +01:00
tegra treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
uml kernel: bump 5.4 to 5.4.71 2020-10-15 17:46:54 +02:00
x86 config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-25 14:37:41 +01:00
zynq config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-25 14:37:41 +01:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00