Add support for Xiaomi AX1800 Wifi 6 router

Wow! I didn't know about it, thank you a lot again @Blaze. How did you find it?

hope its work, i want to buy cheap ax6 wifi that support openwrt

openwrt-ipq60xx-generic-glinet_gl-ax1800-squashfs-nand-sysupgrade.bin

The Header says Redmi, but the file is glinet_gl - doubt it is the right one for die Xiaomi.... did anyone try? or even better, are the patches whitch could make this possible avaialble to be patched against the official openwrt Source?

Furthermore:

In the git repository is nothing 'valuable' to see - maybe its hidden, but the config file is not the key.....

Hey guys,

do you think i could give it a try to flash it into my OUTENGDA CAX840

Datasheet of CAX840

For me it seems like a clone of Xioami AX1800. Unfortunately I can't find an offical support of openwrt for it, even when it's offically running it...

Could anyone help?

It is very likely NOT "officially running it". Just another shitty (Chinese) vendor running likely QSDK based crap based on an ancient outdated OpenWrt version. Nothing at all related to "official OpenWrt".

Assume you have to have root/ssh to flash this? Can't flash it without via the router webpage manual?

You cannot use firmware update via webpage. It has to be done by SSH.. but the main reason to use it is because you have to flash to Chinese firmware to get SSH so why would you need it without already having SSH?

1 Like

Once you flash your file and run those commands ssh and wifi will stick after reboot yeah?

Actually after setting up the router SSH is still open for connection though SSH password has changed. It's not "password" or the new admin one i have setup through the webportal. What's going on there?

Just factory resetted it again. As soon as you set the admin password on the router webportal, SSH password no longer is accepted. It is no longer 'password' or the new one i choose. (Was a simple 10 digit password). Even tried changing the Admin Password back to 'password' in the webportal. SSH still doesnt accept it. Am i doing something wrong here?

  • Resolved: Worked it out. Need to login via SSH on first boot. Setup the Admin password via the Portal (while still logged in in SSH) Then use passwd to change the password in SSH. Before any reboot takes place.

1st you must to have root/ssh to flash not signed firmware (migration from China to Global fw or vice versa)
After factory reset via clip (!!!not via web interface!!!) the password for SSH access will be set by default - password and login is admin
If need you can change your SSH password via passwd command.

Hello,
will this global firmware work also on the "black" (not the Redmi one) version of Xiaomi AX1800?

Hi @prezervos
I don't have this device and seems this fw is not for your router.

Just out of interest is there any other cool stuff you can do once you have ssh other than change country and up the power of the wifi?

Looks like this is pulling the source from here https://github.com/coolsnowwolf/lede, which does seem to have support for ipq60xx chips. No idea if that actually works.

Yeah, this is my build script for this

#!/bin/bash
# Compile LEDE for GL.iNet AX1800

