Qualcommax NSS Build

New version

  • Fix 160MHz (Robimarco)
2 Likes

Hi, my compilation from @bitthief's repo ends with errors:

make[3]: Leaving directory '/home/patrik/Documents/AX6/NSS_02/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#119.67#11.50#92.90
make[2]: Leaving directory '/home/patrik/Documents/AX6/NSS_02/openwrt'
make[1]: *** [package/Makefile:110: /home/patrik/Documents/AX6/NSS_02/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/patrik/Documents/AX6/NSS_02/openwrt'
make: *** [/home/patrik/Documents/AX6/NSS_02/openwrt/include/toplevel.mk:231: world] Error 2

Does anyone know what could be the problem? Or does anyone have a compiled AX6 firmware with the nss and ath11k patch for 160MHz?

Thanks

@KingCZE You can use dimfish's fork.

those errors don't actually explain anything ... the true error will be before ... maybe look at the logs when the mac80211 compile starts ... you will see that patch applied or not (maybe the error is due to this patch)

dimfish builds versions from time to time, if you want you can grab it here: https://openwrt.admincomps.ru/nss/

1 Like

Thanks a lot, yeah, I tried to figure out from the whole log with GPT-4 (quite an amazing tool when used for "auditing" and coding!), but I was just getting deeper and deeper into the errors instead of really solving it.

Anyway, thanks!

In the end, I think I will not be able to use AX6 for my purpose anyway (wlan relay). AX6 simply does not connect to the AP. I suppose it is the unresolved issue with the kernel version when AX6 is not compatible with the new kernel (or ath11k or regulations).

Well, still not able to use the 5G radio in a client mode, only the 2.4G one.

When I try to ping the main router, I mostly get 5/5 packets lost, sometimes 30% lost, other times something like this:

PING 192.168.15.1 (192.168.15.1): 56 data bytes
64 bytes from 192.168.15.1: seq=0 ttl=128 time=3956.082 ms
64 bytes from 192.168.15.1: seq=1 ttl=128 time=2955.888 ms
64 bytes from 192.168.15.1: seq=2 ttl=128 time=1955.677 ms
64 bytes from 192.168.15.1: seq=3 ttl=128 time=955.884 ms
64 bytes from 192.168.15.1: seq=4 ttl=128 time=14.558 ms

--- 192.168.15.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 14.558/1967.617/3956.082 ms

When I have a main OpenWrt router and my AX6 is connected to the main one via client mode. It seems connected, the secondary router shows connection with

Signal / Noise 
-78/-108 dBm 

Tx / Rx Rate 
48.0 Mbit/s, 20 MHz / 2594.2 Mbit/s, 160 MHz, HE-MCS 6, HE-NSS 4

Which is already suspicious (why is Tx not on 160 MHz (HE160) as well?).

The main router shows this at AX6

Signal / Noise 
-78/-92 dBm 

Tx / Rx Rate 
6.0 Mbit/s, 20 MHz / 6.0 Mbit/s, 20 MHz

There is something really weird with the 5GHz radio on the AX6 (btw, it is OpenWrt - stock fw works alright)

Even when I scan channels, I get this on the main router:

and this on the Redmi AX6

If HE160 worked again after the patch, I would expect it to show the whole width on the scan like the main router did. Or am I missing something?

Not sure why, but I'm experiencing lots of partial transfers for SSL connections after flashing the 20230329 @dimfish build. Is anyone experiencing something similar?

Hello,
I have a AX3600 and want to try NSS.
I Download latest Image from https://openwrt.admincomps.ru/nss/20230329/ after Upgrade and reboot a see some Kernel modules loaded:

root@ap1:/#  lsmod|grep qdisc
qca_nss_drv          1056768 14 ecm,qca_nss_tunipip6,qca_nss_tun6rd,qca_nss_crypto,qca_nss_qdisc,qca_nss_vxlanmgr,qca_nss_pptp,qca_nss_pppoe,qca_nss_map_t,qca_n
ss_lag_mgr,qca_nss_l2tpv2,qca_nss_gre,qca_nss_bridge_mgr,qca_nss_vlan
qca_nss_qdisc          94208  0 
qca_ssdk             1720320  5 qca_nss_qdisc,qca_nss_bridge_mgr,qca_nss_vlan,qca_nss_drv,qca_nss_dp
root@ap1:/# 

The nss cores seem's to bee boot:

root@ap1:~# dmesg | grep nss
[    4.609407] nss-dp 3a001200.dp2 wan: Registered netdev wan(qcom-id:2)
[    4.625342] nss-dp 3a001400.dp3 lan1: Registered netdev lan1(qcom-id:3)
[    4.641291] nss-dp 3a001600.dp4 lan2: Registered netdev lan2(qcom-id:4)
[    4.657422] nss-dp 3a001800.dp5 lan3: Registered netdev lan3(qcom-id:5)
[    8.559990] qca-nss 39000000.nss: Direct firmware load for qca-nss0.bin failed with error -2
[    8.560038] qca-nss 39000000.nss: Falling back to sysfs fallback for: qca-nss0.bin
[    8.750814] nss_driver - fw of size 827584  bytes copied to load addr: 40000000, nss_id : 0
[    8.779806] ffffffc000aac7c0: All resources initialized and nss core0 has been brought out of reset
[    8.780982] qca-nss 39400000.nss: Direct firmware load for qca-nss1.bin failed with error -2
[    8.789163] qca-nss 39400000.nss: Falling back to sysfs fallback for: qca-nss1.bin
[    8.820065] ffffffc000aac7c0: nss core 0 booted successfully
[    8.866002] nss_driver - fw of size 295196  bytes copied to load addr: 40800000, nss_id : 1
[    8.890825] ffffffc000ab41c0: All resources initialized and nss core1 has been brought out of reset
[    8.928665] ffffffc000ab41c0: nss core 1 booted successfully
[    8.953567] nss_vlan_mgr_init_module[1926]:Module (Build Build Id: 03/29/23, 10:19:33) loaded
[   15.674265] nss-dp 3a001600.dp4 lan2: PHY Link up speed: 1000
root@ap1:~#

But there is no nssifb device.

root@ap1:~# ip link set up nssifb
ip: SIOCGIFFLAGS: No such device

What's wrong here?
Is nss useable with AX3600?

1 Like

New version

  • Firmware 2.9.0.1!
  • qca-nss-ecm: rework/sync patches

My wifi-lan iperf3 speeds:

[SUM]   0.00-10.00  sec  1.18 GBytes  1.02 Gbits/sec                  sender
[SUM]   0.00-10.00  sec  1012 MBytes   849 Mbits/sec                  receiver

https://openwrt.admincomps.ru/nss/

4 Likes

you need to modprobe the nssifb module first before you you bring the link up

root@ap1:~# modprobe nssifb
failed to find a module named nssifb
root@ap1:~# 

the module name is nss_ifb

It seems that there are no modules named like ifb:

Firmware Version OpenWrt SNAPSHOT r22499-d1997a65fa / LuCI Master git-23.074.82619-6ad6a24
root@ap1:/# uname -a
Linux ap1 5.15.104 #0 SMP PREEMPT Tue Mar 28 17:32:20 2023 aarch64 GNU/Linux
root@ap1:/# find /lib/modules/5.15.104/ -iname '*nss*'
/lib/modules/5.15.104/act_nssmirred.ko
/lib/modules/5.15.104/qca-nss-bridge-mgr.ko
/lib/modules/5.15.104/qca-nss-cfi-cryptoapi.ko
/lib/modules/5.15.104/qca-nss-clmapmgr.ko
/lib/modules/5.15.104/qca-nss-crypto-tool.ko
/lib/modules/5.15.104/qca-nss-crypto.ko
/lib/modules/5.15.104/qca-nss-dp.ko
/lib/modules/5.15.104/qca-nss-drv.ko
/lib/modules/5.15.104/qca-nss-dtlsmgr.ko
/lib/modules/5.15.104/qca-nss-eogremgr.ko
/lib/modules/5.15.104/qca-nss-gre-test.ko
/lib/modules/5.15.104/qca-nss-gre.ko
/lib/modules/5.15.104/qca-nss-l2tpv2.ko
/lib/modules/5.15.104/qca-nss-lag-mgr.ko
/lib/modules/5.15.104/qca-nss-map-t.ko
/lib/modules/5.15.104/qca-nss-match.ko
/lib/modules/5.15.104/qca-nss-netlink.ko
/lib/modules/5.15.104/qca-nss-pppoe.ko
/lib/modules/5.15.104/qca-nss-pptp.ko
/lib/modules/5.15.104/qca-nss-pvxlanmgr.ko
/lib/modules/5.15.104/qca-nss-qdisc.ko
/lib/modules/5.15.104/qca-nss-tlsmgr.ko
/lib/modules/5.15.104/qca-nss-tun6rd.ko
/lib/modules/5.15.104/qca-nss-tunipip6.ko
/lib/modules/5.15.104/qca-nss-vlan.ko
/lib/modules/5.15.104/qca-nss-vxlanmgr.ko
root@ap1:/# 

maybe you need to ask @dimfish to add to his build nssifb and the nss codel/sqm

@basti12203, @rmandrad
Hey guys what's the problem just to install kmod-nss-ifb if u need it??

Same here, doing git clone of big repo or similar long running transfer over HTTPS drops connection now and then. I have 1Gbit optical connection, so this should not be issue.

also i got some issues with ssl connections(cloning repos, fetching files via curl or wget got some troubles)
but problem only appears to me with ethernet connection it works fine with wireless
for example wget or curl can't finish this download link https://downloads.sourceforge.net/lzmautils/xz-5.4.2.tar.bz2

@rmandrad I'm about to move from ax3600 to qnap 301w. I don't know how the components of the 301w are different from the ax3600. Could you please share the config file you used for compiling?

so, there are not many differences

replace CONFIG_TARGET_ipq807x_generic_DEVICE_xiaomi_ax3600=y with CONFIG_TARGET_ipq807x_generic_DEVICE_qnap_301w=y

replace CONFIG_PACKAGE_ipq-wifi-xiaomi_ax3600 with CONFIG_PACKAGE_ipq-wifi-qnap_301w=y

select CONFIG_PACKAGE_kmod-phy-aquantia=y

you don't need ath10k with the qnap (as i remember the ax3600 has it)

2 Likes