Xiaomi WR30U

From TechInfoDepot
Jump to navigationJump to search
abgn+ac+ax (AX3000)
Xiaomi AX3000 Router
WikiDevi.wi-cat.ru Xiaomi WR30U
3rd Party Firmware
dd-wrt Status Unknown
OpenWrt Supported
Tomato any flavor Incompatible
Gargoyle Status Unknown
Platform
Brand • Model • Rev Xiaomi WR30U
Model Part Number MB05
FCC ID none specified
Type wireless router
CPU1 checkY MediaTek MT7981BA
CPU1 Type ARM Cortex-A53
CPU1 Speed 1.3 GHz ( 2 cores ) 64-bit
Flash1 Chip ESMT F50L1G41LB-104I
Flash1 Size 128 MiB 134,217,728 B <br />1,048,576 Kib <br />131,072 KiB <br />1,024 Mib <br />0.125 GiB <br /> (SPI NAND)
RAM1 Size 256 MiB 268,435,456 B <br />2,097,152 Kib <br />262,144 KiB <br />2,048 Mib <br />0.25 GiB <br /> (DDR3)
RAM1 Chip Nanya NT52B128M16JR-FL
ETH chip1 MediaTek MT7981BA
Switch MediaTek MT7531AE
Ethernet Port Count 1-1GbE-WAN
3-1GbE-LAN
Wired Standard IEEE 802.3i/3u/3ab

802dot11 OUI: none specified

Stock bootloader U-Boot
Stock FW OS Linux
Expansion IF types none specified
Power 12 VDC, 1 A
Connector type barrel

Flags:
Wi-Fi 6, 1024QAM, HE160, MU-MIMO, Mesh, NFC

Other
3rd Party Firmware Support OpenWrt • (List | Dev | DLs)
Retail
Country of manuf China
Radio 1
Chip1 MediaTek MT7981BA
Chip2 MediaTek MT7976CN
Wireless interface OUI none specified
Antenna Connector Type non-removable (fixed)
MIMO status 2x2:2
Wireless Standard IEEE 802.11b/g/n/ax
802.11ax up to 574 Mbps
802.11n up to 300 Mbps
802.11g up to 54 Mbps
802.11b up to 11 Mbps
WiFi Operating Frequency 2.4 GHz
Radio 2
Chip1 MediaTek MT7981BA
Chip2 MediaTek MT7976CN
Wireless interface OUI none specified
Antenna Connector Type non-removable (fixed)
MIMO status 2x2:2
Wireless Standard IEEE 802.11a/n/ac/ax
802.11ax up to 2402 Mbps
802.11ac up to 300 Mbps
802.11n up to 150 Mbps
802.11a up to 54 Mbps
WiFi Operating Frequency 5 GHz

For a list of all currently documented MediaTek chipsets with specifications, see MediaTek.

For a list of all currently documented Xiaomi devices with specifications, see Xiaomi.

• 574 Mbps - 2SS 2.4GHz 802.11ax (40MHz chan., 1024QAM),
• 2402 Mbps - 2SS 5GHz 802.11ax (160MHz chan., 1024QAM) = AX3000 class

Overview

Links of Interest

Flashing

Flashing OpenWrt

Target: mediatek
Subtarget: filogic
Package architecture: aarch64_cortex-a53
Supported Since Commit
Support started version: 23.05.0
Current supported version: 24.10.5
LAN Hardware: MediaTek MT7531
WLAN Hardware: MediaTek MT7981B, MediaTek MT7976CN
Installation method(s):
see git-commit
Install Comment:
https://github.com/openwrt/openwrt/pull/12770?utm_source=pocket_saves
Recovery Comment:
see git-commit

Flash instructions:

1. Get ssh access

  Check this link: https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000ne/153769/22

2. Backup import partitions

  ```
  dev:    size   erasesize  name
  mtd1: 00100000 00020000 "BL2"
  mtd2: 00040000 00020000 "Nvram"
  mtd3: 00040000 00020000 "Bdata"
  mtd4: 00200000 00020000 "Factory"
  mtd5: 00200000 00020000 "FIP"
  mtd8: 02200000 00020000 "ubi"
  mtd9: 02200000 00020000 "ubi1"
  mtd12: 00040000 00020000 "KF"
  ```
  Use these commands blow to backup your stock partitions.
  ```
  nanddump -f /tmp/BL2.bin /dev/mtd1
  nanddump -f /tmp/Nvram.bin /dev/mtd2
  nanddump -f /tmp/Bdata.bin /dev/mtd3
  nanddump -f /tmp/Factory.bin /dev/mtd4
  nanddump -f /tmp/FIP.bin /dev/mtd5
  nanddump -f /tmp/ubi.bin /dev/mtd8
  nanddump -f /tmp/KF.bin /dev/mtd12
  ```
  Then, transfer them to your computer via scp, netcat, tftp
  or others and keep them in a safe place.

3. Setup Nvram

  Get the current stock: `cat /proc/cmdline`
  If you find `firmware=0` or `mtd=ubi`, use these commands:
  ```
  nvram set boot_wait=on
  nvram set uart_en=1
  nvram set flag_boot_rootfs=1
  nvram set flag_last_success=1
  nvram set flag_boot_success=1
  nvram set flag_try_sys1_failed=0
  nvram set flag_try_sys2_failed=0
  nvram commit
  ```
  If you find `firmware=1` or `mtd=ubi1`, use these commands:
  ```
  nvram set boot_wait=on
  nvram set uart_en=1
  nvram set flag_boot_rootfs=0
  nvram set flag_last_success=0
  nvram set flag_boot_success=1
  nvram set flag_try_sys1_failed=0
  nvram set flag_try_sys2_failed=0
  nvram commit
  ```