REPO_CONFIG=${REPO_CONFIG:-https://github.com/Lvellios/OpenWrt-AX5-AX1800.git}
REPO_URL=${REPO_URL:-https://github.com/coolsnowwolf/lede.git}
FEEDS_CONF=${FEEDS_CONF:-feeds.conf.default}
CONFIG_FILE=${CONFIG_FILE:-AX5.config}
DIY_P1_SH=${DIY_P1_SH:-diy-part1.sh}
DIY_P2_SH=${DIY_P2_SH:-diy-part2.sh}
FILE_NAME=${FILE_NAME:-AX5-AX1800}
WORK_DIR=${WORK_DIR:-/tmp/workdir}

# Get configs
cd /tmp
git clone $REPO_CONFIG
mv /tmp/OpenWrt-AX5-AX1800 $WORK_DIR

# Clone repo
cd $WORK_DIR
git clone $REPO_URL openwrt

# Load custom feeds
if [ -e $FEEDS_CONF ]; then
    cp $FEEDS_CONF openwrt/feeds.conf.default
    else
    chmod +x $DIY_P1_SH
    $WORK_DIR/$DIY_P1_SH
    cp $FEEDS_CONF openwrt/feeds.conf.default
fi

# Copy custom configuration
[ -e files ] && cp files openwrt/files
[ -e $CONFIG_FILE ] && cp $CONFIG_FILE openwrt/.config
chmod +x $DIY_P2_SH
sed '/OpenClash/d' $WORK_DIR/$DIY_P2_SH
cd openwrt && $WORK_DIR/$DIY_P2_SH

# Update and install feeds
./openwrt/scripts/feeds update -a && ./openwrt/scripts/feeds install -a

# Configure the firmware image and the kernel
make menuconfig
make kernel_menuconfig

# Build the firmware image
make -j $(nproc) defconfig download clean world

Have you tested any builds yet?

I don't tried my build glinet_gl-ax1800-r4078.tar https://files.sberdisk.ru/s/Bmsg2bWBxAxNgor

CONFIG_TARGET_ipq60xx=y
CONFIG_TARGET_ipq60xx_generic=y
CONFIG_TARGET_ipq60xx_generic_DEVICE_glinet_gl-ax1800=y
CONFIG_BATMAN_ADV_BATMAN_V=y
CONFIG_BATMAN_ADV_BLA=y
CONFIG_BATMAN_ADV_DAT=y
CONFIG_BATMAN_ADV_MCAST=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_OPENSSL=y
CONFIG_LIBCURL_PROXY=y
CONFIG_LIBMBEDTLS_HAVE_ARMV8CE_AES=y
CONFIG_LUCI_LANG_en=y
CONFIG_LUCI_LANG_ru=y
CONFIG_PACKAGE_6in4=y
CONFIG_PACKAGE_6rd=y
CONFIG_PACKAGE_6to4=y
CONFIG_PACKAGE_batctl-default=y
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_dawn=y
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
CONFIG_PACKAGE_frpc=y
CONFIG_PACKAGE_frps=y
CONFIG_PACKAGE_hostapd-common=y
CONFIG_PACKAGE_ip6tables=y
CONFIG_PACKAGE_ipt2socks=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_iptables-mod-iprange=y
CONFIG_PACKAGE_iputils-arping=y
CONFIG_PACKAGE_ipv6helper=y
CONFIG_PACKAGE_iw=y
CONFIG_PACKAGE_iwinfo=y
CONFIG_PACKAGE_jq=y
CONFIG_PACKAGE_kmod-batman-adv=y
CONFIG_PACKAGE_kmod-cfg80211=y
CONFIG_PACKAGE_kmod-crypto-crc32c=y
CONFIG_PACKAGE_kmod-crypto-kpp=y
CONFIG_PACKAGE_kmod-crypto-lib-blake2s=y
CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y
CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y
CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y
CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y
CONFIG_PACKAGE_kmod-gre=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ip6tables=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-ipt-iprange=y
CONFIG_PACKAGE_kmod-ipt-nat6=y
CONFIG_PACKAGE_kmod-ipt-offload=y
CONFIG_PACKAGE_kmod-iptunnel=y
CONFIG_PACKAGE_kmod-iptunnel4=y
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-lib-crc32c=y
CONFIG_PACKAGE_kmod-nf-flow=y
CONFIG_PACKAGE_kmod-nf-ipt6=y
CONFIG_PACKAGE_kmod-nf-nat6=y
CONFIG_PACKAGE_kmod-nf-reject6=y
CONFIG_PACKAGE_kmod-sched-cake=y
CONFIG_PACKAGE_kmod-sched-connmark=y
CONFIG_PACKAGE_kmod-sched-core=y
CONFIG_PACKAGE_kmod-sit=y
CONFIG_PACKAGE_kmod-tun=y
CONFIG_PACKAGE_kmod-udptunnel4=y
CONFIG_PACKAGE_kmod-udptunnel6=y
CONFIG_PACKAGE_kmod-wireguard=y
CONFIG_PACKAGE_kmod-zram=y
CONFIG_PACKAGE_libatomic=y
CONFIG_PACKAGE_libcap=y
CONFIG_PACKAGE_libcurl=y
CONFIG_PACKAGE_libgcrypt=y
CONFIG_PACKAGE_libgpg-error=y
CONFIG_PACKAGE_libltdl=y
CONFIG_PACKAGE_liblua5.3=y
CONFIG_PACKAGE_libmbedtls=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libreadline=y
CONFIG_PACKAGE_libstdcpp=y
CONFIG_PACKAGE_libuv=y
CONFIG_PACKAGE_libwebsockets-full=y
CONFIG_PACKAGE_libzstd=y
CONFIG_PACKAGE_luci-app-easymesh=y
CONFIG_PACKAGE_luci-app-frpc=y
CONFIG_PACKAGE_luci-app-frps=y
CONFIG_PACKAGE_luci-app-guest-wifi=y
CONFIG_PACKAGE_luci-app-mwan3=y
CONFIG_PACKAGE_luci-app-mwan3helper=y
CONFIG_PACKAGE_luci-app-n2n_v2=y
CONFIG_PACKAGE_luci-app-netdata=y
CONFIG_PACKAGE_luci-app-nps=y
CONFIG_PACKAGE_luci-app-pppoe-relay=y
CONFIG_PACKAGE_luci-app-pptp-server=y
CONFIG_PACKAGE_luci-app-pushbot=y
CONFIG_PACKAGE_luci-app-syncdial=y
CONFIG_PACKAGE_luci-app-ttyd=y
CONFIG_PACKAGE_luci-app-uugamebooster=y
CONFIG_PACKAGE_luci-i18n-base-en=y
CONFIG_PACKAGE_luci-i18n-base-ru=y
CONFIG_PACKAGE_luci-i18n-ddns-en=y
CONFIG_PACKAGE_luci-i18n-ddns-ru=y
CONFIG_PACKAGE_luci-i18n-easymesh-zh-cn=y
CONFIG_PACKAGE_luci-i18n-firewall-en=y
CONFIG_PACKAGE_luci-i18n-firewall-ru=y
CONFIG_PACKAGE_luci-i18n-frpc-zh-cn=y
CONFIG_PACKAGE_luci-i18n-frps-zh-cn=y
CONFIG_PACKAGE_luci-i18n-guest-wifi-zh-cn=y
CONFIG_PACKAGE_luci-i18n-mwan3-ru=y
CONFIG_PACKAGE_luci-i18n-mwan3-zh-cn=y
CONFIG_PACKAGE_luci-i18n-mwan3helper-zh-cn=y
CONFIG_PACKAGE_luci-i18n-n2n_v2-zh-cn=y
CONFIG_PACKAGE_luci-i18n-netdata-zh-cn=y
CONFIG_PACKAGE_luci-i18n-nlbwmon-ru=y
CONFIG_PACKAGE_luci-i18n-nps-zh-cn=y
CONFIG_PACKAGE_luci-i18n-pppoe-relay-zh-cn=y
CONFIG_PACKAGE_luci-i18n-pptp-server-zh-cn=y
CONFIG_PACKAGE_luci-i18n-ttyd-zh-cn=y
CONFIG_PACKAGE_luci-i18n-upnp-en=y
CONFIG_PACKAGE_luci-i18n-upnp-ru=y
CONFIG_PACKAGE_luci-i18n-uugamebooster-zh-cn=y
CONFIG_PACKAGE_luci-i18n-wol-en=y
CONFIG_PACKAGE_luci-i18n-wol-ru=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_mwan3=y
CONFIG_PACKAGE_n2n-edge=y
CONFIG_PACKAGE_n2n-supernode=y
CONFIG_PACKAGE_netdata=y
CONFIG_PACKAGE_npc=y
CONFIG_PACKAGE_odhcp6c=y
CONFIG_PACKAGE_odhcp6c_ext_cer_id=0
CONFIG_PACKAGE_odhcpd-ipv6only=y
CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0
CONFIG_PACKAGE_pptpd=y
CONFIG_PACKAGE_qos-scripts=y
CONFIG_PACKAGE_resolveip=y
CONFIG_PACKAGE_rp-pppoe-common=y
CONFIG_PACKAGE_rp-pppoe-relay=y
CONFIG_PACKAGE_tc-mod-iptables=y
CONFIG_PACKAGE_tc-tiny=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_ttyd=y
CONFIG_PACKAGE_umdns=y
CONFIG_PACKAGE_uugamebooster=y
CONFIG_PACKAGE_wireguard-tools=y
CONFIG_PACKAGE_wireless-regdb=y
CONFIG_PACKAGE_wpad-openssl=y
CONFIG_PACKAGE_zram-swap=y
CONFIG_WPA_MSG_MIN_PRIORITY=3
CONFIG_ZSTD_OPTIMIZE_O3=y

I am not able to flash it via
sysupgrade -F -v -n /tmp/openwrt-ipq60xx-generic-glinet_gl-ax1800-squashfs-nand-sysupgrade.bin
Any suggestions are welcome.

root@XiaoQiang:~# nvram set CountryCode=UA
root@XiaoQiang:~# nvram commit
root@XiaoQiang:~# cd /tmp
root@XiaoQiang:/tmp# chmod 755 xqflash
root@XiaoQiang:/tmp# ./xqflash openwrt-ipq60xx-generic-glinet_gl-ax1800-squashfs-nand-factory.ubi
flashing openwrt-ipq60xx-generic-glinet_gl-ax1800-squashfs-nand-factory.ubi onto /dev/mtd19...
ubiformat: mtd19 (nand), size 37748736 bytes (36.0 MiB), 288 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 287 -- 100 % complete
ubiformat: 288 eraseblocks have valid erase counter, mean value is 1
ubiformat: flashing eraseblock 205 -- 100 % complete
ubiformat: formatting eraseblock 287 -- 100 % complete
setting nvram variables...

Your root password after
factory reset: 76c7fed5

Done. You may reboot now.
root@XiaoQiang:/tmp# reboot

No effect after reboot.

Follow these instructions changing firmware file name and mtd partitions if needed.

hey, is the root access local ? can't be access from outside the network, right?