OpenWrt support for Xiaomi AX9000

maybe...ask Kalle directly for help?(use qca official tool to convert to compatible version)

For AX9000 UART setting,
is this graph correct?

from left to right
TX GND RX Vcc
if I connect the first pin on the left, the router will not start.
without the first pin on the left connected, the router can start.
Screen Shot 2022-10-31 at 3.17.41 PM

I tried every combination, I still cannot get any response in putty.

uart_en=1 is already set.

and use this usb to ttl adapter.

Have you switched the usb ttl adapter to 1.8 volts?

I'm not sure if that helps.

Had the same problem with several chips. With this it worked:
DSD TECH SH-U09C5 USB zu TTL UART

No, actually Vcc is pin 1.

I have corrected the pinout now:
Screenshot from 2022-11-01 17-03-24

1 Like

on the PCB, the J2 is on the right of PIN 4. so the original diagram to show the pin near J2 label on the PCB is VCC, which is correct. but need to count from RIGHT.
And if left pin 1 is VCC, then this pic on wiki is WRONG, with this connection, the router can not even start.

1 Like

Yeah, I was looking at the header from behind it.

Now, I have just moved the J2 label to next to pin 4.

I finally figured it out.
the diagram and wire is correct on the wiki.

tx gnd rx is correct.
but on the borad, tx and rx are opposit.
USB to TTL

router TTL board

TX ---> RX
RX <--- TX

that means need to connect the RX one on TTL board to TX pin on router motherboard.

1 Like

Hopefully proper fixup for multiple PCI cards or AHB + PCI finally sent upstream.
https://patchwork.kernel.org/project/linux-arm-msm/patch/20221105194943.826847-1-robimarko@gmail.com/
https://patchwork.kernel.org/project/linux-arm-msm/patch/20221105194943.826847-2-robimarko@gmail.com/

11 Likes

Just for a quick recap is there a AX9000 Chinese and EUropean version of hardware?
Are the both CN and EU both versions supported?

PS AHB radio support is not updated in the first post. (just mentioning maybe it is intended to be like that)

Foud teardown video, slightly overdone with ad like vibe.
Démontage / Teardown du Xiaomi Router AX9000 - YouTube

HW should be identical, however EU version had secure boot enabled

1 Like

What does secure boot 'enabled' changes from OpenWrt flashing and usage perspective?

It means that in best case u-boot env needs to be changed and manual bootcmd added instead of using the default QCA one

1 Like

Does anybody have SPI flash dump of the international version? I downloaded AX9000 firmware from here and discovered that the international version has no U-Boot in it.

I also built an 010 Editor template with HDR1/HDR2 support to confirm there is no place for U-Boot to hide.

@robimarko, could you also update the first post please? I think it is outdated due to QCN9024 and regdb changes as well as fan controller driver release.

2 Likes

The low band 5ghz seems to keep disappearing from my wifi. Any idea why? I have it set to channel 36 and after a few minutes it disappearing then I have to reset the radio for it. The upper band works fine and 2.4. I think you posted it was fixed right? Or did I misunderstand lol

Which country you are in?
And what country did you select for your router? Did you configure your router to use 80/80+80/160 MHz channel width?
The issue you described might be caused by 5Ghz radar/DFS

Currently set to 80mhz and on channel 36 in the US which is a non DFS channel. Country is correctly set to US. Seems just be the lower band radio. The upper and 2.4ghz work just fine. Noticed no devices want to even connect to it even when it shows up. Probably something I did wrong somewhere

I had encountered similar PCI 5G wifi issues with latest build (2022-11-05-2125)
The PCI 5G tested with 36 - 64 channel in both 80Mhz and 160Mhz, country was in US, AHB 5G ON or OFF. With WPA3 or no encryption key. AHB 5G and PCI 5G in different SSID.
SSID can be shown up on client devices but none of them can connect with the PCI 5G wifi.
I had tested with 3 different client devices, all resulted the same, none of them can connect with PCI 5G.
The AHB 5G is ok on all test (Channel 149, 80Mhz Country in US).
Seems something wrong with the PCI 5G!
I also tried to switch back to the OEM AX9000 xiaomi factory firmware and confirm the PCI 5G hardware is working just fine with the oem factory firmware.
Below as the log details of the latest build when try to connect the PCI 5G wifi:

With WPA3:

Fri Nov 11 02:24:53 2022 daemon.notice hostapd: phy1-ap0: AP-STA-DISCONNECTED 7e:2b:ea:4e:20:8d
Fri Nov 11 02:24:53 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d IEEE 802.11: disassociated
Fri Nov 11 02:24:54 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Fri Nov 11 02:25:00 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d IEEE 802.11: associated (aid 1)
Fri Nov 11 02:25:00 2022 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED 7e:2b:ea:4e:20:8d auth_alg=sae
Fri Nov 11 02:25:00 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d WPA: pairwise key handshake completed (RSN)
Fri Nov 11 02:25:00 2022 daemon.notice hostapd: phy1-ap0: EAPOL-4WAY-HS-COMPLETED 7e:2b:ea:4e:20:8d

No encryption key:

Fri Nov 11 02:31:50 2022 daemon.notice hostapd: phy1-ap0: AP-STA-DISCONNECTED 7e:2b:ea:4e:20:8d
Fri Nov 11 02:31:50 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d IEEE 802.11: disassociated
Fri Nov 11 02:31:51 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Fri Nov 11 02:31:53 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d IEEE 802.11: associated (aid 1)
Fri Nov 11 02:31:53 2022 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED 7e:2b:ea:4e:20:8d auth_alg=sae
Fri Nov 11 02:31:53 2022 daemon.info hostapd: phy1-ap0: STA 7e:2b:ea:4e:20:8d WPA: pairwise key handshake completed (RSN)
Fri Nov 11 02:31:53 2022 daemon.notice hostapd: phy1-ap0: EAPOL-4WAY-HS-COMPLETED 7e:2b:ea:4e:20:8d

The PCI 5G supposed to be phy3-ap0? Seem every time I try to connect with the PCI 5G the logs show phy1-ap0 activities, was that normal?

1 Like

That's a better description of what I'm facing. It shows up but can't connect. Then it'll disappear and come back over and over.