4. Flash stock-initramfs-factory.ubi

  If you find `firmware=0` or `mtd=ubi`:
  `ubiformat /dev/mtd9 -y -f /tmp/stock-initramfs-factory.ubi`
  If you find `firmware=1` or `mtd=ubi1`:
  `ubiformat /dev/mtd8 -y -f /tmp/stock-initramfs-factory.ubi`
  Then reboot your router, it should boot to the openwrt
  initramfs system now.

5. Setup uboot-env

  Now it will be setup automatically in upgrade process,
  you can skip this step.
  If your `fw_setenv` did not work, you need run this command:
  `echo "/dev/mtd1 0x0 0x10000 0x20000" > /etc/fw_env.config`
  Then setup uboot-env:
  ```
  fw_setenv boot_wait on
  fw_setenv uart_en 1
  fw_setenv flag_boot_rootfs 0
  fw_setenv flag_last_success 1
  fw_setenv flag_boot_success 1
  fw_setenv flag_try_sys1_failed 8
  fw_setenv flag_try_sys2_failed 8
  fw_setenv mtdparts "nmbm0:1024k(bl2),256k(Nvram),256k(Bdata),
  2048k(factory),2048k(fip),256k(crash),256k(crash_log),
  34816k(ubi),34816k(ubi1),32768k(overlay),12288k(data),256k(KF)"
  ```

6. Flash stock-squashfs-sysupgrade.bin

  Use shell command:
  `sysupgrade -n /tmp/stock-squashfs-sysupgrade.bin`
  Or go to luci web.

If you need to change to Openwrt U-Boot layout, do next. If you do not need, please ignore it.

Change to OpenWrt U-Boot:

1. Flash ubootmod-initramfs-factory.ubi

  Check mtd partitions: `cat /proc/mtd`
  ```
  mtd7: 00040000 00020000 "KF"
  mtd8: 02200000 00020000 "ubi_kernel"
  mtd9: 04e00000 00020000 "ubi"
  ```
  Run following command:
  `ubiformat /dev/mtd8 -y -f /tmp/ubootmod-initramfs-factory.ubi`
  Then reboot your router, it should boot to the openwrt initramfs
  system now.

2. Check mtd again

  ```
  mtd7: 00040000 00020000 "KF"
  mtd8: 07000000 00020000 "ubi"
  ```
  Make sure mtd8 is ubi.

3. Install kmod-mtd-rw

  Run command: `opkg update && opkg install kmod-mtd-rw`
  Or get it in openwrt server, or build it yourself, then install
  it manually
  Then run this command:
  `insmod /lib/modules/$(uname -r)/mtd-rw.ko i_want_a_brick=1`

4. Clean up pstore

  Run Command: `rm -f /sys/fs/pstore/*`

5. Format ubi and create new ubootenv volume

  ```
  ubidetach -p /dev/mtd8; ubiformat /dev/mtd8 -y; ubiattach -p /dev/mtd8
  ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB
  ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB
  ```

6. (Optional) Add recovery boot feature.

  ```
  ubimkvol /dev/ubi0 -n 2 -N recovery -s 10MiB
  ubiupdatevol /dev/ubi0_2 /tmp/ubootmod-initramfs-recovery.itb
  ```

7. Flash Openwrt U-Boot

  ```
  mtd write /tmp/ubootmod-preloader.bin BL2
  mtd write /tmp/ubootmod-bl31-uboot.fip FIP
  ```

6. Flash ubootmod-squashfs-sysupgrade.itb

  Use shell command:
  `sysupgrade -n /tmp/ubootmod-squashfs-sysupgrade.itb`
  Or go to luci web.

Now everything is done, Enjoy!

Go Back to stock from Openwrt U-Boot:

1. Force flash ubootmod-initramfs-recovery.itb

  Use shell command:
  `sysupgrade -F -n /tmp/ubootmod-initramfs-recovery.itb`
  Or go to luci web.
  Then it should boot to the openwrt initramfs system now.

2. Format ubi and Nvram

  ```
  ubidetach -p /dev/mtd8; ubiformat /dev/mtd8 -y; ubiattach -p /dev/mtd8
  mtd erase Nvram
  ```

3. Install kmod-mtd-rw

  Run command: `opkg update && opkg install kmod-mtd-rw`
  Or get it in openwrt server, or build it yourself, then install
  it manually
  Then run this command:
  `insmod /lib/modules/$(uname -r)/mtd-rw.ko i_want_a_brick=1`

4. Flash stock U-Boot and ubi

  ```
  mtd write /tmp/BL2.bin BL2
  mtd write /tmp/FIP.bin FIP
  mtd write /tmp/ubi.bin ubi
  ```
  Then reboot your router, waiting it finished rollback in minutes.

Go Back to stock from stock layout Openwrt:

  Just run command: `ubiformat /dev/mtd8 -y -f /tmp/ubi.bin`
  Then reboot your router, waiting it finished rollback in minutes.

Notes:

1. Openwrt U-Boot and ubootmod openwrt did not enable NMBM.

  Please make your backup safe.

See also

Models

Xiaomi • List of Xiaomi Wireless Devices
Xiaomi Router AX3000T (CN) • (RD03) (DVB4382CN)
Xiaomi Router AX3000T (INT) • (RD23) (EU, Global)
  • Xiaomi Mesh System AX3000 NE (RD28) • (WR30U/M/T)
  • Xiaomi Whole-Room Router AX3000 (RD01)
Xiaomi Whole-Home Router AX3000 (RD02) • Qualcomm IPQ5018
CPU/WLAN: Qualcomm IPQ5018/QCN6102/QCN9024
WAN/LAN: Qualcomm QCA8081/EcoNet EN8850DHE