Adding OpenWrt support for Xiaomi AX3600 (Part 1)

Thank you so much guys for clarifying things out for me

2 Likes

Being built as we speak.

MOD:

This is with FW to 01201 already:

MOD2: dont you wan to update NSS to the one minor version newer? Likely bugfixes only. Using it for a couple weeks now, no problems with it.

Do you mean the NSS FW from TIP?

Yep. Only one minor version newer.

Is it publicly available?

@robimarko sorry to bother but there is an issue...
When building a firmware with the 1gb version of the patch the device bootloops, am I doing something wrong or might there be a bug?

Yep, it is available here: link

Dont get mislead by the Readme. This is newer then ours by one minor version.

For which device?
Because if you are trying to use 1GB profile on a device that has the 512MB reserved memory profile it will most likely bootloop as it doesn't have enough reserved memory for Q6.

@dchard I am really not keen on pulling it from anywhere outside of QCA repos.
I doubt there is something significant, the latest 11.4 NSS FW is 5 revisions newer than the current one anyway.
11.5 NSS should arrive soon probably

No problem. I am using the TIP one without any issues non the less :slight_smile: I have a feeling that the L2/VLAN issues others experienced are more driver than FW issues anyway.

Yeah, there shouldn't be any issues as it should be compatible with all of the 11.4 releases anyway.
L2 issues will be driver related for sure, NSS FW doesn't deal with that

Lets say this last pull goes well. Would you consider pulling NSS/DP/ECM related "crap" ? :slight_smile:

MOD: just realized we discussed this already --> we need NSS 11.5 to have a meaningful effect... I had a couple beers, sorry for my foggy memory :smiley:

Ah, I see, I wanted to try the 1gb on my ax3600 to see what was the reaction compared to before (in the reboot branch), nevermind then.
While I got the attention, when in failsafe mode no ethernet ports have connectivity to the router, can something be done to fix this? This mode is extremely helpful.

While I'm here @ajw107 I have read your suggestions for the wiki and I will do them as soon as I have time (and patience) :smiley:

Hmm, I can't say I tried failsafe before.
Its gotta be something with the preinit scripts then, will give it a look tomorrow.

Yeah, you cant use 1GB profile on the AX3600 by default as it pulls in the 512MB reserved memory layout in the DTS.

1 Like

The initial test shows now major issues. Wifi works, PPPoE offload works, no errors or warning in kernel log. I can test AX tomorrow, AC works as it did before.

3 Likes

Thanks for the attention! It's a great feature :smiley:

I see. As soon as I get this working again I'll give some feedback.

Now for everyone, I found a way to recover the router with tftpd64 instead of the xiaomi tool, as soon as I can I'll update the wiki. The better thing would be to flash openwrt through tftp :wink:

6 Likes

I saw no issues with WIFI initially with AX until I got the "no internet access" over wifi on the smartphone now.

I've reset the router config so I guess we still need option he_bss_color '8' in the config manually, I've just added that and hopefully it will remain working as it was before (its been solid for at least 30 mins)

However, still have major issues with ethernet though, some devices get DHCP but they have issues accessing internet.... Xbox remains the most troublesome, can't download or udpate any game or app without it stopping, on a laptop at one point I didn't even have internet access.... not even https://1.1.1.1 but wifi works fine

% curl https://1.1.1.1
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 1.1.1.1:443

I see ^ this in one of the host connected via Ethernet, is this releated to the VLAN issues folks mentioned?

I do need "vlan 100" for wan but only eth0 is tagged the lan bridge ports are just using the default config.

2 Likes

Ok replying to myself I guess I didn't search properly before:

This sue seems related to VLAN on eth0....

In stock firmware mtu had to be lowered but I tried that and still see the same behaviour

3 Likes

@dchard new testing firmware released, nothing interesting in the changelog.

WLAN.HK.2.6.0.1.r7-00002-QCAHKSWPL_SILICONZ-1

Yeah, I have seen it. Anyone can copy it to the device and start testing, personally I am interested in the stable versions. Once the first stable version is out of 2.6, I will take a look.

1 Like

Probably the best idea.

On latest backport branch the ath11k firmware testing releases, 2.6.0.1.r7 and previous working 2.6.0.1.r6, both crash.

Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.6.0.1.r7-00002-QCAHKSWPL_SILICONZ-1
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920]
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920]     :Excep  :0 Exception detectedparam0 :zero, param1 :zero, param2 :zero.
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] Thread ID      : 0x00000060  Thread name    : WLAN RT1  Process ID     : 0
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] Register:
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] SP : 0x4bfc7698
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] FP : 0x4bfc76b0
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] PC : 0x4b1b07b0
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] SSR : 0x00000001
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] BADVA : 0x009c9d7e
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] LR : 0x4b1b0730
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920]
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] Stack Dump
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] from : 0x4bfc7698
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920] to   : 0x4bfc7cd0
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.135920]
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.183041] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.205069] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
Thu Dec 16 09:44:55 2021 kern.err kernel: [   15.213080] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
Thu Dec 16 09:44:55 2021 kern.info kernel: [   15.246084] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss
Thu Dec 16 10:35:17 2021 kern.warn kernel: [   18.140747] ath11k c000000.wifi: failed to find peer 9c:9d:7e:75:26:da on vdev 1 after creation
Thu Dec 16 10:35:17 2021 kern.warn kernel: [   18.140796] ath11k c000000.wifi: failed to send WMI_PEER_DELETE cmd
Thu Dec 16 10:35:17 2021 kern.warn kernel: [   18.148357] ath11k c000000.wifi: failed to delete peer vdev_id 1 addr 9c:9d:7e:75:26:da
Thu Dec 16 10:35:17 2021 kern.warn kernel: [   18.154521] ath11k c000000.wifi: failed to vdev 1 create peer for AP: -108
Thu Dec 16 10:35:17 2021 kern.warn kernel: [   18.162587] ath11k c000000.wifi: failed to submit WMI_VDEV_DELETE_CMDID
Thu Dec 16 10:35:17 2021 kern.err kernel: [   18.169499] ath11k c000000.wifi: failed to clear rx_filter for monitor status ring: (-108)

bdf from the ax3600 is old and missing some newer needed features?

Latest stable 2.5.0.1-01201 is fine.