Adding OpenWrt support for Xiaomi AX3600 (Part 1)

Ok I install version :slight_smile: [Updated prebuilt images 2023-01-14-1709 (https://github.com/robimarko/openwrt/releases/tag/ipq807x-2023-01-14-1709)"
and then install : but while installing : [kmod-tun_5.15.87-1_aarch64_cortex-a53.ipk]
I get error :

Executing package manager

Unknown package 'kmod-tun'.

Errors

Collected errors: * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.87-1-f04b5fefbf8ae2bc50f5a430be3a3372) for kmod-tun * pkg_hash_fetch_best_installation_candidate: Packages for kmod-tun found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package kmod-tun.

The opkg install command failed with code 255. "

How to fix it ?

Can you just post the whole error log with code block quotes so the forum doesn't break the formatting?
I checked and kmod-tun was pushed yesterday as part of the build

Sorry to ask again from someone with this kind of problem. This happens too often so it shuts down the internet.
What changes should be made to correct this problem?

Sun Jan 15 18:59:51 2023 daemon.notice netifd: wan (8299): udhcpc: broadcasting select for 109.11.195.186, server 84.XX.XX.XX
Sun Jan 15 18:59:51 2023 daemon.notice netifd: wan (8299): udhcpc: lease of 109.11.195.186 obtained from 84.XX.XX.XX, lease time 300
Sun Jan 15 18:59:51 2023 daemon.notice netifd: Interface 'wan' is now up
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using nameserver 109.XX.XX.XX#53
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using nameserver 109.XX.XX.XX#53
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Jan 15 18:59:51 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Jan 15 18:59:51 2023 user.notice firewall: Reloading firewall due to ifup of wan (wan)

" Executing package manager

Unknown package 'kmod-tun'.

Errors

Collected errors:

  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.87-1-f04b5fefbf8ae2bc50f5a430be3a3372) for kmod-tun
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-tun found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-tun.

The opkg install command failed with code 255."

I am not sure if now it is ok.

This error is when I try to install downloaded "kmod-tun_5.15.87-1_aarch64_cortex-a53.ipk".

If try to install : openvpn-openssl I get information that kmod-tun is not in repository as below :

" Details for package openvpn-openssl

  • Version: 2.5.8-1
  • Size: ~225.55 KiB installed
  • Dependencies:
    • kmod-tun NOT AVAILABLE
    • liblzo2 (37.48 KiB) NOT INSTALLED
    • libopenssl1.1 INSTALLED
Description

Open source VPN solution using OpenSSL

  • Required dependency package kmod-tun is not available in any repository."

Came back home after 6 hours and found that my Redmi AX6 WIFI is not broadcasting APs. Logged in Luci through ISP router and got below logs. Using latest release from Robimarko github.

[43017.406057] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:

[43017.406057] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1

[43017.406057] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q

[43017.406057]

[43017.406057] NOC_error.c:474 NOCError: FATAL ERRORparam0 :zero, param1 :zero, param2 :zero.

[43017.406057] Thread ID : 0x0000006f Thread name : ABTIST182 Process ID : 0

[43017.406057] Register:

[43017.406057] SP : 0x4b5901e8

[43017.406057] FP : 0x4b5901f0

[43017.406057] PC : 0x4b195a10

[43017.406057] SSR : 0x00000008

[43017.406057] BADVA : 0x00020000

[43017.406057] LR : 0x4b1951ac

[43017.406057]

[43017.406057] Stack Dump

[43017.406057] from : 0x4b5901e8

[43017.406057] to : 0x4b5902c0

[43017.406057]

[43017.453100] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error

[43017.475687] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss

[43017.483725] remoteproc remoteproc0: recovering cd00000.q6v5_wcss

[43017.516381] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss

[43018.049789] ath11k c000000.wifi: failed to send WMI_PDEV_BSS_CHAN_INFO_REQUEST cmd

[43018.049839] ath11k c000000.wifi: failed to send pdev bss chan info request

