Router einrichten Xiaomi AX3200 Redmi ax6s

Aus Freifunk Dresden - Anwender-Wiki
Zur Navigation springen Zur Suche springen

Xiaomi MI Router AX3200

Technische Daten

Geräte-Name Hersteller Preis RAM in MB Flash ROM in MB Mhz/SoC
(CPU-Leistung)
MIMO 1x1:1 Version (tested) Beschreibung LAN-Adresse OriginalFW (Nutzername
Password)
Wirkleistung
Xiaomi AX3200 Xiaomi 60€ 256 128NAND 1350/MediaTek MT7531B
A53 64Bit DualCore SMT
(2Cores/4Threads)
4x4:4@2,4Ghz 4x4:4@5Ghz AX RB01 3 LAN (1Gbit): 1 WAN, 2,4Ghz und 5Ghz (AC) WLAN, 6 feste Antennen Router einrichten Xiaomi AX3200 192.168.31.1/24(LAN) (root/muss berechnet werden) Originalnetzteil (15W)
 ???W(Leerlauf) ???W(Vollast)

Voraussetzungen

Datei:Xxx.jpg
Xiaomi MI Router AX3200
  • KEINE dauerhaft Internetverbindung wie bei der Gigabit Edition
  • ein Xiaomi AX3200 /mit aktiviertem Telnet
  • Windows oder Linx Rechner
  • Strom und Netzwerkkabel
  • python3
  • telnet
  • ssh
  • Ein Arbeitsverzeichnis auf eurem Rechner, z.B. unter C:\temp

