bgcngm
October 30, 2025, 9:29pm
5319
@qosmio can you tell if it’s worth to use NSS FW 12.x instead of 11.4 if mesh is not needed and disabled in my builds?
qosmio:
My ugly hack:
--- /rom/www/luci-static/resources/view/status/include/10_system.js 2024-02-27 17:00:31.000000000 -0500
+++ /www/luci-static/resources/view/status/include/10_system.js 2024-02-28 02:14:33.000000000 -0500
@@ -25,14 +25,16 @@
return Promise.all([
L.resolveDefault(callSystemBoard(), {}),
L.resolveDefault(callSystemInfo(), {}),
- L.resolveDefault(callLuciVersion(), { revision: _('unknown version'), branch: 'LuCI' })
+ L.resolveDefault(callLuciVersion(), { revision: _('unknown version'), branch: 'LuCI' }),
+ fs.exec_direct('awk',[ '/%/{printf "Avg: %s Max: %s",$2,$3}', '/sys/kernel/debug/qca-nss-drv/stats/cpu_load_ubi'])
]);
},
render: function(data) {
var boardinfo = data[0],
systeminfo = data[1],
- luciversion = data[2];
+ luciversion = data[2],
+ nssinfo = data[3];
luciversion = luciversion.branch + ' ' + luciversion.revision;
@@ -64,7 +66,8 @@
systeminfo.load[0] / 65535.0,
systeminfo.load[1] / 65535.0,
systeminfo.load[2] / 65535.0
- ) : null
+ ) : null,
+ _('NSS Load'), nssinfo
];
var table = E('table', { 'class': 'table' });
--- /rom/usr/share/rpcd/acl.d/luci-mod-status.json 2024-02-27 17:00:31.000000000 -0500
+++ /usr/share/rpcd/acl.d/luci-mod-status.json 2024-02-28 02:07:55.000000000 -0500
@@ -31,6 +31,7 @@
"read": {
"cgi-io": [ "exec" ],
"file": {
+ "/usr/bin/awk": [ "exec" ],
"/bin/dmesg -r": [ "exec" ],
"/sbin/logread": [ "stat" ],
"/sbin/logread -e ^": [ "exec" ],
@qosmio Hi.
If you have spare time to look at these, for another "pretty" hack. The files have changed and this no longer works.
Thanks for your awesome work!
3 Likes
wolfxr
October 31, 2025, 8:31am
5322
Can you guys confirm that ipv6 is working in main-nss?
joq3
November 3, 2025, 7:43am
5324
I’m running a NSS regular build from @AgustinLorenzo from a while back.
This is the version: LuCI Master (25.009.47396~b0f8155) / OpenWrt SNAPSHOT (r0-a279290) Kernel Version 6.6.69
Maybe the build is 6-8 months old or something. I really want to update to maybe fix some wifi issues I have with devices disconnecting and never connecting again until a Router-reboot.
Is it safe to update from this version to this: https://github.com/AgustinLorenzo/openwrt/releases/tag/ipq807x-nsswifi-2025-10-12-1405
Also I don’t remember if I have single boot or not.
Is it possible to make a complete backup of the router which I can restore 1 to 1?
Will the update remove any packages I might have installed.
1 Like
@qosmio as always thank you so much for your great work. I wanted to try running SElinux with nss enabled but firmware loading is blocked by the current policies. Could you add the policies for it?
[ 12.296182] qca-nss 39000000.nss: probe with driver qca-nss failed with error -12
\[ 12.236353\] audit: type=1400 ... avc: denied { create } for pid=991 comm="ln" name="qca-nss0.bin" ... tclass=lnk_file permissive=0
[ 12.525691] audit: type=1400 ... avc: denied { net_admin } for pid=959 comm="kmodloader" capability=12 ... tclass=capability permissive=0
[ 14.322673] ath11k c000000.wifi: failed to initialize qmi handle: -517
I’m having trouble. Which is the best version to use for a stock firmware mx4300 to convert to openwrt with NSS?
JoJo_N
November 4, 2025, 1:01pm
5327
OkieDoke:
melessly using ChatGPT to help build a working config based on the documentation didn’t get me anywhere near a working setup, hence why I gave up on trying to use mesh11sd. In my mind, anything that package claims to be able to achieve must surely be achievable with tweaks without the need for a dedicated package, but that’s where things fell short -
Same here, tried to run mesh11sd following instructions and it totally messed up the entire working mesh network, where each node went dead. I had to reset each one, wasting a couple hours in the process.
JoJo_N
November 4, 2025, 1:17pm
5328
You might try other AI's, they might offer other helpful suggestions.
qosmio
November 4, 2025, 4:02pm
5329
Personally, I would stick with 11.4 for stability not just for feature completeness. You can experiment with upgrading to newer versions but I would not recommend it to tbh.
I'd forgot about this, was this the version I posted?
SELinux is the bane of my existence ... I work (fight) with it almost daily for work. I had not even considered it for personal single user use like routers.
4 Likes
Wow your current Luci status page looks really good and polished.
The last code I saw/know of (I may have missed your newer code though) was in this post
qosmio:
My ugly hack:
--- /rom/www/luci-static/resources/view/status/include/10_system.js 2024-02-27 17:00:31.000000000 -0500
+++ /www/luci-static/resources/view/status/include/10_system.js 2024-02-28 02:14:33.000000000 -0500
@@ -25,14 +25,16 @@
return Promise.all([
L.resolveDefault(callSystemBoard(), {}),
L.resolveDefault(callSystemInfo(), {}),
- L.resolveDefault(callLuciVersion(), { revision: _('unknown version'), branch: 'LuCI' })
+ L.resolveDefault(callLuciVersion(), { revision: _('unknown version'), branch: 'LuCI' }),
+ fs.exec_direct('awk',[ '/%/{printf "Avg: %s Max: %s",$2,$3}', '/sys/kernel/debug/qca-nss-drv/stats/cpu_load_ubi'])
]);
},
render: function(data) {
var boardinfo = data[0],
systeminfo = data[1],
- luciversion = data[2];
+ luciversion = data[2],
+ nssinfo = data[3];
luciversion = luciversion.branch + ' ' + luciversion.revision;
@@ -64,7 +66,8 @@
systeminfo.load[0] / 65535.0,
systeminfo.load[1] / 65535.0,
systeminfo.load[2] / 65535.0
- ) : null
+ ) : null,
+ _('NSS Load'), nssinfo
];
var table = E('table', { 'class': 'table' });
--- /rom/usr/share/rpcd/acl.d/luci-mod-status.json 2024-02-27 17:00:31.000000000 -0500
+++ /usr/share/rpcd/acl.d/luci-mod-status.json 2024-02-28 02:07:55.000000000 -0500
@@ -31,6 +31,7 @@
"read": {
"cgi-io": [ "exec" ],
"file": {
+ "/usr/bin/awk": [ "exec" ],
"/bin/dmesg -r": [ "exec" ],
"/sbin/logread": [ "stat" ],
"/sbin/logread -e ^": [ "exec" ],
If you really wanna get adventurous, /sys/devices/virtual/thermal has all the hardware temps. Didn't really bother monkeypatching these in. Ideally would need to properly average CPU 0-3, PHYA/B 0-1
➤ for i in /sys/devices/virtual/thermal/ther*/type; do awk -v temp="$(cat ${i%/*}/temp)" '{gsub(/(wcss-|-thermal)/,"");printf("%8s %.1f°C \n", $1, temp / 1000)}' $i; done|sort
cpu0 53.2°C
cpu1 53.9°C
cpu2 53.6°C
cpu3 53.6°C
nss0 54.9°C
nss1 53.9°C
phya0 52.6°C
phya1 51.6°C
phyb0 52.9°C
phyb1 52.9°C
cluster 54.5°C
nss-top 52.9°C
This has just been merged. Although I don't see those errors on any NSS build with arh11k. With ath10k they were pretty frequent though.
main ← maurerle:ath11k_flush_transmit_queue
opened 04:45PM - 03 Oct 25 UTC
warning print `ath11k c000000.wifi: failed to flush transmit queue 0` is observe… d during interface down.
The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.
The patch is run-tested on a Xiaomi AX3600.
The error did not show up, during testing, but it might be that not everything is fixed with this yet.
This should be tested in affected installations.
Upstreamed RFC-patch:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/
Hahahaha, it came to hunt you in your personal life as well
1 Like
vochong
November 4, 2025, 5:01pm
5332
@qosmio murmuring…. “I tried to fix SELinux once.”
“What happened?”
“Now it’s fixing me.”
Cheers!
3 Likes
vochong
November 4, 2025, 11:57pm
5333
Yes, I have only seen these errors with ath10k in the past (which were fixed in a recent commit), but never with ath11k.
1 Like
your status page looks pretty mind sharing the changes you did for that?
3 Likes
re: 3, on windows you can use WSL.
or install a virtualization software and run a linux distro to compile.
1 Like
Sinbios
November 6, 2025, 5:30am
5338
Yeah there's something strange going on with the libubus package that's breaking a lot of packages including Dawn. Hope it's fixed with the next build.