Ipq806x NSS build (Netgear R7800 / TP-Link C2600 / Linksys EA8500)

hi guys, i would like to know if something has changed between the stable and the master version. let me explain, I tried several times to update but every time as soon as I activate the 5ghz wifi the router starts to restart and I'm forced to reset, with the stable version the same configuration works great.

Have you resolved the issue? I have the same on a dumb R7800 AP:

Sun Mar 26 21:34:04 2023 kern.warn kernel: [ 7927.560690] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7927.680451] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7927.680923] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7927.903457] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7927.903688] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7928.001402] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7928.041210] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7928.041500] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7928.105592] br-lan: received packet on wlan1 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)
Sun Mar 26 21:34:05 2023 kern.warn kernel: [ 7928.224224] br-lan: received packet on wlan0 with own address as source address (addr:60:ab:67:xx:xx:xx, vlan:0)

No, I still see this occasionally

1 Like

I get these msgs on my R7800, generally with the mac of my cell phone; i don't know if it's a bug in mototola's stack or a malicious app.

One of my regular patches when rebuilding is to disable these. What's especially special about this msg is there's no context - just the what, nothing about what it means.

2 Likes

Perhaps my experience with this message here gives a bit more insight:

It’s gone in master btw.

1 Like

Only now I've noticed, the NSS cores can accelerate pppoe full duplex, 0 loadavg at ~900 down and ~300 up!

The ram usage is nice and stable under stress, with upnp+adblock+banip, 30MB available with a bit of help from zswap.
5.15 master has been a jackpot for ea7500. :slight_smile:

2 Likes

See if these work for your onhub devices. Should give a speed boost!

Updated the master build today for all devices and added the WG2600HP to the list of supported devices.

5 Likes

Seems like while I am on master my R7800 reboots consistently every 2-3 days from a kernel panic. Has anything seen this before?

