Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
inbox:toh:xiaomi:ax3000t [2023/12/11 17:36] – Created from the form at meta:create_new_device_page dimfishrinbox:toh:xiaomi:ax3000t [2024/12/13 04:37] – [LEDs] nachum37
Line 1: Line 1:
 ====== Xiaomi AX3000T ====== ====== Xiaomi AX3000T ======
-~~NOTOC~~ 
  
-/This template is intended to be used via https://openwrt.org/meta/create_new_device_page . */+<WRAP center round important 70%> 
 +**Warning!** Don't brick your router!
  
-{{page>meta:infobox:construction&noheader&nofooter&noeditbtn}}+AX3000T routers come with either ''Winbond'' or ''ESMT'' or ''Foresee'' NAND flash chip. Devices with the ''Winbond'' or ''Foresee'' NAND chip are supported **only** by [[:releases:snapshot|Snapshot]] version, while the ''ESMT'' NAND chip is supported by both the official stable OpenWrt [[:releases:23.05:notes-23.05.5|23.05.5]] image and Snapshot. **Don´t try to flash router without checking your chip!**: [[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/1424?u=alexq|details]]. 
  
-//Write a short, relevant description of the device. Include a technical overview, but avoid marketing buzzwords/useless stuff. Two to four sentences is about right. A picture is good, too. Edit the page to see how to add pictures.//+</WRAP>
  
