From 8253cb2de59aff81e576ea2655b1d290e4098001 Mon Sep 17 00:00:00 2001 From: Zhijun You Date: Sat, 1 Jan 2022 23:12:51 +0100 Subject: [PATCH] ipq807x: add Redmi AX6 Redmi AX6 is a budget 802.11ax dual-band router/AP Specifications: * CPU: Qualcomm IPQ8071A Quad core Cortex-A53 1.4GHz * RAM: 512MB of DDR3 * Storage: 128MB NAND * Ethernet: 4x1G RJ45 ports (QCA8075) * WLAN: * 2.4GHz: Qualcomm QCN5024 2x2 802.11b/g/n/ax 574 Mbps PHY rate * 5GHz: Qualcomm QCN5054 4x4@80MHz or 2x2@160MHz 802.11a/b/g/n/ac/ax 2402 PHY rate * LEDs: * System (Blue/Yellow) * Network (Blue/Yellow) *Buttons: 1x soft reset *Power: 12V DC jack Installation instructions: Obtaining SSH access is mandatory https://openwrt.org/inbox/toh/xiaomi/xiaomi_redmi_ax6_ax3000#ssh_access Installation is done by the ubiformat method, through SSH: 1. Open an SSH shell to the router 2. Copy the file openwrt-ipq807x-generic-redmi_ax6-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 mtd12 and mtd13 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/mtd13 -y -f /tmp/openwrt-ipq807x-generic-redmi_ax6-initramfs-factory.ubi && nvram set flag_boot_rootfs=1 && nvram set flag_last_success=1 && nvram commit otherwise: ubiformat /dev/mtd12 -y -f /tmp/openwrt-ipq807x-generic-redmi_ax6-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 an 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-ipq807x-generic-redmi_ax6-squashfs-sysupgrade.bin to the /tmp directory 9. Sysupgrade the device: sysupgrade -n /tmp/openwrt-ipq807x-generic-redmi_ax6-squashfs-sysupgrade.bin Device will reboot with OpenWrt, and then sysupgrade can be used to upgrade the device when desired. Signed-off-by: Zhijun You --- package/boot/uboot-envtools/files/ipq807x | 1 + package/firmware/ipq-wifi/Makefile | 2 + .../firmware/ipq-wifi/board-redmi_ax6.ipq8074 | Bin 0 -> 131172 bytes .../ipq807x/base-files/etc/board.d/01_leds | 1 + .../ipq807x/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath11k-caldata | 1 + .../base-files/lib/upgrade/platform.sh | 2 + .../arch/arm64/boot/dts/qcom/ipq8071-ax6.dts | 46 ++++++++++++++++++ target/linux/ipq807x/image/generic.mk | 8 +++ 9 files changed, 62 insertions(+) create mode 100644 package/firmware/ipq-wifi/board-redmi_ax6.ipq8074 create mode 100644 target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/ipq8071-ax6.dts diff --git a/package/boot/uboot-envtools/files/ipq807x b/package/boot/uboot-envtools/files/ipq807x index bf116d1fca..44f2d8a0c2 100644 --- a/package/boot/uboot-envtools/files/ipq807x +++ b/package/boot/uboot-envtools/files/ipq807x @@ -8,6 +8,7 @@ touch /etc/config/ubootenv board=$(board_name) case "$board" in +redmi,ax6|\ xiaomi,ax3600) idx="$(find_mtd_index 0:appsblenv)" [ -n "$idx" ] && \ diff --git a/package/firmware/ipq-wifi/Makefile b/package/firmware/ipq-wifi/Makefile index 9b490e6f74..1fa7482ddb 100644 --- a/package/firmware/ipq-wifi/Makefile +++ b/package/firmware/ipq-wifi/Makefile @@ -39,6 +39,7 @@ ALLWIFIBOARDS:= \ pakedge_wr-1 \ qxwlan_e2600ac-c1 \ qxwlan_e2600ac-c2 \ + redmi_ax6 \ sony_ncp-hg100-cellular \ teltonika_rutx \ xiaomi_ax3600 \ @@ -129,6 +130,7 @@ $(eval $(call generate-ipq-wifi-package,p2w_r619ac,P&W R619AC)) $(eval $(call generate-ipq-wifi-package,pakedge_wr-1,Pakedge WR-1)) $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac-c1,Qxwlan E2600AC C1)) $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac-c2,Qxwlan E2600AC C2)) +$(eval $(call generate-ipq-wifi-package,redmi_ax6,Redmi AX6)) $(eval $(call generate-ipq-wifi-package,sony_ncp-hg100-cellular,Sony NCP-HG100/Cellular)) $(eval $(call generate-ipq-wifi-package,teltonika_rutx,Teltonika RUTX)) $(eval $(call generate-ipq-wifi-package,xiaomi_ax3600,Xiaomi AX3600)) diff --git a/package/firmware/ipq-wifi/board-redmi_ax6.ipq8074 b/package/firmware/ipq-wifi/board-redmi_ax6.ipq8074 new file mode 100644 index 0000000000000000000000000000000000000000..e56b4d30d3a8969d056ef7eef018af810ee24b8f GIT binary patch literal 131172 zcmeHw33OD~ndV=wo{AF4Qb{UptWv2YgxgMIY!GMxBoGKAgb>;n5CYrS1}wAK*apNR zumFioVu|B84zZIQpPX*T?Ib>ZVw=QSCY@wXPM@Ak;_gl|6Q?^p(=(&#^z?Z8*^yvB>y% z9J7O;B7Dyb;qDgpOfcCqzu7at*)zY{Gr!q0zu7at*)zWb$srDh%Vb1i@KI?JBB06d z4XM}8`Q+jfB;k`MZ*wN#nSzC%zfGl4IQ>T0Kq5|jqDf)R$8eq#1y85Mg+USxmSbMm z<&vX+C4YV6KOOz~%DJ5W!8b%w{Br*aqa$_)FaDx!w?tB!vTUA3LFm4FA7wNalwkv)&U)e_h0T9C);dOvg>FX|r$_>wn#hICSREMCQCN zl5t%m)eEGZv$LCffgZ8|{CA`M(>SKgVyy z{FjKh64Cx&BDa4IDf4g9$NRxPP6jZTQ2-1wY+}GQU=A6?@MsW&Wl>-N85kIR2^e$* z$BzbszYAjUMU2n(CI(4SVqogQsX!kg3R3>u*a zkfU8am`6RP9zc(hj|Ju*y9hFz4Gex4dHj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nr|#Z=q)J@wvhA7HZQ`9+TiN4Aw_`@|h1=c|CsK@^C(Dh1ox(A))0$ zp5#{s3h^&_^cd_7yfOcngeAcmf%zteI#?J(d}88#=6nsj^hDpvKm*p-WyZ{$qCp;b z+*cA{gZ=CAe;VXHdH}C{lgDgOKgr6+h%@=#MS%f{e~joUfAU~~(Skhd7hC$*WqQWE zUkuaLDAl$2z!~xmnI9;`zc92lU4{Q1jZeK6#Pw$si>%ERC6l+-ZYU@n*83FzV54*X!2z7!s)md zP5|z`dEd=@jnAiU{z=&P{lW8Qx%nNab#JitNZZ%6^;~=H&3At=(tbwT{%)JceUM8u zpXX0so5$*~_s8bRJA8L^UB5$VuxO@nKVM|_?Cf0TJGGc4 z9}QlH-l?K0QwS&oCM*K8rE1lLoxGa3LO>y)5Kssx1QY@a0fm4hapb$_9Cy)5Kssx1QY@a0fm4hapb$_9C */ + +/dts-v1/; + +#include "ipq8071-ax3600.dtsi" + +/ { + model = "Redmi AX6"; + compatible = "redmi,ax6", "qcom,ipq8074"; + + leds { + compatible = "gpio-leds"; + + led_system_blue: system-blue { + label = "blue:system"; + gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + }; + + led_system_yellow: system-yellow { + label = "yellow:system"; + gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>; + }; + + network-blue { + label = "blue:network"; + gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>; + }; + + network-yellow { + label = "yellow:network"; + gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +/* AX6 can both have NAND of 256MiB or 128MiB. + * To be on the safe side, assume 128MiB of NAND. + */ +&rootfs { + reg = <0x2dc0000 0x5220000>; +}; + +&wifi { + qcom,ath11k-calibration-variant = "Redmi-AX6"; +}; diff --git a/target/linux/ipq807x/image/generic.mk b/target/linux/ipq807x/image/generic.mk index 11cca54506..7fd0169a64 100644 --- a/target/linux/ipq807x/image/generic.mk +++ b/target/linux/ipq807x/image/generic.mk @@ -17,6 +17,14 @@ define Device/UbiFit IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata endef +define Device/redmi_ax6 + $(call Device/xiaomi_ax3600) + DEVICE_VENDOR := Redmi + DEVICE_MODEL := AX6 + DEVICE_PACKAGES := ipq-wifi-redmi_ax6 +endef +TARGET_DEVICES += redmi_ax6 + define Device/xiaomi_ax3600 $(call Device/FitImage) $(call Device/UbiFit) -- 2.30.2