[43018.056515] ath11k c000000.wifi: failed to send WMI_PDEV_SET_PARAM cmd

[43018.063163] ath11k c000000.wifi: Failed to set beacon mode for VDEV: 1

[43018.069666] ath11k c000000.wifi: failed to send WMI_BCN_TMPL_CMDID

[43018.076143] ath11k c000000.wifi: failed to submit beacon template command: -108

[43018.082329] ath11k c000000.wifi: failed to update bcn template: -108

[43018.089531] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID

[43018.096112] ath11k c000000.wifi: Failed to set dtim period for VDEV 1: -108

[43018.103044] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID

[43018.182016] phy0-ap0: HW problem - can not stop rx aggregation for 36:xx:84:73:xx:a7 tid 0

[43018.182068] phy0-ap0: HW problem - can not stop rx aggregation for 36:xx:84:73:xx:a7 tid 4

[43018.189218] phy0-ap0: HW problem - can not stop rx aggregation for 36:xx:84:73:xx:a7 tid 7

Reboot actually fixed the problem.

Finally I reconnected the operator box the vendor had changed. The one I used was the backup vendor. To follow connect for 20min before connecting change at the same time as the expiration every 5 min

What does cat /etc/openwrt_version return?

@robimarko, with the most recent update which I believe reworked the DPs, I'm seeing the following error(s) in the log on AX3600.

Sun Jan 15 16:14:17 2023 kern.err kernel: [    0.017622] OF: /opp-table: could not get #nvmem-cell-cells for /soc/efuse@a4000/speedbin@125
Sun Jan 15 16:14:17 2023 kern.err kernel: [    0.019820] OF: /soc/pci@20000000/bridge@0,0/wifi@1,0: could not get #nvmem-cell-cells for /soc/nand-controller@79b0000/nand@0/partitions/partition@800000/caldata@4d000
Sun Jan 15 16:14:17 2023 kern.err kernel: [    0.022450] OF: /soc/dp2: could not get #nvmem-cell-cells for /soc/nand-controller@79b0000/nand@0/partitions/partition@800000/macaddr@6
Sun Jan 15 16:14:17 2023 kern.err kernel: [    0.022512] OF: /soc/dp3: could not get #nvmem-cell-cells for /soc/nand-controller@79b0000/nand@0/partitions/partition@800000/macaddr@c
Sun Jan 15 16:14:17 2023 kern.err kernel: [    0.022573] OF: /soc/dp4: could not get #nvmem-cell-cells for /soc/nand-controller@79b0000/nand@0/partitions/partition@800000/macaddr@12
Sun Jan 15 16:14:17 2023 kern.err kernel: [    0.022633] OF: /soc/dp5: could not get #nvmem-cell-cells for /soc/nand-controller@79b0000/nand@0/partitions/partition@800000/macaddr@18

Is this expected?

Its a false warning from NVMEM as we are now using NVMEM for MAC-s on the board I have, there is a patch upstream to get rid of the warning but I need to backport it to OpenWrt, until then feel free to ignore it.

2 Likes

BusyBox v1.36.0 (2023-01-10 19:59:21 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0-8faba05
 -----------------------------------------------------
root@OpenWrt:~# cat /etc/openwrt_version

r0-8faba05

This version is from 2023-01-05. Is not the latest one. Are you stopping wpad service before upgrading?

No I install it normalny, today I will try to update with stopped wpad service.

Thanks for help.

And the target was just merged into OpenWrt couple of minutes ago.

43 Likes

Wow! Congrats Robi!!!

Thank you all! Nice to see a new target in OpenWrt.

many congrats everyone and in particular @robimarko and @Ansuel .... what's next ?

1 Like

I will try to update all the wiki information, now that is officially supported :slight_smile:

5 Likes

OpenWrt builder target needs to get added, etc.

Then its probably gonna be looking into wired ethernet performance and possibility of using the NSS FW to accelerate stuff.

14 Likes

Have fun with the report