<1>[178060.442609] 8<--- cut here ---
<1>[178060.442658] Unable to handle kernel NULL pointer dereference at virtual address 0000000e
<1>[178060.444578] pgd = 065e12ed
<1>[178060.452903] [0000000e] *pgd=00000000
<0>[178060.455512] Internal error: Oops: 17 [#1] SMP ARM
<4>[178060.459329] Modules linked in: ecm pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath rndis_host pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit nft_hash nft_fwd_netdev nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack_netlink nf_conntrack_bridge nf_conntrack mac80211 ip6_tables ip_tables cp210x ch341 cfg80211 cdc_ncm cdc_ether x_tables wireguard usbserial usbnet ts_kmp ts_fsm ts_bm tcp_bbr slhc nfnetlink_queue nfnetlink_log nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_dup_netdev nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c libchacha20poly1305 crc_itu_t crc_ccitt compat fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit
<4>[178060.460158]  act_mirred act_gact qca_nss_tunipip6 qca_nss_tun6rd qca_nss_qdisc qca_nss_crypto ledtrig_usbport cryptodev nfsv4 nfsv3 nfs msdos bonding ip_gre gre ifb dummy nat46 l2tp_ip6 l2tp_ip l2tp_eth sit l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel ipcomp esp4 ah4 ipip ip6_tunnel netlink_diag tunnel6 tunnel4 ip_tunnel rpcsec_gss_krb5 auth_rpcgss tun xfrm_user xfrm_ipcomp af_key xfrm_algo ntfs lockd sunrpc grace cifs cifs_md4 cifs_arc4 dns_resolver nls_utf8 nls_iso8859_1 nls_cp437 wp512 twofish_generic twofish_common tea serpent_generic khazad cast6_generic cast5_generic cast_common camellia_generic blowfish_generic blowfish_common anubis seqiv md4 echainiv des_generic arc4 usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd qca_nss_drv qca_nss_gmac
<4>[178060.530009]  ramoops reed_solomon pstore gpio_button_hotplug vfat fat f2fs ext4 mbcache jbd2 exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax crc32c_generic encrypted_keys trusted tpm oid_registry asn1_encoder
<4>[178060.638171] CPU: 0 PID: 12900 Comm: kworker/0:3 Not tainted 5.15.104 #0
<4>[178060.657594] Hardware name: Generic DT based system
<4>[178060.664538] Workqueue: events dbs_work_handler
<4>[178060.669141] PC is at msm_read_timer_count+0xc/0x18
<4>[178060.673654] LR is at msm_read_current_timer+0x18/0x24
<4>[178060.678515] pc : [<c085fe14>]    lr : [<c085fe48>]    psr: a0000093
<4>[178060.683725] sp : c5891d50  ip : 00000000  fp : c1fb8f80
<4>[178060.690234] r10: c1ca9218  r9 : 00000000  r8 : c5891db4
<4>[178060.695527] r7 : 20000013  r6 : e12fff33  r5 : 00000006  r4 : c0ed829c
<4>[178060.700824] r3 : c085fe08  r2 : c0ea4300  r1 : 00000000  r0 : c0e9bc08
<4>[178060.707165] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[178060.713765] Control: 10c5787d  Table: 4d72006a  DAC: 00000051
<1>[178060.721050] Register r0 information: non-slab/vmalloc memory
<1>[178060.726953] Register r1 information: NULL pointer
<1>[178060.732767] Register r2 information: non-slab/vmalloc memory
<1>[178060.737458] Register r3 information: non-slab/vmalloc memory
<1>[178060.743273] Register r4 information: non-slab/vmalloc memory
<1>[178060.749000] Register r5 information: non-paged memory
<1>[178060.754727] Register r6 information: non-paged memory
<1>[178060.759763] Register r7 information: non-paged memory
<1>[178060.764884] Register r8 information: non-slab/vmalloc memory
<1>[178060.770005] Register r9 information: NULL pointer
<1>[178060.775820] Register r10 information: slab kmalloc-256 start c1ca9200 pointer offset 24 size 256
<1>[178060.780515] Register r11 information: slab kmalloc-128 start c1fb8f80 pointer offset 0 size 128
<1>[178060.789455] Register r12 information: NULL pointer
<0>[178060.798303] Process kworker/0:3 (pid: 12900, stack limit = 0x88968763)
<0>[178060.802907] Stack: (0xc5891d50 to 0xc5892000)
<0>[178060.809506] 1d40:                                     c0ed829c c068a198 c15b95dc 00000001
<0>[178060.814034] 1d60: 00000101 c06f8d50 c15b95e8 c0e89de4 ffffffff 00000002 c5891db4 c06fa428
<0>[178060.822282] 1d80: 00000000 c0e89de4 ffffffff c035a4cc c1ca9200 c0e89de4 c1667c00 00000002
<0>[178060.830526] 1da0: 66d16940 23c34600 000927c0 c06e76a0 c158be00 c1cabc40 66d16940 23c34600
<0>[178060.838766] 1dc0: c158be00 23c34600 c1667c00 00000000 c15af000 c06ebcb8 c1667ae8 c15af000
<0>[178060.847014] 1de0: c06f9250 c140b180 66d16940 23c34600 000927c0 c06ebcf0 c1667c00 23c34600
<0>[178060.855258] 1e00: c15af000 c1fba100 dd98d010 23c34600 000927c0 c06ebf28 23c34600 23c34600
<0>[178060.863505] 1e20: 00000000 ffffffff 23c34600 c0e8cb38 00061a80 c1fb9180 23c34600 00000001
<0>[178060.871752] 1e40: c1fba100 dd98d010 23c34600 c06ec0dc c1dbea00 c15b5280 00000001 c1fba100
<0>[178060.879999] 1e60: dd98d010 c08219f8 c1667c00 c1fba100 00000002 23c34600 00000000 c1dbea00
<0>[178060.888245] 1e80: dd98d010 00000006 23c34600 c15b5280 00000000 000927c0 00000000 c0821da0
<0>[178060.896491] 1ea0: 00000000 c035a4cc c1dbf400 23c34600 c1dbf400 c0eda118 00000000 00000001
<0>[178060.904740] 1ec0: 001a5248 c08266a4 c1dbf400 001a5248 000927c0 00000024 c1c5bc00 c1dbf400
<0>[178060.912985] 1ee0: c1fba700 c1fba780 c1fba700 c1fb9580 c1fba780 dd993305 ca4f8a40 c0829a40
<0>[178060.921231] 1f00: c1fba738 00000000 c1fba704 c0e99dcc 00000000 00000000 dd993305 c082a7d0
<0>[178060.929478] 1f20: c1fba738 ca4f8a00 dd990080 dd993300 00000000 c0350c18 c5890000 dd990080
<0>[178060.937724] 1f40: c0e03d00 ca4f8a00 dd990080 ca4f8a18 c0e03d00 dd990098 c5890000 dd990240
<0>[178060.945970] 1f60: 00000000 c0351870 cb6c3ed8 c94411c0 c3da14c0 c0351810 ca4f8a00 c5890000
<0>[178060.954217] 1f80: cb6c3ed8 c3da14e0 00000000 c0358b84 c94411c0 c0358a2c 00000000 00000000
<0>[178060.962462] 1fa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
<0>[178060.970710] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[178060.978956] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<0>[178060.987204] [<c085fe14>] (msm_read_timer_count) from [<c085fe48>] (msm_read_current_timer+0x18/0x24)
<0>[178060.995448] [<c085fe48>] (msm_read_current_timer) from [<c068a198>] (__timer_delay+0x4c/0x78)
<0>[178061.004736] [<c068a198>] (__timer_delay) from [<c06f8d50>] (krait_mux_set_parent+0xd4/0x11c)
<0>[178061.013243] [<c06f8d50>] (krait_mux_set_parent) from [<c06fa428>] (krait_notifier_cb+0x58/0xb8)
<0>[178061.021836] [<c06fa428>] (krait_notifier_cb) from [<c035a4cc>] (srcu_notifier_call_chain+0x7c/0xf4)
<0>[178061.030692] [<c035a4cc>] (srcu_notifier_call_chain) from [<c06e76a0>] (__clk_notify+0x70/0x94)
<0>[178061.039805] [<c06e76a0>] (__clk_notify) from [<c06ebcb8>] (clk_change_rate+0xfc/0x2b8)
<0>[178061.048224] [<c06ebcb8>] (clk_change_rate) from [<c06ebcf0>] (clk_change_rate+0x134/0x2b8)
<0>[178061.056211] [<c06ebcf0>] (clk_change_rate) from [<c06ebf28>] (clk_core_set_rate_nolock+0xb4/0x22c)
<0>[178061.064543] [<c06ebf28>] (clk_core_set_rate_nolock) from [<c06ec0dc>] (clk_set_rate+0x3c/0x170)
<0>[178061.073572] [<c06ec0dc>] (clk_set_rate) from [<c08219f8>] (_set_opp+0x264/0x524)
<0>[178061.082599] [<c08219f8>] (_set_opp) from [<c0821da0>] (dev_pm_opp_set_rate+0xe8/0x218)
<0>[178061.089976] [<c0821da0>] (dev_pm_opp_set_rate) from [<c08266a4>] (__cpufreq_driver_target+0xe0/0x240)
<0>[178061.097792] [<c08266a4>] (__cpufreq_driver_target) from [<c0829a40>] (od_dbs_update+0xcc/0x1a0)
<0>[178061.107166] [<c0829a40>] (od_dbs_update) from [<c082a7d0>] (dbs_work_handler+0x38/0x74)
<0>[178061.116105] [<c082a7d0>] (dbs_work_handler) from [<c0350c18>] (process_one_work+0x234/0x4b0)
<0>[178061.124180] [<c0350c18>] (process_one_work) from [<c0351870>] (worker_thread+0x60/0x5c4)
<0>[178061.132598] [<c0351870>] (worker_thread) from [<c0358b84>] (kthread+0x158/0x174)
<0>[178061.140758] [<c0358b84>] (kthread) from [<c0300130>] (ret_from_fork+0x14/0x24)
<0>[178061.148221] Exception stack(0xc5891fb0 to 0xc5891ff8)
<0>[178061.155339] 1fa0:                                     00000000 00000000 00000000 00000000
<0>[178061.160554] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[178061.168799] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
<0>[178061.177049] Code: e12fff1e e30a318c e34c30ed e5933000 (e5930004)
<4>[178061.183900] ---[ end trace 82d0660bba2b5d35 ]---
<0>[178061.231179] Kernel panic - not syncing: Fatal exception
<2>[178061.231224] CPU1: stopping
<4>[178061.235563] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           5.15.104 #0
<4>[178061.238083] Hardware name: Generic DT based system
<4>[178061.245722] [<c030e7e8>] (unwind_backtrace) from [<c030a194>] (show_stack+0x14/0x20)
<4>[178061.250499] [<c030a194>] (show_stack) from [<c068cc20>] (dump_stack_lvl+0x40/0x4c)
<4>[178061.258485] [<c068cc20>] (dump_stack_lvl) from [<c030cfbc>] (do_handle_IPI+0x144/0x184)
<4>[178061.265950] [<c030cfbc>] (do_handle_IPI) from [<c030d018>] (ipi_handler+0x1c/0x2c)
<4>[178061.274282] [<c030d018>] (ipi_handler) from [<c03923f4>] (handle_percpu_devid_irq+0x84/0x16c)
<4>[178061.281663] [<c03923f4>] (handle_percpu_devid_irq) from [<c038bc84>] (handle_domain_irq+0x68/0x94)
<4>[178061.290345] [<c038bc84>] (handle_domain_irq) from [<c06a6b4c>] (gic_handle_irq+0x8c/0xb4)
<4>[178061.299284] [<c06a6b4c>] (gic_handle_irq) from [<c0300b7c>] (__irq_svc+0x5c/0x78)
<4>[178061.307614] Exception stack(0xc146df58 to 0xc146dfa0)
<4>[178061.315165] df40:                                                       2e8f9514 00000000
<4>[178061.320295] df60: 00000001 c0314a80 00000001 c0e04f28 c146c000 00000000 00000000 ffffe000
<4>[178061.328541] df80: 00000000 c0e04f5c c0ec9ec0 c146dfa8 c0307628 c030762c 60000013 ffffffff
<4>[178061.336784] [<c0300b7c>] (__irq_svc) from [<c030762c>] (arch_cpu_idle+0x44/0x50)
<4>[178061.345029] [<c030762c>] (arch_cpu_idle) from [<c03699c8>] (do_idle+0x25c/0x2bc)
<4>[178061.352583] [<c03699c8>] (do_idle) from [<c0369d4c>] (cpu_startup_entry+0x1c/0x20)
<4>[178061.360046] [<c0369d4c>] (cpu_startup_entry) from [<42301570>] (0x42301570)
1 Like

Thanks for your advice! Switched to master and the problem seems to be gone. The roaming from other APs to the netgear 7800 access point now works smooth.

It's possible to offload lan to wlan forwarding on ap without routing?

Hi everyone, and thank you ACwifidude for this build. I've tried both ath10k-ct/ath10k stable versions and my WAN speeds have significantly improved compared to the hnyman build on a R7800. However, strangely my VPN speeds via the wireguard interface seem slower. I was getting ~300Mbps on the hnyman build whereas now it's dropped to ~200Mbps. I've tried a few servers with similar results. Any thoughts as to why wireguard speeds are lower on this build?

After several years here and many tests, I am not able to make the 2.4GHz network work 100%. Everything works fine, but the wifi cameras don't work well. Currently I have it in a "store" AP, very Chinese, and this camera (xiaomi 360º) works perfectly, without connection losses. On the other hand, in my R7800, from time to time, it either works well for a few days, or it doesn't last a day without losing the connection, having to restart Wi-Fi to recover it. I have a weekly wifi reset on, but it doesn't fix the problem. The camera works fine in "Chinese" AP. I pass my configuration, which is the one that was giving me the best result with the multiple Iot devices. Mobile phones, tablets and other devices work in 5 Ghz. Thank you all.

After several years here and many tests, I am not able to make the 2.4GHz network work 100%. Everything works fine, but the wifi cameras don't work well. Currently I have it in a "store" AP, very Chinese, and this camera (xiaomi 360º) works perfectly, without connection losses. On the other hand, in my R7800, from time to time, it either works well for a few days, or it doesn't last a day without losing the connection, having to restart Wi-Fi to recover it. I have a weekly wifi reset on, but it doesn't fix the problem. The camera works fine in "Chinese" AP. I pass my configuration, which is the one that was giving me the best result with the multiple Iot devices. Mobile phones, tablets and other devices work in 5 Ghz. Thank you all.

> OpenWrt 22.03-SNAPSHOT r20036+31-c0b4303d2e / LuCI openwrt-22.03 branch git-22.361.69894-438c598
>  Kernel 5.10.161
> config wifi-device 'radio0'
> 	option type 'mac80211'
> 	option path 'soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0'
> 	option band '5g'
> 	option country 'ES'
> 	option txpower '23'
> 	option channel '36'
> 	option htmode 'VHT80'
> 	option cell_density '2'
> 	option beacon_int '103'
> 
> config wifi-iface 'default_radio0'
> 	option device 'radio0'
> 	option network 'lan'
> 	option mode 'ap'
> 	option ssid 'XXXXXj_5G'
> 	option key 'XXXXX'
> 	option skip_inactivity_poll '1'
> 	option encryption 'psk2+ccmp'
> 
> config wifi-device 'radio1'
> 	option type 'mac80211'
> 	option path 'soc/1b700000.pci/pci0001:00/0001:00:00.0/0001:01:00.0'
> 	option band '2g'
> 	option htmode 'HT20'
> 	option country 'US'
> 	option cell_density '1'
> 	option channel '3'
> 	option txpower '20'
> 	option beacon_int '101'
> 	option rts '2304'
> 	option frag '2304'
> 
> config wifi-iface 'default_radio1'
> 	option device 'radio1'
> 	option network 'lan'
> 	option mode 'ap'
> 	option ssid 'XXXX'
> 	option encryption 'psk2+ccmp'
> 	option key 'XXXX'
> 	option wpa_disable_eapol_key_retries '1'
> 	option dtim_period '1'

Prime numbers, try setting beacon interval to default '100'

With regular builds without nss:

5 GHz
option beacon_int '300'
option dtim_period '1'

2,4 GHz
option beacon_int '400'
option dtim_period '1'

Ok, and in NSS version?? use NSS version.

Default 100 for both radios.
I had issues recently with the settings above (iphone) but it seems fine now. So you could try that too.

Choose one country only.

You're specifying channel 3, which means use 3 or nothing if something interferes with 3. Strongly suggest 'auto' or a range of channels.

2.4GHz is used by everything as it's generally unregulated in the US. Which is why most wireless products use it.

and microwave ovens can clobber it as well. Allowing the radio to use other channels allows the router to switch its communication with wifi devices automatically.

I have a dumb Tenda AP, and that's no problem. currently connected the camera to that AP without problems.

the microwave is not the problem. the channel is free, it is checked.

I'm wondering, there is NSS firmware for Chromium devices with new Openwrt support yet, why is there still no Unifi HD? The device does not work when I try to compile it myself. I think DTS change is needed but I don't know anything about it. What do I need to do to have NSS on this device?

I’d pick channel 1, 6, or 11 (all non-overlapping 20mhz channels, any channel in between will overlap). Make sure your channel selection is different from the tenda AP or it’ll interfere with that AP. The rest of your settings look ok. Some clients like the -ct drivers, some like the standard ath10k drivers.

Best of luck!

2 Likes

Beacon interval, VAPs, prime numbers and DTIM interval

2 Likes