-/*****/ +<WRAP center round important 70%> 
-/* How to add images ========> https://openwrt.org/meta/adding_images_to_openwrt_wiki */ +New AX3000T devices with stock firmware version 1.0.84 or newer have received updated hardware ([[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/1176|AN8855 switch]]) that is temporarily incompatible with the OpenWrt image until support is added ([[https://github.com/openwrt/openwrt/pull/16709|PR]]). There is no possibility to install OpenWrt on RD03 for such devices, see [[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/1424?u=alexq|link]].
-/*****/+
  
-{{ media:example:genericrouter1.png?200|Generic Router}}+</WRAP>
  
 +The Xiaomi AX3000T router supports 2 802.11ax streams on both 2.4GHz @40MHz and 5GHz @160MHz for a combined 3000Mbps wireless speed. It is based on the MediaTek MT7981 SoC.
  
-===== OpenWrt support =====+There are two versions of the Xiaomi AX3000T router: 
 +  * model **RD03**: Chinese version 
 +  * model **RD23**: International (Global) version. 
 +Both versions have exactly the same hardware, and the only difference is the version of the stock firmware (which is region-locked).
  
-<color red>**Not supported.**</color>+{{media:xiaomi:xiaomi_ax3000t.jpg|AX3000T}}
  
 +**Support Forums** https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490
  
-/*** if info availableuncomment and fill in +There are 2 known OpenWrt installation methods for the Xiaomi AX3000T: 
-===== Supporting activities ===== +  * **API RCE method**: the method involves executing shell commands on the stock router firmware to enable SSH access by exploiting the API RCE, either in ''xqsystem/start_binding'' or ''misystem/arn_switch'', depending on the firmware version. This method is suitable for both **RD23** (International version) and **RD03** (Chinese version) of the Xiaomi AX3000T router. For details, please refer to the [[:inbox:toh:xiaomi:ax3000t#installation|Installation]] section below.  
-//Describe if there are any ongoing activities that might lead to OpenWrt support.//+  * **UART flash method**: the method which requires opening the device, connecting a UART cable, and following a specific set of steps. This process is recommended only for advanced users and may soft brick your device. The instructions for this process are available in this post: [[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/420?u=alexq|link to owrt forum]].
  
-  * OpenWrt forum thread: (add link+OpenWrt Support Status: 
-***/+^ Stock Firmware ver.             ^Model  ^ API to exploit     ^ OpenWrt Supported     ^ Stock Firmware URL  ^ 
 +| 1.0.31 (INT)         | RD23 | ''xqsystem/start_binding''              |   YES            | -               | 
 +| 1.0.49 (INT)         | RD23 | ''xqsystem/start_binding''              |   YES*             | [[https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rd23/miwifi_rd23_firmware_153e1_1.0.49_INT.bin|miwifi_rd23_firmware_153e1_1.0.49_INT.bin]] | 
 +| 1.0.47 (CN         | RD03 | ''misystem/arn_switch''         YES*              | [[https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rd03/miwifi_rd03_firmware_ef0ee_1.0.47.bin|miwifi_rd03_firmware_ef0ee_1.0.47.bin]] |  
 +| 1.0.64 (CN)          | RD03 | ''xqsystem/start_binding''                      |   YES            | [[https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rd03/miwifi_rd03_firmware_14680_1.0.64.bin|miwifi_rd03_firmware_14680_1.0.64.bin]]  |  
 +| 1.0.84 (CN)          | RD03 | ''xqsystem/start_binding''              |   **Not yet** (''AN8855'' hardware) | [[https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rd03/miwifi_rd03_firmware_f85f9_1.0.84.bin|miwifi_rd03_firmware_f85f9_1.0.84.bin]]| 
  
 +  * *note: devices with the ''Winbond'' or ''Foresee'' NAND chip are supported by [[:releases:snapshot|Snapshot]] version only.
  
-/*** if info available: uncomment and fill in 
-===== Experimental firmware ===== 
  
-//List experimental firmware download links here.//+===== Supported Versions =====
  
-//None at this time.//+<!-- ToH: { 
 +  "source": "json", 
 +  "dom": "t", 
 +  "paging": false, 
 +  "rotate": true, 
 +  "shownColumns": ["brand", "model", "version", "supportedcurrentrel", "oemdevicehomepageurl", "forumsearch", "deviceid"], 
 +  "filterColumns": {"brand": "^Xiaomi$", "model": "^AX3000T$"
 +} -->
  
-  * External image (add link) 
-  * trunk image (add link) 
-  * ... 
-***/ 
  
 +===== Hardware Highlights =====
 +<!-- ToH: {
 +  "source": "json",
 +  "dom": "t",
 +  "paging": false,
 +  "rotate": true,
 +  "shownColumns": ["model", "version", "cpu", "cpumhz", "cpucores", "flashmb", "rammb", "wlanhardware", "wlan24ghz", "wlan50ghz", "ethernet100mports", "ethernet1gports", "modem", "usbports"],
 +  "filterColumns": {"brand": "^Xiaomi$", "model": "^AX3000T$"}
 +} -->
  
-===== Hardware highlights ===== 
-^ CPU                        ^ Ram      ^ Flash   ^ Network     ^ WLAN   ^ USB      ^ Serial   ^ JTag   ^ 
-| EXAMPLE RT3052 @ 384 MHz    64 MiB  |  8 MiB  |  4x 10/100  |  bgn    1x 2.0  |   Yes    |   ?    | 
  
 +===== Installation=====
  
-/*** if info available: uncomment and fill in +==== Flash instructions ==== 
-===== Installation ===== +<WRAP center round info 70%> 
-  - → [[:downloads|Obtain firmware]] +Besides the manual steps outlined below, there is the [[https://github.com/openwrt-xiaomi/xmir-patcher|XMiR-Patcher]] tool that can automate the entire process, making the first-time router flashing much simpler with just a few clicksAs always, know what you're doing when executing scripts from the internet! 
-  → [[docs:guide-user:installation:generic.flashing|Install OpenWrt]] +</WRAP>
-  - → [[:downloads|Latest OpenWrt release]]+
  
-==== Installing OpenWrt ==== +1. Get ssh access.  
-***/+  #!/bin/sh 
 +   
 +  if [ $# -ne 2 ]; then 
 +  cat <<EOF 
 +  Usage: $0 [misystem | xqsystem] [stok] 
 +  e.g. $0 xqsystem e6ea114ba2cddb0c70fbbc417bb2706c 
 +  Copy the stok-string from a browser's URL-line, while logged to the router 
 +  EOF 
 +  exit 1 
 +  fi 
 +   
 +  [ -z "$2" ] && echo "error: bad stok" && exit 1 
 +   
 +  url="http://192.168.31.1/cgi-bin/luci/;stok=${2}/api" 
 +   
 +  case "$1" in 
 +      misystem) 
 +          url="$url/misystem/arn_switch" 
 +          pre="open=1&model=1&level=
 +          suf="" 
 +          ;; 
 +      xqsystem) 
 +          url="$url/xqsystem/start_binding" 
 +          pre="uid=1234&key=1234'" 
 +          suf="'" 
 +          ;; 
 +      *
 +          echo "error: unknown api" && exit 1 
 +          ;; 
 +  esac 
 +   
 +  curl -X POST "$url" -d "${pre}%0Anvram%20set%20ssh_en%3D1%0A${suf}" 
 +  sleep 1 
 +  curl -X POST "$url" -d "${pre}%0Anvram%20commit%0A${suf}" 
 +  sleep 1 
 +  curl -X POST "$url" -d "${pre}%0Ased%20-i%20's%2Fchannel%3D.*%2Fchannel%3D%22debug%22%2Fg'%20%2Fetc%2Finit.d%2Fdropbear%0A${suf}" 
 +  sleep 1 
 +  curl -X POST "$url" -d "${pre}%0A%2Fetc%2Finit.d%2Fdropbear%20start%0A${suf}" 
 +  sleep 1 
 +  curl -X POST "$url" -d "${pre}%0Apasswd%20-d%20root%0A${suf}"
  
 +2. Backup stock partitions
 +
 +  ssh -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -v root@192.168.31.1
 +  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 in a safe place.
 +
 +To copy you can run netcat on your computer:
 +
 +  $ netcat -l 1234 | tar xvf -
 +
 +And send the data from the router:
 +
 +  root@XiaoQiang:~# cd /tmp/
 +  root@XiaoQiang:~# tar cf - *.bin | nc 192.168.31.<computer-IP> 1234
 +
 +
 +3. Get firmware information: ''cat /proc/cmdline''
 +
 +4. Copy openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-factory.ubi to **/tmp** and flash
 +
 +  * If **firmware=0**
 +
 +  ubiformat /dev/mtd9 -y -f /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-factory.ubi
 +  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
 +  reboot
 +
 +  * If **firmware=1**
 +
 +  ubiformat /dev/mtd8 -y -f /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-factory.ubi
 +  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
 +  reboot
 +
 +{{ :media:xiaomi:ax3000t_ports.png|AX300T WAN/LAN Ports}} 
 +Once the router is rebooted, it should boot to the OpenWrt initramfs system now. To be sure to use one of OpenWrt's LAN ports (not WAN port), plug the ethernet cable into one of the middle ports, if the cable is not already plugged there (original FW dynamically assigns LAN/WAN). 
 +Note that you should configure the computer's network to use DHCP. You can use wireshark if things don't work.
 +
 +This command will connect you to the OpenWrt system:
 +
 +  ssh root@192.168.1.1
 +
 +
 +5. Copy openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin to **/tmp** and flash:
 +  sysupgrade -n /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin
 +
 +
 +==== Change to OpenWrt U-Boot ====
 +<WRAP info> Default available router space is **60Mb**. It's possible to increase this size by replacing stock bootloader with the OpenWrt U-Boot bootloader. Please [[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/721|understand]] the benefits and risks involved. 
 +OpenWrt U-Boot provides faster boot loading and more space: **75Mb** (with recovery) or **85Mb** (without recovery).
 +</WRAP>
 +
 +1. Flash openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-factory.ubi
 +  ubiformat /dev/mtd8 -y -f /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-factory.ubi
 +
 +  reboot
 +
 +2. Install kmod-mtd-rw
 +  opkg update && opkg install kmod-mtd-rw
 +
 +  insmod mtd-rw i_want_a_brick=1
 +
 +3. 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
 +
 +4. *(Optional **-10Mb** free space) Add recovery boot feature.*
 +  ubimkvol /dev/ubi0 -n 2 -N recovery -s 10MiB
 +  ubiupdatevol /dev/ubi0_2 /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-recovery.itb
 +
 +5. Flash Openwrt U-Boot
 +  mtd write /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-preloader.bin BL2
 +  mtd write /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-bl31-uboot.fip FIP
 +
 +6. Flash openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-squashfs-sysupgrade.itb
 +  sysupgrade -n /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-squashfs-sysupgrade.itb
 +
 +====  Go Back to stock from Openwrt U-Boot ==== 
 +
 +1. Force flash openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-recovery.itb
 +  sysupgrade -F -n /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-recovery.itb
 +
 +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
 +  opkg update && opkg install kmod-mtd-rw
 +
 +  insmod mtd-rw i_want_a_brick=1
 +
 +4. Flash stock images from backup
 +  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 firmware from stock bootloader ==== 
 +  ubiformat /dev/mtd8 -y -f /tmp/ubi.bin
 +
 +Then reboot your router, waiting it finished rollback in minutes.
 +
 +==== OEM installation using the TFTP method ====
 +
 +->  [[docs:guide-user:installation:generic.flashing.tftp]]
 +
 +=== Specific values needed for tftp ===
 +
 +<WRAP BOX>
 +
 +FIXME Enter values for "FILL-IN" below
 +
 +^ Bootloader tftp server IPv4 address  | FILL-IN   |
 +^ Bootloader MAC address (special)     | FILL-IN   |
 +^ Firmware tftp image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"tftp"//) |
 +^ TFTP transfer window                 | FILL-IN seconds                                |
 +^ TFTP window start                    | approximately FILL-IN seconds after power on   |
 +^ TFTP client required IP address      | FILL-IN                                        |
 +
 +</WRAP>
 +
 +===== Upgrading OpenWrt =====
 +->  [[docs:guide-user:installation:generic.sysupgrade]]
 +
 +
 +==== LuCI Web Upgrade Process ====
 +
 +  * Browse to ''<nowiki>http://192.168.1.1/cgi-bin/luci/admin/system/flash</nowiki>'' LuCI Upgrade URL
 +  * Upload image file for sysupgrade to LuCI
 +  * Wait for reboot
 +
 +==== Terminal Upgrade Process ====
 +
 +If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line.
 +There are two command line methods for upgrading:
 +
 +  * ''sysupgrade''
 +  * ''mtd''
 +
 +Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.
 +
 +=== sysupgrade ===
 +
 +  * Login as root via SSH on 192.168.1.1, then enter the following commands:
 +
 +<code>
 +cd /tmp
 +wget https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin
 +sysupgrade /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin
 +</code>
 +
 +=== mtd ===
 +
 +If ''sysupgrade'' does not support this router, use ''mtd''.
 +
 +  * Login as root via SSH on 192.168.1.1, then enter the following commands:
 +
 +<code>
 +cd /tmp
 +wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
 +mtd write /tmp/xxx.abc linux && reboot
 +</code>
 +
 +===== Downgrading stock firmware =====
 +This section is kept only for historical reference, as it relates to the deprecated OpenWrt installation method that was applicable only to the RD03 (Chinese version) with stock firmware version 1.0.47. Please note that none of the current installation methods require a firmware downgrade to flash OpenWrt.
 +
 +**To downgrade** a firmware version on your router, navigate to the upload firmware page and select the appropriate software version. It will complain about the downgrade. Edit the url and change the <html>0</html> at the end to a <html>1</html> and press enter. Or change to <html>2</html> if there is already <html>1</html> (seen on v1.0.64). The downgrade will proceed.
  
-/*** if info available: uncomment and fill in 
 ===== Debricking ===== ===== Debricking =====
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
-***/ 
  
 +Assume that you have installed OpenWrt with stock bootloader, with original u-boot:
 +
 +  * Connect to router via UART
 +  * Select //Load Image// in the u-boot
 +  * Set start address to 0x48000000, then set TFTP parameters to load the [[https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-kernel.bin|initramfs-kernel.bin]].
 +  * Start the loaded kernel, then perform sysupgrade on OpenWrt.
 +
 +If you have installed OpenWrt with u-boot mode layout, you can still use above UART recovery procedure, but u-boot will also look for a file called ''openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-recovery.itb'' in a tftp server at IP address 192.168.1.254
 +
 +If you provide that file in a tftp server, it'll be automatically loaded and run, so system can be recovered without using a UART connection.
 +
 +
 +
 +==== Recover bricked bootloader ====
 +
 +If your bootloader is bricked you can use the Mediateks ability to load a bootloader directly over UART with a tool called mtk_uartboot.
 +
 +Details explained in [[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/860|this forum post]]
 +
 +==== TFTP instructions for the stock bootloader ====
 +AX3000T can be recovered from a soft-brick with TFTP. The flow is:
 +  * The router boots and asks for an IP address on the LAN ports via DHCP
 +  * The TFTP server assigns an IP address to the router
 +  * The router then connects to the TFTP server (where your DHCP server listen, e.g.: 192.168.31.100) and tries to download a file named with the IP address given by the DHCP server converted to hexadecimal.
 +
 +Because of this quirk we will have to configure the tftp server to assign only one IP and we will set the file name to the only IP address it can receive.
 +
 +For Windows you can use [[https://bitbucket.org/phjounin/tftpd64/downloads/tftpd64.464.zip|tftpd64]] and on Linux you can use dnsmasq.
 +These are the steps to do it for Linux (this can be adapted to the tftpd64's graphical interface very easily):
 +
 +  * Create a folder somewhere to place your firmware for the tftp server and download the OEM firmware (the file name is a very important part; depending on the previously installed Xiaomi firmware version, you may need to adjust the name of the .img file to a different one. The router will be looking for a specific file name on the tftp server – if the requested file in the terminal does not match the one you have in the tmp folder, rename it accordingly and proceed again):<code>mkdir -p /tmp/tftp
 +wget https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rd03/miwifi_rd03_firmware_ef0ee_1.0.47.bin -O /tmp/tftp/C0A81F02.img</code>
 +  * To ensure that the TFTP server has access to the firmware, set the privileges:<code>sudo chmod -R 755 /tmp/tftp
 +sudo chown -R nobody:nogroup /tmp/tftp</code>
  
-/*** if info availableuncomment and fill in+  * Obtain the name of the ethernet adapter (to be used in further steps):<code>ip link</code> 
 +  The result will loke something like (in this case, the name of the ethernet adapter is enp2s0):<code>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 
 +    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
 +2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 
 +    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff 
 +3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000 
 +    link/ether yy:yy:yy:yy:yy:yy brd ff:ff:ff:ff:ff:ff</code> 
 +  Set a static address on your PC to serve the firmware from: <code>sudo ip address flush dev <adapter name> 
 +sudo ip address add 192.168.31.100/24 dev <adapter name></code> 
 +  Run the server with the following command:<code>sudo dnsmasq --no-daemon --listen-address=192.168.31.100 --bind-interfaces --dhcp-range=192.168.31.2,192.168.31.254 --enable-tftp --tftp-root=/tmp/tftp --log-dhcp --log-facility=-</code> 
 +  * Unplug the power, press and hold the reset button, plug the power back while still holding the button.<WRAP info> 
 +  * Hold the reset button until the router's LED starts flashing orange.  
 +  * then it goes solid orange again, release the button. 
 +  * If in the terminal, you see that the router requests a different firmware file (different name), rename the .img file in the tmp folder accordingly and repeat the procedures from the IP flush again. 
 +  </WRAP> 
 +  * When the device finished loading the firmware, the led starts flashing with orange (amber) light. Wait for until blue led to goes solid! <WRAP info> 
 +  * It might take some time for the led to go solid blue 
 +  * If the recovery doesn't accept the downloaded file the led switches to solid white - if this is the case, restart the recovery process with other file 
 +  * If the led is blinking blue led it means the device was flashed successfully and can be restarted 
 +  </WRAP> 
 +  * Put your interface back to DHCP mode and start again with breaking your device
 ===== Failsafe mode ===== ===== Failsafe mode =====
 -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]] -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]]
-***/ 
  
- 
-/*** if info available: uncomment and fill in 
 ===== Basic configuration ===== ===== Basic configuration =====
-After flashing, proceed with [[docs:guide-user:base-system:start|Basic configuration]]Set up your Internet connection, configure wireless, configure USB port, etc. +-> [[docs:guide-user:base-system:start|Basic configuration]] After flashing, proceed with this.\\ 
-***/+Set up your Internet connection, configure wireless, configure network settings, etc.
  
 +  * note: configuration reset issue after 6 reboots sometimes occurs on the AX3000T and is [[https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/452?u=alexq|caused]] by the stock Xiaomi bootloader logic. To address this, run the command to modify the /etc/rc.local file with nvram settings:
  
-/*** if info available: uncomment and fill in +  sed -i '/exit 0/i sleep 5\nfw_setenv flag_try_sys1_failed 0' /etc/rc.local
-===== Specific configuration =====+
  
-<WRAP BOX 600px> +**Don't run** this command if the issue doesn't affect you, and your router keeps its settings after 6 reboots!  
-FIXME Please fill in real values for this devicethen remove the EXAMPLEs and the WRAP that encloses this text.+ 
 +===== Specific Configuration =====
  
 ==== Network interfaces ==== ==== Network interfaces ====
 The default network configuration is: The default network configuration is:
-^ Interface Name   ^ Description                  ^ Default configuration    +^ Interface Name ^ Description        ^ Default configuration ^ 
-| br-lan           EXAMPLE LAN & WiFi           EXAMPLE 192.168.1.1/24   +| br-lan         | LAN & WiFi         | 192.168.1.1/24        
-vlan0 (eth0.0  EXAMPLE LAN ports (to 4)   EXAMPLE None             +lanX (eth0)    | LAN ports (to 4) | None                  
-vlan1 (eth0.1  EXAMPLE WAN port             EXAMPLE DHCP             +wan (eth0)     | WAN port           | DHCP                  
-wl0              EXAMPLE WiFi                 EXAMPLE Disabled         +phy0-ap0       | WiFi 2.4G          | Disabled              
-</WRAP> +| phy1-ap0       | WiFi 5G            | Disabled              |
-***/+
  
 +==== Switch Ports (for VLANs) ====
 +
 +Numbers 2-4 are Ports 1-3 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 0 is the internal connection to the router itself.
 +^ Port             ^ Switch port ^
 +| Internet (WAN)   | 1           |
 +| LAN 2            | 2           |
 +| LAN 3            | 3           |
 +| LAN 4            | 4           |
  
-/*** if info available: uncomment and fill in 
 ==== Buttons ==== ==== Buttons ====
 -> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s). -> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s).
 Here, we merely name the buttons, so we can use them in the above Howto. Here, we merely name the buttons, so we can use them in the above Howto.
- 
-<WRAP BOX 600px> 
-FIXME Please fill in real values for this device, then remove the EXAMPLEs and the WRAP that encloses this text. 
  
 The Xiaomi AX3000T has the following buttons: The Xiaomi AX3000T has the following buttons:
  
-^ BUTTON                       ^ Event   ^ +^ BUTTON  ^ Event   ^ 
-EXAMPLE Reset                |  reset  | +| Reset   |  reset  | 
-EXAMPLE Secure Easy Setup      ses   | +Mesh     BTN_9  |
-| EXAMPLE No buttons at all.      -    | +
-</WRAP> +
-***/+
  
 +==== LEDs ====
 +The Xiaomi AX3000T features a front LED strip that can light up in yellow (actually orange), blue, and white. 
  
-===== Hardware ===== +The default OpenWRT configuration is as follows:
-==== Info ==== +
-^ Architecture     | EXAMPLE MIPS                             | +
-^ Vendor           | EXAMPLE Ralink                           | +
-^ Bootloader       | EXAMPLE U-Boot                           | +
-^ System-On-Chip   | EXAMPLE Ralink RT3052 - MIPS 24K V4.12   | +
-^ CPU/Speed        | EXAMPLE 451 MHz                          | +
-^ Flash-Chip       | EXAMPLE unkown                           | +
-^ Flash size       | EXAMPLE 8 MiB                            | +
-^ RAM              | EXAMPLE 64 MiB                           | +
-^ Wireless         | EXAMPLE RT2860v2 2.4GHz 802.11bgn        | +
-^ Ethernet         | EXAMPLE 10/100 Mbit/s w/ vlan support    | +
-^ Switch           | EXAMPLE Qualcomm Atheros QCA8337         | +
-^ USB              | EXAMPLE 1x 2.0                           | +
-^ Serial           | EXAMPLE [[#Serial|Yes]]                  | +
-^ JTAG             | EXAMPLE [[#JTAG|Not populated]]          |+
  
 +^ LED     ^ Behavior            ^
 +| Yellow  | Blinks during boot  |
 +| Blue    | Solid after boot    |
 +| White   | Not in use          |
  
-/*** if info available: uncomment and fill in +The white LED can be activated by turning on both the yellow and blue LEDs simultaneously. 
-==== Flash Layout ==== + 
-<WRAP BOX> +For example, the following configuration will set the white LED to be solid when the PPPoE connection is established. If the connection is lost, the color will revert to blue. 
-FIXME //[[:docs:techref:flash.layout#discovery_how_to_find_out|Find out flash layout]], then add the flash layout table here (copy, paste, modify the [[docs:techref:flash.layout#partitioning_of_squashfs-images|example]]).//+ 
 +This can be configured through Luci -> System -> LED Configuration. 
 + 
 +  config led 
 + option sysfs 'yellow:status' 
 + option trigger 'netdev' 
 + option dev 'pppoe-wan' 
 + list mode 'link' 
 +   
 +  config led 
 + option sysfs 'blue:status' 
 + option trigger 'netdev' 
 + option dev 'pppoe-wan' 
 + list mode 'link' 
 +   
 +  config led 
 + option sysfs 'blue:status' 
 + option trigger 'default-on' 
 + 
 + 
 + 
 + 
 +===== Hardware ===== 
 +==== Info ====
  
-Please check out the article [[docs:techref:flash.layout|Flash layout]]. It contains examples and explanations that describe how to document the flash layout. 
-</WRAP> 
-***/ 
  
 +<!-- ToH: {
 +  "source": "json",
 +  "dom": "t",
 +  "paging": false,
 +  "rotate": true,
 +  "shownColumns": ["brand", "model", "version", "devicetype", "availability", "supportedsincecommit", "supportedsincerel", "supportedcurrentrel", "unsupported_functions", "bootloader", "cpu", "target", "cpumhz", "flashmb", "rammb", "switch", "ethernet100mports", "ethernet1gports", "commentsnetworkports", "modem", "vlan", "wlan24ghz", "wlan50ghz", "wlanhardware", "wlancomments", "detachableantennas", "usbports", "sataports", "commentsusbsataports", "serial", "jtag", "ledcount", "buttoncount", "powersupply", "deviceid", "owrt_forum_topic_url", "wikideviurl", "oemdevicehomepageurl", "firmwareoemstockurl", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "comments"],
 +  "filterColumns": {"brand": "^Xiaomi$", "model": "^AX3000T$"}
 +} -->
  
 ==== Photos ==== ==== Photos ====
Line 143: Line 456:
 /* Thanks, your wiki administration - Oct. 2015 */ /* Thanks, your wiki administration - Oct. 2015 */
  
 +//Front://\\
 **Insert photo of front of the casing** **Insert photo of front of the casing**
  
 +//Back://\\
 **Insert photo of back of the casing** **Insert photo of back of the casing**
  
 +//Backside label://\\
 **Insert photo of backside label** **Insert photo of backside label**
- 
-**Insert photo of PCB** 
  
 ==== Opening the case ==== ==== Opening the case ====
 +
 +**Note:** This will void your warranty!
  
 <WRAP BOX> <WRAP BOX>
-FIXME //Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...//+  - Remove 4 rubber feet on the bottom of the device 
 +  - Use a Phillips screwdriver to remove the 4 screws 
 +  - A tiny flathead or plastic pry tool can be wedged in between the bottom case by the antennasGently push and slide it along the groove and it will pop open.
 </WRAP> </WRAP>
 +
 +//Main PCB://\\
 +**Insert photo of PCB**
  
 ==== Serial ==== ==== Serial ====
Line 161: Line 482:
  
 How to connect to the Serial Port of this specific device:\\ How to connect to the Serial Port of this specific device:\\
-**Insert photo of PCB with markings for serial port** +{{:media:xiaomi:xiaomi_ax3000t_uart.jpg?direct&600|}} 
- +^ Serial connection parameters\\ for Xiaomi AX3000T  | 115200, 8N1, 3.3V  |
-<WRAP BOX> +
-FIXME //Replace EXAMPLE by real values.// +
-</WRAP> +
- +
-^ Serial connection parameters\\ for Xiaomi AX3000T @@Version@@ EXAMPLE 115200, 8N1, 3.3V |+
  
 ==== JTAG ==== ==== JTAG ====
Line 174: Line 490:
 How to connect to the JTAG Port of this specific device:\\ How to connect to the JTAG Port of this specific device:\\
 **Insert photo of PCB with markings for JTAG port** **Insert photo of PCB with markings for JTAG port**
 +
 +===== Bootloader mods =====
 +-> [[docs:techref:bootloader]]
 +
 +
 +===== Hardware mods =====
 +
  
 ===== Bootlogs ===== ===== Bootlogs =====
-==== OEM bootlog ==== 
-<WRAP bootlog> 
-<nowiki>COPY HERE THE BOOTLOG WITH THE ORIGINAL FIRMWARE</nowiki> 
-</WRAP>\\ 
  
-==== OpenWrt bootlog ==== 
-<WRAP bootlog> 
-<nowiki>COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING</nowiki> 
-</WRAP>\\ 
  
 ===== Notes ===== ===== Notes =====
 +
 +  * DC power barrel plug dimensions 4.0mm x 1.7mm.
 +
  
 ===== Tags ===== ===== Tags =====
-[[meta:tags|How to add tags]] + 
-{{tag>EXAMPLETAG unsupported}}+{{tag>mediatek MT7981 128NAND 256RAM 4Port GigabitEthernet 0usb 4core 4x4 hwVLAN 802.11ax wifi6 u-boot ARMv8 cortexa53 Filogic Serial 12v_powered}}
  • Last modified: 2024/12/19 08:57
  • by lessload