Dorthin dann die Firmware ((openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin) laden, in diesem Fall das Openwrt Snapshot, von https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/ ins temp Verzeichnis laden:


Router vorbereiten

  • LAN Port an Computer

Kabel an einen der drei LAN Ports anschließen. Ihr bekommt eine Adresse aus 192.168.31.1/24

Wenn auf Ihrem Gerät Telnet ab Werk aktiviert ist, kann losgelegt werden. Test mit http://192.168.31.1/cgi-bin/luci/api/xqsystem/fac_info

Ausgabe:

{"telnet":true,"init":false,"wl0_ssid":"xiaomi-router-rb01_miapec04_5G","ssh":false,"version":"1.0.35","facmode":false,"4kblock":false,"secboot":false,"wl1_ssid":"xiaomi-router-rb01_miapec04","uart":false} 

oder

telnet 192.168.31.1

Ausgabe:

XiaoQiang login:
Login timed out after 60 seconds

Passwort

Zuerst gilt es das Passwort zu berechnen. Dazu gibt es dieses kleines Python3-Programm (https://raw.githubusercontent.com/YangWang92/AX6S-unlock/master/unlock_pwd.py), einfach auf der lokalen Festplatte mit dem Namen xxx.py speichern und ausführen (Windows oder Linux)

python3 xxx.py YYYYYY/ZZZZZZZ
  • YYYYYY/ZZZZZZZ ist die tatsächliche Seriennummer des Geräts. Zu finden ist Seriennummer auf dem Etikett auf der Rückseite des Routers.
    Datei:Xxx.jpg
    Seriennummer AX3200


Passwort "merken".

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6

PS C:\Users\lamir> cd C:\temp\
PS C:\temp> cat serial.py
PS C:\temp> python.exe .\serial.py 35756/J1UD0***8
96f7***1

Firmware flashen

Ein parr Vorbereitung sind noch zu treffen, die heruntergeladen Spoftware sollte hier sein und umbenannt werden, sdchließenden wird ein http Server gestartet:

PS C:\temp> dir
 

    Verzeichnis: C:\temp 


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        21.04.2022     18:38          18098 Anleitung.odt
-a----        21.04.2022     18:33           1886 ausgabe.txt
-a----        21.04.2022     18:46        9961472 openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin
-a----        21.04.2022     18:25            824 serial.py
 

PS C:\temp> Get-FileHash .\openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          561A49F3B7F2EC398649A1CBA1F826FEB46272057629B07D6891820A676B1C0D       C:\temp\openwrt-mediatek-mt76...


PS C:\temp> Rename-Item -Path "C:\temp\openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin" -NewName "factory.bin"
PS C:\temp> python.exe -m http.server
Serving HTTP on :: port 8000 (http://[::]:8000/) ...

In einem neuen PowerShell Server gehen wir auf den Router:

PS C:\temp>telnet 192.168.31.1

XiaoQiang login: root
Password:


BusyBox v1.25.1 (2021-08-07 08:04:56 UTC) built-in shell (ash)

 -----------------------------------------------------
       Welcome to XiaoQiang!
 -----------------------------------------------------
  $$$$$$\  $$$$$$$\  $$$$$$$$\      $$\      $$\        $$$$$$\  $$\   $$\
 $$  __$$\ $$  __$$\ $$  _____|     $$ |     $$ |      $$  __$$\ $$ | $$  |
 $$ /  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ /  $$ |$$ |$$  /
 $$$$$$$$ |$$$$$$$  |$$$$$\         $$ |     $$ |      $$ |  $$ |$$$$$  /
 $$  __$$ |$$  __$$< $$  __|        $$ |     $$ |      $$ |  $$ |$$  $$<
 $$ |  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ |  $$ |$$ |\$$\
 $$ |  $$ |$$ |  $$ |$$$$$$$$\       $$$$$$$$$  |       $$$$$$  |$$ | \$$\
 \__|  \__|\__|  \__|\________|      \_________/        \______/ \__|  \__|

root@XiaoQiang:~#

Und gehen folgende Befehle ein:

nvram set ssh_en=1
nvram set uart_en=1
nvram set boot_wait=on
nvram set flag_boot_success=1
nvram set flag_try_sys1_failed=0
nvram set flag_try_sys2_failed=0
nvram commit

root@XiaoQiang:~# nvram set ssh_en=1
vram set root@XiaoQiang:~# nvram set uart_en=1
nvram set broot@XiaoQiang:~# nvram set boot_wait=on
nvram setroot@XiaoQiang:~# nvram set flag_boot_success=1
nvram root@XiaoQiang:~# nvram set flag_try_sys1_failed=0
vram set root@XiaoQiang:~# nvram set flag_try_sys2_failed=0
nvram croot@XiaoQiang:~# nvram commit
root@XiaoQiang:~# cd /tmp

Wir holden uns das Image von unserem http server (Achtung IP anspassen).

root@XiaoQiang:/tmp# wget http://192.168.31.202:8000/factory.bin
Connecting to 192.168.31.202:8000 (192.168.31.202:8000)
factory.bin          100% |***********************************************************************|  9728k  0:00:00 ETA
root@XiaoQiang:/tmp#sha256sum factory.bin
561a49f3b7f2ec398649a1cba1f826feb46272057629b07d6891820a676b1c0d  factory.bin
root@XiaoQiang:/tmp#mtd -r write factory.bin firmware 

Unlocking firmware ...

Writing from factory.bin to firmware ...
Rebooting ...

Verbindung zu Host verloren.

Und logen uns in OpenWrt ein....

PS C:\Users\lamir>PS C:\Users\lamir> ipconfig.exe

Windows-IP-Konfiguration


Unbekannter Adapter OVPN-TUN: 

   Medienstatus. . . . . . . . . . . : Medium getrennt
   Verbindungsspezifisches DNS-Suffix:

Ethernet-Adapter Mainboard Freifunk 1GB:

   Verbindungsspezifisches DNS-Suffix: lan
   IPv4-Adresse  . . . . . . . . . . : 192.168.1.247
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Standardgateway . . . . . . . . . : 192.168.1.1

PS C:\Users\lamir> ssh root@192.168.1.1
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ED25519 key fingerprint is SHA256:+naKqsISXAJjSi8cfjd/34LbtC8PMW4TqQKiee4ya6M.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.1' (ED25519) to the list of known hosts.


BusyBox v1.35.0 (2022-04-20 16:14:08 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r19508-0d2d52df69
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~#passwd