| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| inbox:toh:xiaomi:xiaomi_mi_router_4a_gigabit_edition [2024/01/02 22:20] – [How to tell the different Xiaomi Mi Router 4A versions apart] cubytus | inbox:toh:xiaomi:xiaomi_mi_router_4a_gigabit_edition [2024/02/12 13:41] – [Hardware Highlights] revert Version change bill888 |
|---|
| ===== OpenWrt support ===== | ===== OpenWrt support ===== |
| |
| ---- datatable ---- | <!-- ToH: { |
| cols : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid | "source": "json", |
| headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data | "dom": "t", |
| align : c,c,c,c,c,c,c | "paging": false, |
| filter : Model=Mi Router 4A (MIR4A) | "shownColumns": ["brand", "model", "version", "supportedcurrentrel", "oemdevicehomepageurl", "forumsearch", "deviceid"], |
| filter : Version=Gigabit Edition | "filterColumns": {"model": "^Mi Router 4A \\(MIR4A\\)$", "version": "^Gigabit Edition$"} |
| ---- | } --> |
| |
| |
| ===== Installation ===== | ===== Installation ===== |
| /* stable release table - used instead of previous snapshot table */ | /* stable release table - used instead of previous snapshot table */ |
| ---- datatable ---- | <!-- ToH: { |
| cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url, Device Techdata_pageid | "source": "json", |
| headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock, Technical Data | "dom": "t", |
| align : c,c,c | "paging": false, |
| filter : Brand=Xiaomi | "rotate": true, |
| filter : Model=Mi Router 4A (MIR4A) | "shownColumns": ["model", "version", "supportedcurrentrel", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "firmwareoemstockurl", "deviceid"], |
| filter : Version=Gigabit Edition | "filterColumns": {"brand": "^Xiaomi$", "model": "^Mi Router 4A \\(MIR4A\\)$", "version": "^Gigabit Edition$"} |
| ---- | } --> |
| |
| **OpenWrt Factory Firmware:** Use this file the first time you flash OpenWrt onto the router - i.e. use with the above mentioned exploit / install method. \\ | **OpenWrt Factory Firmware:** Use this file the first time you flash OpenWrt onto the router - i.e. use with the above mentioned exploit / install method. \\ |
| **OEM Stock Firmware:** The above mentioned exploit provides a stock firmware image in its repository.\\ | **OEM Stock Firmware:** The above mentioned exploit provides a stock firmware image in its repository.\\ |
| |
| | ==== Flash Layout ==== |
| | This is the Flash layout under the 2.28.62 OEM firmware, after using OpenWRTInvasion to get //root// access. |
| | |
| | ^ Xiaomi Mi Router 4A (100M, Chinese version) Flash Layout ||||||||||| |
| | ^ Layer0 | [[wp>Serial Peripheral Interface Bus|spi]]0.0: [[https://pdf1.alldatasheet.com/datasheet-pdf/download/1151510/GIGADEVICE/GD25Q127CSIG.html|25Q127CSIG]] 16384KiB |||||||||| |
| | ^ Layer1 | mtd0 **//ALL//** 16384KiB |||||||||| |
| | ^ Layer2 | mtd1 **//Bootloader//** 192KiB | mtd2 **//Config//** 64KiB | mtd3 **//Bdata//** 64KiB | mtd4 **//Factory//** 64KiB | mtd5 **//crash//** 64KiB | mtd6 **//cfg_bak//** 64KiB | mtd7 **//overlay//** 1024KiB | mtd8 **//OS1//** 13312KiB || mtd10 **//disk//** 1536KiB | |
| | | **Layer2 boundaries** | 0x0000000-0x0030000 | 0x0030000-0x0040000 | 0x0040000-0x0050000 | 0x0050000-0x0060000 | 0x0060000-0x0070000 | 0x00070000-0x00080000 | 0x00080000-0x00180000 | 0x00180000-0x00e80000 || 0x00e80000-0x01000000 | |
| | ^ Layer3 | | | | | | | | //firmware_partition// 1856KiB | mtd9 **//rootfs//** 11456KiB | | |
| | | **Layer3 boundaries** | | | | | | | | 0x0180000-0x0350000 | 0x0350000-0x0e80000 | | |
| | ^ Size in KiB | 192KiB | 64KiB | 64KiB | 64KiB | 64KiB | 64KiB | 1024KiB | 1856KiB | 11456KiB | 1536KiB | |
| | ^ Name | **//Bootloader//** | **//Config//** | **//Bdata//** | **//Factory//** | **//crash//** | **//cfg_bak//** | **//overlay//** | **//firmware_partition//** | **//rootfs//** | **//disk//** | |
| | ^ <color magenta>mountpoint</color> | //none// | //none// | //none// | //none// | //none// | //none// | ''/etc''''/data''''/mnt'' | //none// | ''/'' | | |
| | ^ filesystem | //unknown// | //unknown// | //unknown// | //unknown// | //unknown// | //unknown// | [[docs:techref:filesystems#JFFS2]] | | [[docs:techref:filesystems#SquashFS]] | [[docs:techref:filesystems#JFFS2]] | |
| | |
| | ***Note*** The partitions "mtd1 **//config//**", "mtd5 **//caldata//**", "mtd6 **//unkown//**" and "mtd8 **//caldata_copy//**" contain vendor specific raw (without filesystem) config values about your router, like WiFi calibration data, MAC addresses, etc. It's a good idea to [[docs:guide-user:installation:generic.backup|make a backup from them]]. |
| | |
| | ***Note2*** You can check mtd partitions of your router yourself by using commands "''cat /proc/mtd''" and "''dmesg''". Refer to [[https://www.mail-archive.com/kernelnewbies@nl.linux.org/msg02774.html|this link]]. |
| ===== Debricking ===== | ===== Debricking ===== |
| Using Mi Wifi Repair tool: | Using Mi Wifi Repair tool: |
| |
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== |
| ---- datatable ---- | <!-- ToH: { |
| cols : Model, Versions, CPU, CPU MHz, CPU Cores_numcores_,Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet 100M ports_, Ethernet 1Gbit ports_, Modem, USB ports_ | "source": "json", |
| header : Model, Version,SoC,CPU MHz,CPU Cores,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Ethernet 1Gbit ports,Modem,USB | "dom": "t", |
| align : c,c,c,c,c,c,c,c,c,c,c,c,c | "paging": false, |
| filter : Model=Mi Router 4A (MIR4A) | "rotate": true, |
| filter : Version=Gigabit Edition | "shownColumns": ["model", "version", "cpu", "cpumhz", "cpucores", "flashmb", "rammb", "wlanhardware", "wlan24ghz", "wlan50ghz", "ethernet100mports", "ethernet1gports", "modem", "usbports"], |
| ---- | "filterColumns": {"model": "^Mi Router 4A \\(MIR4A\\)$", "version": "^Gigabit Edition$"} |
| | } --> |
| |
| |