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

Updated Master build with today's OpenWrt ath10k-ct update. Enjoy!

6 Likes

Just upgraded my C2600 from 20220127-Stable2012NSS -> 20220519-MasterNSS and seems like the hardware nat offloading is broken (100% sirq meanwhile 300mbps download /speedtest/)

dmesg https://pastebin.com/pQrJVNHh

p.s. also doesn't work in 20220516-Stable2203NSS but,

20220508-Stable2102NSS works (https://www.speedtest.net/result/13178559165)

After almost 24 hours running the yesterday master build today I've left my home for 2 hours and after returning home there was no internet access. From router network -> diagnostics page I didn't have access to openwrt.org. I couldn't see any error in the log except for the DDNS daemon complaining it cannot find public IP address.
I didn't have access to the router via web interface nor via SSH from switch (to LAN with cable). I had access to the router via both web interface and SSH from Wi-Fi. I've restarted the router to regain access to the Internet.

Same issue I'm having

I want to switch back to the previous version but didn't keep a copy

32.319459] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id 0:2 crc32 85498734
[ 36.116853] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[ 36.211879] ath: EEPROM regdomain: 0x0
[ 36.211885] ath: EEPROM indicates default country code should be used
[ 36.211890] ath: doing EEPROM country->regdmn map search
[ 36.211899] ath: country maps to regdmn code: 0x3a

莫名其妙的的死机了 wifi没有了 这个是日志

My R7800 running ACWifidude NSS 22.03-SNAPSHOT, r19338 (with latest non-ct ath10k firmware) rebooted unexpectedly after 9 days.

got anything in the logs? both nss and non nss builds are running solid for me. using r19335-5ff900e0ad and latest ath10k firmware.

I did not notice any suspicious log after the unexpected reboot. I didn't run a remote syslogd so I didn't have any log prior to the reboot.

The reboot happened soon after I connected my Lenovo laptop to 5GHz, but I always connect this work laptop to it everyday. I think different combinations of wireless clients at each network trigger different behaviors that have been reported so far (e.g. WIFI interfaces randomly shut down, extreme WIFI lagging, random router reboots etc.).

I have disabled AQL on the router to see if its reliability may get any better.

2 Likes

@quarky
With the latest master build I compiled I now have an uptime of 9 days without any issues.
This is without your patch.
I can't see anything in the commit log but maybe there was some fix.

1 Like

I think the ath10k firmware was updated to the latest version in master recently? Maybe that is the reason?

Ath10k and Ath10k-ct are both the most recent version in master. I’m running -ct, seems to be running well.

1 Like

I used the latest ath10k firmware and the router rebooted by itself after 9 days.

Did you manage to capture the crash log?

Hi quarky,

/sys/kernel/debug/crashlog does not exist on R7800. I think it's only available for some MIPS platforms.

Can you please me where else I may get the crash log on R7800?

If you have enabled ramoops in your builds you should see some dmesg log files in:

/sys/fs/pstore/

1 Like

Hi quarky,

I've learned a new thing today thanks to you. Thanks.

The following is the crash dump:

<1>[1138854.934536] 8<--- cut here ---
<1>[1138854.934577] Unable to handle kernel paging request at virtual address c49f7ac0
<1>[1138854.986219] 8<--- cut here ---
<1>[1138854.986226] Unable to handle kernel paging request at virtual address c49f7ac0
<1>[1138854.986232] pgd = 6216c000
<1>[1138854.986238] [c49f7ac0] *pgd=4681141e(bad)
<0>[1138854.986253] Internal error: Oops: 8000000d [#1] SMP ARM
<4>[1138854.986257] Modules linked in: nss_ifb ecm ath10k_pci ath10k_core ath wireguard pl2303 nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet mac80211 libchacha20poly1305 libblake2s ipt_REJECT ftdi_sio curve25519_neon cp210x ch341 cfg80211 belkin_sa xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_cgroup xt_addrtype xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial sch_cake ppp_async poly1305_arm nft_tproxy nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_reject_ipv4 nf_log_ipv6 nf_log_ipv4 nf_log_common nf_flow_table nf_conntrack_netlink libcurve25519_generic libcrc32c
<4>[1138854.986564]  libblake2s_generic iptable_nat iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat chacha_neon fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact qca_nss_qdisc qca_nss_pppoe pppoe pppox ppp_generic slhc ledtrig_usbport cryptodev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 nfs nfs_ssc msdos bonding ifb ip6_udp_tunnel udp_tunnel sit qca_nss_drv qca_nss_gmac oid_registry tunnel4 ip_tunnel tun xfrm_user xfrm_ipcomp af_key xfrm_algo vfat fat lockd sunrpc
<4>[1138854.986863]  grace hfsplus hfs cdrom dns_resolver nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 nls_cp1250 wp512 twofish_generic twofish_common tgr192 tea serpent_generic khazad cast6_generic cast5_generic cast_common camellia_generic blowfish_generic blowfish_common anubis xts crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic seqiv md5 kpp echainiv ecb des_generic libdes cmac authenc uas 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 ehci_hcd ramoops reed_solomon pstore gpio_button_hotplug f2fs ext4 mbcache jbd2 exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax crc32c_generic crc32_generic cbc encrypted_keys trusted tpm
<4>[1138854.987155] CPU: 0 PID: 9978 Comm: kworker/0:3 Not tainted 5.10.113 #0
<4>[1138854.987159] Hardware name: Generic DT based system
<4>[1138854.987164] Workqueue: events dbs_work_handler
<4>[1138854.987172] PC is at 0xc49f7ac0
<4>[1138854.987177] LR is at __msm_console_write+0x220/0x278
<4>[1138854.987182] pc : [<c49f7ac0>]    lr : [<c06ca77c>]    psr: 60000193
<4>[1138854.987188] sp : c76b7b90  ip : de87b000  fp : de87b070
<4>[1138854.987193] r10: 00000001  r9 : 00000055  r8 : 000346dc
<4>[1138854.987200] r7 : c0b3f34c  r6 : c0d877b8  r5 : 0007a121  r4 : c0dbf4a4
<4>[1138854.987204] r3 : c49f7ac0  r2 : 00000000  r1 : 07a107a0  r0 : 000346dc
<4>[1138854.987210] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[1138854.987216] Control: 10c5787d  Table: 4ed3406a  DAC: 00000051
<0>[1138854.987222] Process kworker/0:3 (pid: 9978, stack limit = 0x9bf8293d)
<0>[1138854.987227] Stack: (0xc76b7b90 to 0xc76b8000)
<0>[1138854.987234] 7b80:                                     c0d7191c 00000001 c0d71890 fa7d6f29
<0>[1138854.987241] 7ba0: c0dbd3f0 c0d8768c c0dbd448 c76b6000 c0dbd3f0 c0d718e4 c0dbd3d4 c0dbf45c
<0>[1138854.987247] 7bc0: c76b7bfc c036c5c4 c76b7bfc c0370b54 20000193 c0d04f14 c76b6000 00000000
<0>[1138854.987253] 7be0: c0dbd3e4 00000054 00000000 c0dbd3e8 c0dbd3dc 00000000 00000000 c76b7c08
<0>[1138854.987259] 7c00: c0dbf4a4 00000400 0000081e 00000000 53d381c0 00040bc8 22000042 000026fa
<0>[1138854.987266] 7c20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[1138854.987272] 7c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[1138854.987279] 7c60: 3ffff81e fa7d6f29 00000000 c0d04f60 00000042 00000000 00000000 00000000
<0>[1138854.987285] 7c80: c0a81de8 c0dbf45c 60000193 c036e990 c76b7cec 00000000 ff800000 c1ca8244
<0>[1138854.987291] 7ca0: c0ae0484 c49f7ac0 c76b7d40 8000000d c9399200 c030f634 c76b6000 c15b9b18
<0>[1138854.987298] 7cc0: c1e85380 c036eab0 c76b7cec 8000000d c9399200 c036b67c c063106c c76b7cec
<0>[1138854.987305] 7ce0: c76b7d40 c030f36c c0a81de8 c0a81dc0 c49f7ac0 c0a81dc0 c9399200 c030f6b8
<0>[1138854.987311] 7d00: c0d09940 0000000d c49f7ac0 c76b7d40 c030f634 c030f928 0000003a c159ae00
<0>[1138854.987318] 7d20: c1e85e40 c0697aa0 c49f7ac0 60000013 ffffffff c76b7d74 c76b7dd4 c0300cc4
<0>[1138854.987324] 7d40: 000346dc 20000013 c0d9b31c c49f7ac0 c15d8858 00000001 ffffffff 00000002
<0>[1138854.987332] 7d60: c76b7dd4 00000000 c15b9b18 c1e85380 00000000 c76b7d90 c0697630 c49f7ac0
<0>[1138854.987339] 7d80: 60000013 ffffffff 00000051 00000000 c15d8864 c0d7fb6c ffffffff c0698ff0
<0>[1138854.987346] 7da0: 00000000 c0d7fb6c ffffffff c0341ae4 c15b9b00 c0d7fb6c c15d93c0 00000002
<0>[1138854.987352] 7dc0: 66d16940 c1e85500 00000000 c06879e4 c159ae00 c15da540 66d16940 23c34600
<0>[1138854.987357] 7de0: c159ae00 23c34600 c15d93c0 00000000 c1591180 c068be50 c15d92a8 c1591180
<0>[1138854.987363] 7e00: c0697adc c14d13c0 66d16940 c1e85500 00000000 c068be94 c15d93c0 00000000
<0>[1138854.987371] 7e20: 23c34600 c1591180 c1e85700 c1e85500 00000000 c068c0c0 23c34600 23c34600
<0>[1138854.987378] 7e40: 00000000 ffffffff 23c34600 c0d81dcc c15d93c0 c1e809c0 23c34600 dd98a010
<0>[1138854.987384] 7e60: 66d16940 c1e85700 c1e85500 c068c240 c1ca9200 23c34600 dd98a010 66d16940
<0>[1138854.987390] 7e80: c1e85700 c07b011c 00000000 c0dd2ec8 c1e85538 c1e85738 00000000 23c34600
<0>[1138854.987397] 7ea0: c76b6000 c1ca9a00 00000000 c0dd2e90 00000001 000927c0 00000000 00000000
<0>[1138854.987403] 7ec0: c76b6000 c07b5374 c1ca9a00 001a5248 000927c0 000000a1 c1ca9a00 c1e85800
<0>[1138854.987410] 7ee0: c1e85880 c1e85800 c15939c0 c1e85880 00000000 c07b890c c1e85838 00000000
<0>[1138854.987416] 7f00: c1e85804 c0d8fc00 00000000 00000000 00000000 c07b95f4 c1e85838 c8956e80
<0>[1138854.987423] 7f20: dd990900 dd993b00 00000000 c0338924 00000008 dd990918 c8956e80 c8956e94
<0>[1138854.987429] 7f40: dd990900 00000008 dd990918 c0d03d00 dd990ac0 c0338c0c c0d9bab8 c0d0c13c
<0>[1138854.987436] 7f60: c8956e80 c7525f00 c48b3fc0 00000000 c76b6000 c0338b98 c8956e80 cbd5fec4
<0>[1138854.987442] 7f80: c7525f24 c033eaf0 00000000 c48b3fc0 c033e994 00000000 00000000 00000000
<0>[1138854.987450] 7fa0: 00000000 00000000 00000000 c0300148 00000000 00000000 00000000 00000000
<0>[1138854.987455] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[1138854.987462] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<0>[1138854.987468] [<c06ca77c>] (__msm_console_write) from [<c036c5c4>] (console_unlock+0x354/0x5b8)
<0>[1138854.987476] [<c036c5c4>] (console_unlock) from [<c036e990>] (vprintk_emit+0x144/0x240)
<0>[1138854.987482] [<c036e990>] (vprintk_emit) from [<c036eab0>] (vprintk_default+0x24/0x2c)
<0>[1138854.987487] [<c036eab0>] (vprintk_default) from [<c036b67c>] (printk+0x1c/0x2c)
<0>[1138854.987493] [<c036b67c>] (printk) from [<c030f36c>] (__do_kernel_fault.part.0+0x54/0x8c)
<0>[1138854.987501] [<c030f36c>] (__do_kernel_fault.part.0) from [<c030f6b8>] (do_bad_area+0x0/0x94)
<0>[1138854.987508] [<c030f6b8>] (do_bad_area) from [<c030f928>] (do_PrefetchAbort+0x48/0xac)
<0>[1138854.987514] [<c030f928>] (do_PrefetchAbort) from [<c0300cc4>] (__pabt_svc+0x64/0xa0)
<0>[1138854.987519] Exception stack(0xc76b7d40 to 0xc76b7d88)
<0>[1138854.987526] 7d40: 000346dc 20000013 c0d9b31c c49f7ac0 c15d8858 00000001 ffffffff 00000002
<0>[1138854.987532] 7d60: c76b7dd4 00000000 c15b9b18 c1e85380 00000000 c76b7d90 c0697630 c49f7ac0
<0>[1138854.987536] 7d80: 60000013 ffffffff
<0>[1138854.987541] [<c0300cc4>] (__pabt_svc) from [<c49f7ac0>] (0xc49f7ac0)
<0>[1138854.987548] Code: 00000011 00000003 00000000 df34b418 (bfb8ad64) 
<4>[1138854.987552] ---[ end trace d055fe25d37312dd ]---
<0>[1138854.987558] Kernel panic - not syncing: Fatal exception
<2>[1138854.987575] CPU1: stopping
<4>[1138857.203749] SMP: failed to stop secondary CPUs
1 Like

this could be a very stupid wrong and useless consideration, but if you are using 22.03 (that should be on firewall4) why your log has a loooooot of iptables inside?

NSS 22.03 still includes iptables. Please look under the Status menu -> Firewall (iptables) / Firewall (nftables).

~# lsmod | grep nft
nf_conntrack 90112 15 ecm,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_CT,nft_redir,nft_nat,nft_masq,nft_flow_offload,nft_ct,nf_flow_table,nf_conntrack_netlink,nf_nat
nf_defrag_ipv4 16384 2 nft_tproxy,nf_conntrack
nf_defrag_ipv6 20480 2 nft_tproxy,nf_conntrack
nf_flow_table 32768 4 nf_flow_table_ipv6,nf_flow_table_ipv4,nf_flow_table_inet,nft_flow_offload
nf_nat 36864 9 xt_nat,xt_REDIRECT,xt_MASQUERADE,nft_redir,nft_nat,nft_masq,nft_chain_nat,iptable_nat,ip6table_nat
nf_reject_ipv4 16384 3 ipt_REJECT,nft_reject_ipv4,nft_reject_inet
nf_reject_ipv6 16384 3 nft_reject_ipv6,nft_reject_inet,ip6t_REJECT
nf_tables 167936460 nft_fib_inet,nf_flow_table_ipv6,nf_flow_table_ipv4,nf_flow_table_inet,nft_tproxy,nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet,nft_reject,nft_redir,nft_quota,nft_objref,nft_numgen,nft_nat,nft_masq,nft_log,nft_limit,nft_hash,nft_flow_offload,nft_fib_ipv6,nft_fib_ipv4,nft_fib,nft_ct,nft_counter,nft_chain_nat

Good evening, first off I want to say thank you! This is the first build i've found that allows near full wired symmetrical gig.

I'm new to openwrt and have been trying to setup my network for the last 2 weeks before I stumbled on this post, and the information and builds provided have been amazing.

I'm currently using R7800-20220516-Stable2203NSS-ath10k-factory on my r7800, and while I get anywhere between 850-950 up/down, I'm having trouble with my wireless. With stock firmware I could get between 400-600, but I'm struggling to get between 50-150 now, even after following steps 1-5 in the first post (I think correctly, although with #4 I just added that to the system->local startup script in luci as I wasn't fully sure).
I also have the "extra" services disabled in the startup script

Could anyone provide any help with this?