{"id":2616,"date":"2022-07-27T00:28:48","date_gmt":"2022-07-26T22:28:48","guid":{"rendered":"https:\/\/miniprojets.net\/?p=2616"},"modified":"2022-12-17T17:21:05","modified_gmt":"2022-12-17T16:21:05","slug":"convert-xiaomi-4a-100m-to-openwrt","status":"publish","type":"post","link":"https:\/\/miniprojets.net\/index.php\/en\/2022\/07\/27\/convert-xiaomi-4a-100m-to-openwrt\/","title":{"rendered":"Convert Xiaomi 4A (100m) to OpenWRT"},"content":{"rendered":"\n<p>Today, the objective is to guide you to deploy OpenWRT on a Xiaomi 4A(100m) router. OpenWRT is essential if you need to set up an independent wifi network for demonstration \/ DIY projects.<\/p>\n\n\n\n<p>I chose this router (Xiaomi 4A) because it is of high quality, cheap, and has a good OpenWRT community behind it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m.media-amazon.com\/images\/I\/31rvm4H-65L._AC_SX425_.jpg\" alt=\"Xiaomi Mi Router 4A Gigabit Edition : Amazon.fr: Informatique\" \/><figcaption>Xiaomi 4A(100m) Router <\/figcaption><\/figure>\n\n\n\n<p>For the subsequent part, I used a windows PC.<\/p>\n\n\n\n<p>Part 0:<\/p>\n\n\n\n<p><strong>Software requirements<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>MIWFIRepairTool (available&nbsp;: <a href=\"https:\/\/bigota.miwifi.com\/xiaoqiang\/tools\/MIWIFIRepairTool.x86.zip\">https:\/\/bigota.miwifi.com\/xiaoqiang\/tools\/MIWIFIRepairTool.x86.zip<\/a> )<\/li><li>MIWFIRepairTool firmware- this allows you to use the exploit&nbsp; (available: <a href=\"https:\/\/bigota.miwifi.com\/xiaoqiang\/rom\/r4ac\/miwifi_r4ac_all_c4b35_2.18.28.bin\">bigota.miwifi.com\/xiaoqiang\/rom\/r4ac\/miwifi_r4ac_all_c4b35_2.18.28.bin<\/a>)<\/li><li>OpenWRT firmware- &nbsp;(available: <a href=\"https:\/\/downloads.openwrt.org\/releases\/21.02.1\/targets\/ramips\/mt76x8\/openwrt-21.02.1-ramips-mt76x8-xiaomi_mi-router-4a-100m-squashfs-sysupgrade.bin\">https:\/\/downloads.openwrt.org\/releases\/21.02.1\/targets\/ramips\/mt76x8\/openwrt-21.02.1-ramips-mt76x8-xiaomi_mi-router-4a-100m-squashfs-sysupgrade.bin<\/a>)<\/li><li>The filezila FTP software<\/li><\/ol>\n\n\n\n<p>All files are archived at the end of the article as usual<\/p>\n\n\n\n<p><strong>Hardware requirements:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>A raspberry with VNC<\/li><li>3 Ethernet cables<\/li><\/ol>\n\n\n\n<p><strong>Setting up the router to exploit the loophole that allows the installation of OpenWRT<\/strong><\/p>\n\n\n\n<p>The goal here is to downgrade the firmware of the router to an older version, which would condition the router for the <a href=\"https:\/\/miniprojets.net\/index.php\/2022\/02\/09\/passer-un-routeur-xiaomi-4a-100m-sous-openwrt\/#:~:text=OpenWRTInvasion%20exploit\">OpenWRTInvasion<\/a> exploit.<\/p>\n\n\n\n<p>To do this, first configure the Ethernet port of your laptop to a static IP address as shown in the image below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/forum.openwrt.org\/uploads\/default\/original\/3X\/2\/2\/2233c09e335d096747f5780e2ba3c5bd799fe865.png\" alt=\"2020-05-19 01_11_45-Internet Protocol Version 4 (TCP_IPv4) Properties\" \/><figcaption>Windows Network settings Panel<\/figcaption><\/figure>\n\n\n\n<p>Then connect one of the Ethernet cables between your PC and the route.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/20211204_181826-1024x768.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>Launch the MIWIFIRepairTool program and Choose the file miwifi_r4ac_all_c4b35_2.18.28.bin (using the button\u201d??\u201d(1)) and click on the \u201c???\u201d (2) to proceed (see image below).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2021\/12\/image-3.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Now choose the previously configured connection (1) and click on \u201c???\u201d&nbsp;(2) to proceed<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2021\/12\/image-4.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>The program should now be waiting to establish communication with the router (see image below).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2021\/12\/image-5.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>While holding the reset button, power up your router.&nbsp;Release the reset button when the amber light starts flashing (after about 8 seconds) and wait for the router to flash the old firmware.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2021\/12\/image-6.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>The LED indicator on the router should flash orange<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/20211204_184055-1024x768.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>Wait for the LED indicator to start flashing with a blue color. This process takes a bit of time ( five mins easily), remember to keep all devices powered and do not reset the router.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/20211204_184025-1024x768.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>Once the LED indicator has turned from orange to blue (flashing), reset the router by unplugging and plugging the router back in. Wait for the LED to turn solid blue. Now you should see the Wi-Fi signal of the router on your (see image below)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2021\/12\/image-7.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Congratulations, you have successfully completed the first step.&nbsp;You can now unplug your Ethernet cable and restore your PC&#8217;s network settings to a dynamic IP.<\/p>\n\n\n\n<p><strong>Part 2: Primary and Provisional Router Configuration<\/strong><\/p>\n\n\n\n<p>Now, I used the indications marked <a href=\"https:\/\/github.com\/acecilia\/OpenWRTInvasion\">here<\/a> and I will detail them below, systematically.<\/p>\n\n\n\n<p>To start, you must connect the Wi-Fi router to your internet box (ADSL Modem, etc) on the port marked internet (the blue on the right next to the reset button).<\/p>\n\n\n\n<p>On my PC, I configured my router with the following method:<\/p>\n\n\n\n<p><em>Note: For information and convenience, because I do not speak Chinese, the password I use is always the same and ideally 13 characters: \u201c<strong>PasswordCool<\/strong>\u201d<\/em><\/p>\n\n\n\n<p>Step 1. Connect to the Xiaomi network seen previously (by Wi-Fi). It should automatically redirect you to the web page (router admin page) shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/1.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>You have to click on the blue button<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-42.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 2 &nbsp;On this page, enter your password (remember for all the work here I used \u201c<strong><em>PasswordCool\u201d<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/2.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>and click on the button<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-43.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 3. &nbsp;Enter your chosen password again (admin password &#8211; for me it is \u201c<strong><em>PasswordCool\u201d<\/em><\/strong>)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/3.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>and click on the button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-45.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 4. You should now have a progress bar appearing (wait until it\u2019s done loading)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/4.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 5 \u2013 A new page should have loaded (see image below)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/5-1.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Select the button indicated in the image below (this should open a Xiaomi advert, you can close this and proceed).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-46.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>At this point, the configuration is done, and your PC should have disconnected from the WI-FI (you change the password remember). Connect to the WI-FI again and this time enter your chosen password ( \u201c<strong><em>PasswordCool\u201d <\/em><\/strong>&nbsp;for me).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2021\/12\/image-7.png\" alt=\"\" \/><\/figure>\n\n\n\n<p><strong>Part 3: Using the exploit<\/strong><\/p>\n\n\n\n<p>To now utilize the exploit, first connect an Ethernet cable between my internet box and my Wi-Fi router because we will need an internet connection to launch the exploit (you did this already but in case you disconnected the cable, you need to then reconnect them).<\/p>\n\n\n\n<p><strong><em>Note<\/em><\/strong><em>: Personally, from this point, I prefer to use a raspberry pi with open VNC access because it was easier from my point of view. Normally the method works with PC or other but I have not tested these approaches and cannot vouch for them.<\/em><\/p>\n\n\n\n<p>Connect the raspberry pi to the Xiaomi router via Ethernet cable. You can use any of the available ports on the router. Once this is done, on my main PC, reconnect to the Xiaomi&#8217;s Wi-Fi network, and in your browser, type the address 192.168.31.1. This brings up the router admin page where you will be asked for the admin password (in this case \u201c<strong><em>PasswordCool\u201d <\/em><\/strong>&nbsp;)<\/p>\n\n\n\n<p>&nbsp;[<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/8.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>It should bring up the following page:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-9-1024x684.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Click on the icon below (you can\u2019t miss it, it&#8217;s at the top of the screen)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-10.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>You should now see the IP address of your raspberry pi.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-11-1024x564.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>Now that we have the IP address of the Raspberry Pi, open VNC viewer, and fill in the IP address as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-13.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Enter your login details (username and password).<\/p>\n\n\n\n<p>Now open a terminal on the Raspberry Pi (via VNC) and type the following command:<\/p>\n\n\n\n<p><code>sudo git clone <a href=\"https:\/\/github.com\/acecilia\/OpenWRTInvasion.git\"><em>https:\/\/github.com\/acecilia\/OpenWRTInvasion.git<\/em><\/a><\/code><\/p>\n\n\n\n<p><code>cd OpenWRTInvasion\/<\/code><\/p>\n\n\n\n<p>Then start the installation of the requirements with the following command<\/p>\n\n\n\n<p><em><code>pip3 install -r requirements.txt # Install requirements.<\/code><\/em><\/p>\n\n\n\n<p>The next script might ask you for a token (maybe because from the last update, only the address and password were required but do not panic). If you need the token, still on your raspberry, open your browser and enter the IP address 192.168.31.1. Enter your password and retrieve the token (here it is <strong><em>a61\u2026\u202650<\/em><\/strong>).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/github.com\/acecilia\/OpenWRTInvasion\/blob\/master\/readme\/readme-001.png?raw=true\" alt=\"readme-001.png\" \/><\/figure>\n\n\n\n<p>Now that you have this token, you can run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python3 remote<em>_command_execution_vulnerability.py # Run the scri<\/em>pt<\/code><\/pre>\n\n\n\n<p>Enter the address 192.168.31.1 when the script asks you<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-14.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Then fill in the admin password of your Xiaomi (\u201c<strong><em>PasswordCool<\/em><\/strong>\u201d)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-16.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Choose 1 and hit enter<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-17.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>wait a few moments (until you see the screen below)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-19.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Congratulations, the exploit is now in place.&nbsp;We will be able to switch to flashing the OpenWRT firmware<\/p>\n\n\n\n<p><strong>Part 4: Flashing OpenWRT Firmware<\/strong><\/p>\n\n\n\n<p>open FileZilla software and enter the following parameters and connect:<\/p>\n\n\n\n<p>IP address 192.168.31.1<\/p>\n\n\n\n<p>User name: root<\/p>\n\n\n\n<p>Password: root<\/p>\n\n\n\n<p>Port: 21<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-20.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Once the connection is established, navigate to the &#8220;tmp&#8221; folder and drag and drop the file \u201copenwrt-21.02.1-ramips-mt76x8-xiaomi_mi-router-4a-100m-squashfs-sysupgrade.bin\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-21.png\" alt=\"\" \/><figcaption><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-22.png\"><\/figcaption><\/figure>\n\n\n\n<p>Now in the VNC terminal of the Raspberry Pi, type the command<\/p>\n\n\n\n<p><code>telnet 192.168.31.1<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-23.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Enter the login\/password: root\/root<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-25.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>You should have the following display<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-26.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Type the commands:<\/p>\n\n\n\n<p><em><code>cd \/tmp<\/code><\/em><\/p>\n\n\n\n<p>mtd -r write openwrt-21.02.1-ramips-mt76x8-xiaomi_mi-router-4a-100m-squa<em>shfs-sysupgrade.bin OS1<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-27.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Wait for the firmware to finish flashing then the router will reboot<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-28.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Wait about 5 minutes then turn off the power and unplug all cables.<\/p>\n\n\n\n<p>You don&#8217;t need the raspberry pi anymore,( you can thank it because it did a wonderful job).<\/p>\n\n\n\n<p>Now restart the router and the LED should flash orange and then turn blue.<\/p>\n\n\n\n<p>Connect an RJ45 (Ethernet) cable between an Ethernet output of the router (not the blue port) and your PC.<\/p>\n\n\n\n<p>Then in your browser, type the IP address 192.168.1.1<\/p>\n\n\n\n<p>The OpenWRT login page should load and be displayed as below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-29.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Delete the present password and click on Login (yes no password required)<\/p>\n\n\n\n<p>A new page should load as displayed below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-30.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Congratulations, you are now the proud owner of a Xiaomi router under OpenWRT!!!!!&nbsp;However, remember to put in a new password!<\/p>\n\n\n\n<p><strong>Part 5: (Bonus) turn on wifi<\/strong><\/p>\n\n\n\n<p>By default, the Wi-Fi is deactivated on OpenWRT. What then is the fun in having a Wi-Fi router without Wi-Fi services (this is no fun at all).<\/p>\n\n\n\n<p>To enable the WI-FI, click on Network &gt; Wireless<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-32.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Then edit the first instance of \u201cSSID: OpenWrt\u201d and fill in the required information<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-33.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>In my example, I am only illustrating a setup with basic functionality, as I am not a networking expert (you can have fun with the setting as long as you know what you are doing).<\/p>\n\n\n\n<p>Now, in the General Setup tab at the bottom, put the ESSID you want<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-34.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>In the Wireless Security tab, choose your Encryption mode and your password that suits you and click on Save<\/p>\n\n\n\n<p>[i<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-36.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Now click Enable<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-37.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>OpenWrt will consider the new parameters and apply them<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-38.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Once this is applied, do the same with the 2nd AC subnet (for mine, I added 5G data at the end, to differentiate the 2 frequencies) and click on Save and Enable<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-39.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>At the end, you should have it (more or less) setup as displayed in the image below, This indicates your setup is ok and good to go.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-40.png\" alt=\"This image has an empty alt attribute; its file name is image-40.png\" \/><\/figure>\n\n\n\n<p>Now if you look at your Wi-Fi networks accessible from your pc\u2026..<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/image-41.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Therefore, here is a working OpenWRT router with Wi-Fi!<\/p>\n\n\n\n<p>You can now reconnect the internet cable from your box to your Xiaomi OpenWRT router (the blue port) and take advantage of your brand new network for all your IoT projects in complete safety<\/p>\n\n\n\n<p>As promised, below are the source files:<\/p>\n\n\n\n<p>The programs<\/p>\n\n\n\n<p><a href=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/Fichiers-programme-Article-xiaomi.7z\">Program-Files-Article-Xiaomi&nbsp;<\/a><a href=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/Fichiers-programme-Article-xiaomi.7z\">Download<\/a><\/p>\n\n\n\n<p>A copy of Git just in case<\/p>\n\n\n\n<p><a href=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/OpenWRTInvasion-master_2.7z\">OpenWRTInvasion-master_2<\/a><a href=\"https:\/\/miniprojets.net\/wp-content\/uploads\/2022\/02\/OpenWRTInvasion-master_2.7z\">Download<\/a> <\/p>\n\n\n\n<p>As usual, here are the references that helped me.<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/forum.openwrt.org\/t\/xiaomi-mi-router-4a-gigabit-edition-r4ag-r4a-gigabit-fully-supported-and-flashable-with-openwrtinvasion\/36685\/747\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/openwrt.org\/toh\/xiaomi\/mi_router_4a_mir4a_100m\n<\/div><\/figure>\n\n\n\n<p>That&#8217;s all for now!<\/p>\n\n\n\n<p>I hope this will help you,<\/p>\n\n\n\n<p>Jerome Ferrari<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, the objective is to guide you to deploy OpenWRT on a Xiaomi 4A(100m) router. OpenWRT is essential if you&hellip;<\/p>\n","protected":false},"author":9,"featured_media":2547,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[88],"class_list":["post-2616","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized-en","tag-hacking"],"_links":{"self":[{"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/posts\/2616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/comments?post=2616"}],"version-history":[{"count":0,"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/posts\/2616\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/media\/2547"}],"wp:attachment":[{"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/media?parent=2616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/categories?post=2616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miniprojets.net\/index.php\/wp-json\/wp\/v2\/tags?post=2616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}