Skip to content

Commit 4e6d9bc

Browse files
qualcommax: ipq50xx: Add support for Xiaomi AX6000
Add support for Xiaomi AX6000. Speficiations: * SoC: Qualcomm IPQ5018 (64-bit dual-core ARM Cortex-A53 @ 1.0Ghz) * Memory: 512 MiB DDR3-933 * Serial Port: 3v3 TTL 115200n8 * Wi-Fi: IPQ5018 (2x2 2.4 Ghz 802.11b/g/n/ax - up to 574 Mbps) * QCN9024 (4x4:4 5 Ghz 802.11an/ac/ax - up to 4804 Mbps) * Ethernet: IPQ5018 integrated virtual switch connected to: - an external QCA8337 switch (3 LAN Ports 10/100/1000) - QCA8081 Phy WAN port (10/100/1000/2500) * Flash: Gigadevice GD5F1GQ4RE9IGD (128 MiB) * LEDs: 1x SYSTEM indicator 1x INTERNET indicator 4x network port 1x AIoT status * Buttons: 1x WPS (GPIO 38 Active Low) Flash instructions: Installation is done by the ubiformat method, through SSH: 1. Open an SSH shell to the router 2. Copy the file openwrt-qualcommax-ipq50xx-xiaomi_ax6000-initramfs-factory.ubi to the /tmp directory 3. Check which rootfs partition is your router booted in (0 = rootfs | 1 = rootfs_1): nvram get flag_boot_rootfs 4. Find the rootfs and rootfs_1 mtd indexes respectively: cat /proc/mtd Please confirm if mtd18 and mtd19 are the correct indexes from above! 5. Use the command ubiformat to flash the opposite mtd with UBI image: If nvram get flag_boot_rootfs returned 0: ubiformat /dev/mtd19 -y -f /tmp/openwrt-qualcommax-ipq50xx-xiaomi_ax6000-initramfs-factory.ubi && nvram set flag_boot_rootfs=1 && nvram set flag_last_success=1 && nvram commit otherwise: ubiformat /dev/mtd18 -y -f /tmp/openwrt-qualcommax-ipq50xx-xiaomi_ax6000-initramfs-factory.ubi && nvram set flag_boot_rootfs=0 && nvram set flag_last_success=0 && nvram commit 6. Reboot the device by: reboot Previous commands flashed a ubinized OpenWrt initramfs that will serve as the intermediate step since OpenWrt uses unified rootfs in order to fully utilize NAND and provide enough space for packages. Continue in order to pernamently flash OpenWrt: 7. SSH into OpenWrt from one of the LAN ports 8. Copy the file openwrt-qualcommax-ipq50xx-xiaomi_ax6000-squashfs-sysupgrade.bin to the /tmp directory 9. Sysupgrade the device: sysupgrade -n /tmp/openwrt-qualcommax-ipq50xx-xiaomi_ax6000-squashfs-sysupgrade.bin Device will reboot with OpenWrt, and then sysupgrade can be used to upgrade the device when desired. Signed-off-by: George Moussalem <george.moussalem@outlook.com>
1 parent 9a51d28 commit 4e6d9bc

File tree

9 files changed

+760
-1
lines changed

9 files changed

+760
-1
lines changed

package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq50xx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ touch /etc/config/ubootenv
77

88
board=$(board_name)
99

10+
ubootenv_add_mtd() {
11+
local idx="$(find_mtd_index "${1}")"
12+
[ -n "$idx" ] && \
13+
ubootenv_add_uci_config "/dev/mtd$idx" "${2}" "${3}" "${4}"
14+
}
15+
16+
ubootenv_add_sys_mtd() {
17+
local idx="$(find_mtd_index "${1}")"
18+
[ -n "$idx" ] && \
19+
ubootenv_add_uci_sys_config "/dev/mtd$idx" "${2}" "${3}" "${4}"
20+
}
21+
1022
case "$board" in
1123
linksys,mr5500|\
1224
linksys,mx2000|\
@@ -16,6 +28,10 @@ linksys,spnmx56)
1628
[ -n "$idx" ] && \
1729
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000"
1830
;;
31+
xiaomi,ax6000)
32+
ubootenv_add_mtd "0:APPSBLENV" "0x0" "0x10000" "0x20000"
33+
ubootenv_add_sys_mtd "bdata" "0x0" "0x10000" "0x20000"
34+
;;
1935
esac
2036

2137
config_load ubootenv

package/firmware/ipq-wifi/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ ALLWIFIBOARDS:= \
6868
tplink_eap660hd-v1 \
6969
wallys_dr40x9 \
7070
xiaomi_ax3600 \
71+
xiaomi_ax6000 \
7172
xiaomi_ax9000 \
7273
yyets_le1 \
7374
yuncore_ax880 \
@@ -213,6 +214,7 @@ $(eval $(call generate-ipq-wifi-package,tplink_eap620hd-v1,TP-Link EAP620 HD v1)
213214
$(eval $(call generate-ipq-wifi-package,tplink_eap660hd-v1,TP-Link EAP660 HD v1))
214215
$(eval $(call generate-ipq-wifi-package,wallys_dr40x9,Wallys DR40X9))
215216
$(eval $(call generate-ipq-wifi-package,xiaomi_ax3600,Xiaomi AX3600))
217+
$(eval $(call generate-ipq-wifi-package,xiaomi_ax6000,Xiaomi AX6000))
216218
$(eval $(call generate-ipq-wifi-package,xiaomi_ax9000,Xiaomi AX9000))
217219
$(eval $(call generate-ipq-wifi-package,yyets_le1,YYeTs LE1))
218220
$(eval $(call generate-ipq-wifi-package,yuncore_ax880,Yuncore AX880))
128 KB
Binary file not shown.
128 KB
Binary file not shown.

0 commit comments

Comments
 (0)