/OpenWrt-Redmi-AX6

Use Github Actions compile Xiaomi Redmi AX6 OpenWRT firmware

Primary LanguageShellMIT LicenseMIT

简体中文 | English

GitHub release (latest by date)

⚠WARNING: Never operate on-duty system updates, otherwise it will cause loss of functions/skins, and even affect the use! ! ! ! !⚠

About this repository

This repository is based on P3TERX/Actions-OpenWrt
OpenWRT branch from Official

Use Github Actions Automatically compile firmware for Redmi AX6
In principle, the firmware of this project is automatically compiled once a week, and you can also fork to modify it by yourself.
If you think this project is good, you can star it, I will be very grateful!

Features

  • OpenClash
  • Wake-On-LAN
  • DDNS
  • More functions by themselves (may be refreshed from time to time to check)...

Instructions

  1. Upload your own AX6-***.config file (depending on which branch you want to be on)
  2. Enter the Actions page to manually start the compilation
  3. When the compilation is complete, download the compiled xxx-factory.ubi firmware on the Releases page.
  4. If you have previously flashed dual systems to AX6, please enter fw_setenv flag_last_success=1 and fw_setenv flag_boot_rootfs=1 and then restart the device to switch the system (if not, please click the reference link(Please solve the translation problem yourself) to install the dual system)
  5. Upload the firmware with the suffix of .ubi via scp
  6. Flashing in the firmware ubiformat /dev/mtd13 -y -f /tmp/openwrt-xxx-redmi_ax6-squashfs-nand-factory.ubi PS: The file name is just an example. When flashing in, the ubi file name you downloaded will prevail
  7. Enter fw_setenv flag_last_success=0 and fw_setenv flag_boot_rootfs=0 and then restart the device

Instructions(with uboot)

  1. If you haven't flashed it, please flash uboot first, and the second step if you have flashed it. 123pan(Extraction password:88g5 compressed file password:RA69) Google Drive(compressed file password:RA69)
  2. After flashing, please plug in the power supply and use the card pin or any object to hold down the reset hole of the AX6 router for 5 seconds until the red light turns on, modify the ip to 192.168.1.10 and the gateway to 192.168.1.1 to enter uboot
  3. Upload the firmware with the .ubi suffix, wait for the automatic restart, and complete

Instructions (for 2023.02.03 and later firmware)

  1. First flash into the official partition table and uboot of ZhiPing/AnYun partition table reference link ZhiPing uboot reference Link AnYun uboot reference link
  2. Use a method such as winscp to transfer uboot and partition table to ax6 router
  3. SSH into ax6,enter the following commands in sequence:
mtd erase /dev/mtd1
mtd write /tmp/(the mibib partition table you downloaded).bin /dev/mtd1
mtd erase /dev/mtd7
mtd write /tmp/(uboot you downloaded).bin /dev/mtd7
  1. Unplug the power and turn it on again, hold the reset hole with a needle or other thin objects at the same time, and set the computer IP address to 192.168.1.10 after the blue light is on, and the network gateway to 192.168.1.1
  2. Enter 192.168.1.1 in the browser, flash into ***-initramfs-factory.ubi
  3. Change back to DHCP, enter the background of the router, click How to update the firmware to flash ***-squashfs-sysupgrade.bin
  4. finish

Default IP address and password

project value
Default IP address 192.168.2.1
Default password password

Screenshot

luci_admin_status_overview

Issues

Disclaimer: The following known issues are all personal measurements, and there may be unknown issues. I am not responsible for any issues caused by the firmware

* As of the editing of this article, since the memory leak problem of ax6's openwrt is still unresolved, my personal suggestion is to restart every once in a while and add the following commands through the system-startup item-local startup script (note: to exit Before 0):

echo "0 4 * * * sleep 5 && touch /etc/banner && reboot" >> /etc/crontabs/root
echo "0 16 * * * sleep 5 && touch /etc/banner && reboot" >> /etc/crontabs/root

Then restart the router once. It will restart at 4 am and 16 pm every day. If you can understand the principle of crontab, you can also customize the restart time.

  • (update)The problem of luci stuck due to memory seems to be fixed (I haven't seen luci crash for several days after booting), but due to at least 5.15 kernel, it can't open 160Mhz.
  • (Update again) If you want to open 160Mhz, please find Generic 802.11acaxn in the network-wireless item, click edit, set the channel to 48 (pro-test available, you can also try other channels), and then set the country to US - United States, save and apply the settings, wait a minute

Credits