Try xfsprogs. Not sure about it and might be overkill, but may get you working and you can start trimming down from there.

Thanks now NFS and XFS working :slight_smile:

Hi, I stumpled over the same error while compile an initramfs for the Netgear AX12/RAX120v2. Not sure it's still relevant for you guys.

After search git log for CCMP I found the following commit:

commit d19144240c451c665eb235432804973cd603a69b (HEAD -> ipq807x-5.15-pr)
Author: Hauke Mehrtens <hauke@hauke-m.de>
Date:   Sat Aug 20 22:51:29 2022 +0200

    iwinfo: update to latest HEAD

    0dad3e6 Add support for CCMP-256 and GCMP-256 ciphers

    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

After cherry-picking that commit (and resolving a simple merge conflict which was updating the iwinfo commit used) compiling worked fine.

Is it possible to change WLAN MAC addresses on this firmware? Change in luci has no effect.

Not sure if you're still looking into this but I have a fix (ipq806x: Fix Reference to non-existent node or label "smb208_s1b") on my 5.15-qsdk11 branch.

Side note: Could I get a rough tally of folks still testing my branch? @Ansuel's Krait Clock Controller patches look to have been merged into master now (making my 5.15-qsdk11-new-krait-cc redundant). However it's been very unstable with the NSS packages, at least for me. Uptime has always been a max of 22-24 hours. I'm going to try a build without it to test out. Wondering what everyone else's experiences have been.

3 Likes

Not sure if it has anything to do with it, but this version with ath10x flavor and performance gov no longer randomly reboots on ea7500v1. 18h uptime so far. Nice.

LE: There was this post a while back regarding power/thermals on a r7800, and i can confirm this in my ea7500v1 i measured it's amperage, setting cpu to performance is very negligeable power increase of about 5% more, while disabling the 2.4g AP decreases power consumed by almost a quarter. The 5g AP must have it's power circuitry on since disabling that barely reduces consumption by 1-2%.

1 Like

If I'm not wrong then the 2 branches (5.15-qsdk11 & 5.15-qsdk11-new-krait-cc) should be the same, right?
I ask because until a few days ago I have been using the 5.15-qsdk11-new-krait-cc branch and I abandoned it due to the continuous reboots that occurred (from 30 minutes to 24 hours maximum).
3 days ago I installed the new firmware from the 5.15-qsdk11 branch and it's already been over 80 hours without reboots.

BusyBox v1.35.0 (2022-10-26 20:57:38 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r21166-5ff9145d5c
 -----------------------------------------------------
root@NAS:~# uname -a
Linux NAS 5.15.74 #0 SMP Wed Oct 26 20:57:38 2022 armv7l GNU/Linux
root@NAS:~# uptime
 23:44:26 up 3 days,  8:49,  load average: 0.01, 0.02, 0.00
root@NAS:~# lsmod | grep nss_
nss_ifb                16384  0
ppp_generic            40960  7 ecm,ppp_async,qca_nss_pptp,pptp,qca_nss_pppoe,pppoe,pppox
pppoe                  24576  2 ecm,qca_nss_pppoe
pptp                   28672  2 ecm,qca_nss_pptp
qca_nss_crypto         36864  0
qca_nss_drv           577536  7 nss_ifb,ecm,mac80211,qca_nss_qdisc,qca_nss_crypto,qca_nss_pptp,qca_nss_pppoe
qca_nss_gmac           65536  1 qca_nss_drv
qca_nss_pppoe          16384  0
qca_nss_pptp           20480  0
qca_nss_qdisc         110592  5
root@NAS:~# opkg list | grep qca
ath10k-board-qca9984 - 20221012-1
ath10k-firmware-qca9984-ct - 2020-11-08-1
kmod-qca-mcs - 5.15.74+2022-03-16-dd8a438-1
kmod-qca-nss-crypto - 5.15.74+2021-03-20-2271a3a-1
kmod-qca-nss-drv - 5.15.74+2020-03-20-3cfb9f43-1
kmod-qca-nss-drv-igs - 5.15.74+2020-10-29-ef082a73-2
kmod-qca-nss-drv-pppoe - 5.15.74+2020-10-29-ef082a73-2
kmod-qca-nss-drv-pptp - 5.15.74+2020-10-29-ef082a73-2
kmod-qca-nss-drv-qdisc - 5.15.74+2020-10-29-ef082a73-2
kmod-qca-nss-ecm-standard - 5.15.74+2022-08-16-bc390e91-1
kmod-qca-nss-gmac - 5.15.74+2021-04-20-17176794-1
1 Like

If I'm not wrong then the 2 branches (5.15-qsdk11 & 5.15-qsdk11-new-krait-cc) should be the same, right?

They are "almost" the same. The main difference between the two are the NAPI changes that we were testing for wifi latency, and I believe some patch consolidations were made by @Ansuel upstream.

I installed the new firmware from the 5.15-qsdk11 branch and it's already been over 80 hours without reboots.

I hadn't made too many changes to the 5.15-qsdk11 branch aside from just keeping it in sync with master, and only recently synced when the krait cc patches were also merged upstream.

If you haven't already pulled in latest commits, could you give me the commit you're on for my 5.15-qsdk11 branch?

git show -s

1 Like
asvio@VM-MINT-PC01:~/R7800/r7800-qsdk11$ git show -s
commit 5ff9145d5cad66d47de8efd4895f3f0c051f44dc (HEAD -> 5.15-qsdk11, origin/HEAD, origin/5.15-qsdk11)
Merge: a9f0289cc7 eb456aedfe
Author: Qosmio <datapronix@protonmail.com>
Date:   Wed Oct 26 16:57:38 2022 -0400

    Merge branch 'master' of https://github.com/openwrt/openwrt into 5.15-qsdk11

It is also seen when starting the ssh session.

BusyBox v1.35.0 (2022-10-26 20:57:38 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r21166-5ff9145d5c

-----------------------------------------------------
root@NAS:~# uptime
 06:29:28 up 3 days, 15:34,  load average: 0.00, 0.00, 0.00
root@NAS:~#

OpenWrt SNAPSHOT, r21166-5ff9145d5c

I'm still running 5.15-qsdk11-new-krait-cc but after numerous reboots and even complete lock-up I've switched to performance governor and there are no reboots nor stalls since then.

1 Like

Thanks! Those patches work great. Looks like nss-drv is throwing some errors. I'm trying to make the diffconfig as simple as possible so maybe excluding some of the lines is causing more complaints in my build process. nss-drv is complaining about these lines and then subsequently fails to build - does it complain in your building but make it through because of your diffconfig settings?

/home/HTPC/OpenWRT/NSSMaster/new/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/linux-ipq806x_generic/qca-nss-drv-2020-03-20-3cfb9f43/nss_core.h:116:17: error: implicit declaration of function 'dmac_inv_range'; did you mean 'outer_inv_range'? [-Werror=implicit-function-declaration]
  116 |                 dmac_inv_range(start, start + size);
      |                 ^~~~~~~~~~~~~~
      |                 outer_inv_range
make[3]: Entering directory '/home/HTPC/OpenWRT/NSSMaster/new/openwrt/package/network/utils/iw'
/home/HTPC/OpenWRT/NSSMaster/new/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/linux-ipq806x_generic/qca-nss-drv-2020-03-20-3cfb9f43/nss_core.h:119:17: error: implicit declaration of function 'dmac_clean_range'; did you mean 'dmac_flush_range'? [-Werror=implicit-function-declaration]
  119 |                 dmac_clean_range(start, start + size);
      |                 ^~~~~~~~~~~~~~~~
      |                 dmac_flush_range

Could you check it please?

That is interesting. The dts patch only makes minor changes to the gmac section that shouldn’t change your MAC address on quick glance.

Everything else function normally?

Do you have a panic log?
I will try to build and test.

1 Like

Everything else function normally?

I think so. Wlan addresses are correct on both vanilla and nss builds, only wired addresses are weird.
Here are some kernel logs.
https://pastebin.com/0YhugciU

Are you building from my 5.15 branch or just using the nss packages from my repo? Those functions should be in target/linux/ipq806x/patches-5.15/999-001-Revert-ARM-dma-mapping-remove-dmac_clean_range-and-d.patch

That looks to have the krait clock controller patches. And further inspection shows no patches were submitted for 5.15 ip806x, most of the changes are just refreshed patches.

You said you're running in performance mode? I just built from master on 5.15.76 going to experiment with a few ondemand thresholds before trying performance.

@tishipp

Do you have a panic log?

Yup, two currently

dmesg-ramoops-0
<1>[70610.697271] Unable to handle kernel NULL pointer dereference at virtual address 00000004
<1>[70610.699194] pgd = 7dfb08bd
<1>[70610.707432] [00000004] *pgd=00000000
<0>[70610.709953] Internal error: Oops: 5 [#1] SMP ARM
<4>[70610.713686] Modules linked in: xt_TCPMSS xt_multiport xt_DSCP xt_dscp nss_ifb ecm iptable_mangle xt_mark xt_mac ipt_REJECT xt_tcpudp xt_limit xt_comment iptable_filter pppoe ppp_async iptable_nat ath10k_pci ath10k_core ath xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE wireguard pptp pppox ppp_generic nft_redir nft_nat nft_masq nft_ct nft_chain_nat nf_nat nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 libchacha20poly1305 curve25519_neon cfg80211 xt_quota xt_pkttype xt_physdev xt_owner xt_addrtype ts_kmp ts_fsm ts_bm slhc sch_cake poly1305_arm nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_quota nft_objref nft_numgen nft_log nft_limit nft_hash nft_counter nft_compat nf_tables nf_reject_ipv4 nf_log_syslog nf_defrag_ipv4 libcurve25519_generic libcrc32c ip_tables crc_ccitt compat chacha_neon 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_cfi_cryptoapi
<4>[70610.714304]  qca_nss_qdisc qca_nss_crypto ledtrig_usbport ledtrig_activity 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_ipmac ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 qca_mcs ip_gre gre nat46 nf_defrag_ipv6 seqiv cmac authencesn authenc 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 ramoops reed_solomon pstore ext4 mbcache jbd2 crc32c_generic
<4>[70610.859335] CPU: 1 PID: 27155 Comm: kworker/1:3 Not tainted 5.15.75 #0
<4>[70610.881568] Hardware name: Generic DT based system
<4>[70610.887904] Workqueue: events dbs_work_handler
<4>[70610.892676] PC is at msm_read_current_timer+0xc/0x24
<4>[70610.897104] LR is at __timer_delay+0x28/0x78
<4>[70610.902224] pc : [<c0826144>]    lr : [<c063ce54>]    psr: a0000093
<4>[70610.906480] sp : d133fd10  ip : 00000000  fp : c5698f80
<4>[70610.912468] r10: c5c18a18  r9 : 00000000  r8 : d133fd74
<4>[70610.917678] r7 : 20000013  r6 : c5211b94  r5 : 00000001  r4 : 00000006
<4>[70610.922887] r3 : c0826138  r2 : c51dd2fc  r1 : 20000093  r0 : 00000004
<4>[70610.929486] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[70610.935997] Control: 10c5787d  Table: 4c49006a  DAC: 00000051
<1>[70610.943198] Register r0 information: non-paged memory
<1>[70610.949014] Register r1 information: non-paged memory
<1>[70610.954047] Register r2 information: non-slab/vmalloc memory
<1>[70610.959083] Register r3 information: non-slab/vmalloc memory
<1>[70610.964813] Register r4 information: non-paged memory
<1>[70610.970454] Register r5 information: non-paged memory
<1>[70610.975402] Register r6 information: non-slab/vmalloc memory
<1>[70610.980438] Register r7 information: non-paged memory
<1>[70610.986167] Register r8 information: non-slab/vmalloc memory
<1>[70610.991115] Register r9 information: NULL pointer
<1>[70610.996843] Register r10 information: slab kmalloc-256 start c5c18a00 pointer offset 24 size 256
<1>[70611.001450] Register r11 information: slab kmalloc-128 start c5698f80 pointer offset 0 size 128
<1>[70611.010303] Register r12 information: NULL pointer
<0>[70611.018718] Process kworker/1:3 (pid: 27155, stack limit = 0x6e2502d9)
<0>[70611.023581] Stack: (0xd133fd10 to 0xd1340000)
<0>[70611.030092] fd00:                                     00000006 c063ce54 c56018dc 00000001
<0>[70611.034532] fd20: 00000101 c06ae378 c56018e8 c578b9c0 ffffffff 00000002 d133fd74 c06afa40
<0>[70611.042687] fd40: 00000000 c578b9c0 ffffffff c03475c8 c5c18a00 c578b9c0 c51a4c4c 00000002
<0>[70611.050845] fd60: 23c34600 00000000 c51d0140 c069b938 c51a7958 c5ddeb40 23c34600 2faf0800
<0>[70611.059006] fd80: d133fdbc c578b9c0 2faf0800 2faf0800 c5629c00 c06a0aec 23c34600 00000000
<0>[70611.067166] fda0: c51d0140 c5629c00 c578b8a8 2faf0800 c5426f00 23c34600 00000000 c51d0140
<0>[70611.075325] fdc0: c5698f80 c06a0b24 c578b840 c5629c00 00000001 c578b9c0 2faf0800 c5629c00
<0>[70611.083484] fde0: c562f480 dda0d010 2faf0800 00000000 c5698f80 c06a0ebc 000f387c 2faf0800
<0>[70611.091644] fe00: 00000000 ffffffff 2faf0800 c51a791c c562f540 c5630140 2faf0800 00000000
<0>[70611.099804] fe20: c562f480 dda0d010 2faf0800 c06a1828 c5712200 c562f500 00000000 c562f480
<0>[70611.107964] fe40: dda0d010 c07e8a2c 2faf0800 c578b9c0 2faf0800 c5712240 c5630140 00000000
<0>[70611.116124] fe60: c578b9c0 c562f480 c51052c4 2faf0800 00000000 c5712200 dda0d010 00000006
<0>[70611.124284] fe80: 2faf0800 c562f500 c5213a10 000c3500 00000000 c07e8ea4 c51b86dc c03475c8
<0>[70611.132443] fea0: c5712c00 2faf0800 c5712c00 00000002 00000000 00000000 000927c0 c07edcc8
<0>[70611.140604] fec0: c50cb1c8 ffffffff c5712c00 000927c0 000c3500 00000024 dda14540 c5712c00
<0>[70611.148763] fee0: c5c21300 c5c21280 c5c21300 c5f50300 c5c21280 dda17305 cdb8d640 c07f150c
<0>[70611.156923] ff00: c5c21338 00000000 c5c21304 c51b891c 00000000 00000040 dda17305 c07f229c
<0>[70611.165082] ff20: c5c21338 cdb8d600 dda14100 dda17300 00000000 c033e3d8 d133e000 dda14100
<0>[70611.173242] ff40: dda14118 cdb8d600 dda14100 cdb8d618 dda14118 c5103d00 d133e000 dda142c0
<0>[70611.181401] ff60: 00000000 c033e774 d1343ed0 ca310c80 cc0b18c0 c033e71c cdb8d600 00000000
<0>[70611.189561] ff80: d1343ed0 cc0b18e0 00000000 c034618c ca310c80 c0346064 00000000 00000000
<0>[70611.197720] ffa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
<0>[70611.205879] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[70611.214039] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<0>[70611.222200] [<c0826144>] (msm_read_current_timer) from [<c063ce54>] (__timer_delay+0x28/0x78)
<0>[70611.230359] [<c063ce54>] (__timer_delay) from [<c06ae378>] (krait_mux_set_parent+0xcc/0x118)
<0>[70611.238864] [<c06ae378>] (krait_mux_set_parent) from [<c06afa40>] (krait_notifier_cb+0x54/0xb4)
<0>[70611.247371] [<c06afa40>] (krait_notifier_cb) from [<c03475c8>] (srcu_notifier_call_chain+0x7c/0xf4)
<0>[70611.255792] [<c03475c8>] (srcu_notifier_call_chain) from [<c069b938>] (__clk_notify+0x6c/0x94)
<0>[70611.264820] [<c069b938>] (__clk_notify) from [<c06a0aec>] (clk_change_rate+0x174/0x490)
<0>[70611.273499] [<c06a0aec>] (clk_change_rate) from [<c06a0b24>] (clk_change_rate+0x1ac/0x490)
<0>[70611.281399] [<c06a0b24>] (clk_change_rate) from [<c06a0ebc>] (clk_core_set_rate_nolock+0xb4/0x260)
<0>[70611.289732] [<c06a0ebc>] (clk_core_set_rate_nolock) from [<c06a1828>] (clk_set_rate+0x3c/0x170)
<0>[70611.298672] [<c06a1828>] (clk_set_rate) from [<c07e8a2c>] (_set_opp+0x20c/0x5a4)
<0>[70611.307265] [<c07e8a2c>] (_set_opp) from [<c07e8ea4>] (dev_pm_opp_set_rate+0xe0/0x20c)
<0>[70611.314904] [<c07e8ea4>] (dev_pm_opp_set_rate) from [<c07edcc8>] (__cpufreq_driver_target+0xf0/0x2e8)
<0>[70611.322634] [<c07edcc8>] (__cpufreq_driver_target) from [<c07f150c>] (od_dbs_update+0xc8/0x19c)
<0>[70611.331921] [<c07f150c>] (od_dbs_update) from [<c07f229c>] (dbs_work_handler+0x38/0x74)
<0>[70611.340426] [<c07f229c>] (dbs_work_handler) from [<c033e3d8>] (process_one_work+0x240/0x584)
<0>[70611.348412] [<c033e3d8>] (process_one_work) from [<c033e774>] (worker_thread+0x58/0x59c)
<0>[70611.357092] [<c033e774>] (worker_thread) from [<c034618c>] (kthread+0x128/0x14c)
<0>[70611.365165] [<c034618c>] (kthread) from [<c0300130>] (ret_from_fork+0x14/0x24)
<0>[70611.372541] Exception stack(0xd133ffb0 to 0xd133fff8)
<0>[70611.379572] ffa0:                                     00000000 00000000 00000000 00000000
<0>[70611.384700] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[70611.392857] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
<0>[70611.401019] Code: c51bb2c8 e59f0018 e52d4008 e58de004 (e5903000)
<4>[70611.407439] ---[ end trace 60543cef67ee224b ]---
<0>[70611.423297] Kernel panic - not syncing: Fatal exception
<2>[70611.423330] CPU0: stopping
<4>[70611.427321] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D           5.15.75 #0
<4>[70611.430104] Hardware name: Generic DT based system
<4>[70611.437657] [<c03109fc>] (unwind_backtrace) from [<c030be48>] (show_stack+0x14/0x20)
<4>[70611.442260] [<c030be48>] (show_stack) from [<c063f85c>] (dump_stack_lvl+0x40/0x4c)
<4>[70611.450159] [<c063f85c>] (dump_stack_lvl) from [<c030f48c>] (do_handle_IPI+0x2a0/0x31c)
<4>[70611.457537] [<c030f48c>] (do_handle_IPI) from [<c030f520>] (ipi_handler+0x18/0x2c)
<4>[70611.465436] [<c030f520>] (ipi_handler) from [<c037b328>] (handle_percpu_devid_irq+0x90/0x218)
<4>[70611.473077] [<c037b328>] (handle_percpu_devid_irq) from [<c0374ac8>] (handle_domain_irq+0x64/0x98)
<4>[70611.481671] [<c0374ac8>] (handle_domain_irq) from [<c0659a18>] (gic_handle_irq+0x80/0xb4)
<4>[70611.490525] [<c0659a18>] (gic_handle_irq) from [<c0300b7c>] (__irq_svc+0x5c/0x78)
<4>[70611.498767] Exception stack(0xc5101ed8 to 0xc5101f20)
<4>[70611.506232] 1ec0:                                                       00000000 00004038
<4>[70611.511274] 1ee0: 18932000 dda04500 00000000 c5d1b840 80cdeb20 00000000 dda03770 00004038
<4>[70611.519435] 1f00: 00000000 80c98620 faff4b60 c5101f28 c07f490c c07f492c 60000013 ffffffff
<4>[70611.527591] [<c0300b7c>] (__irq_svc) from [<c07f492c>] (cpuidle_enter_state+0x1a4/0x424)
<4>[70611.535751] [<c07f492c>] (cpuidle_enter_state) from [<c07f4bfc>] (cpuidle_enter+0x3c/0x5c)
<4>[70611.543910] [<c07f4bfc>] (cpuidle_enter) from [<c0356a28>] (do_idle+0x1fc/0x28c)
<4>[70611.551982] [<c0356a28>] (do_idle) from [<c0356dc8>] (cpu_startup_entry+0x1c/0x20)
<4>[70611.559533] [<c0356dc8>] (cpu_startup_entry) from [<c0d010e8>] (start_kernel+0x5f8/0x6f0)```
dmesg-ramoops-1
<1>[70610.697271] Unable to handle kernel NULL pointer dereference at virtual address 00000004
<1>[70610.699194] pgd = 7dfb08bd
<1>[70610.707432] [00000004] *pgd=00000000
<0>[70610.709953] Internal error: Oops: 5 [#1] SMP ARM
<4>[70610.713686] Modules linked in: xt_TCPMSS xt_multiport xt_DSCP xt_dscp nss_ifb ecm iptable_mangle xt_mark xt_mac ipt_REJECT xt_tcpudp xt_limit xt_comment iptable_filter pppoe ppp_async iptable_nat ath10k_pci ath10k_core ath xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE wireguard pptp pppox ppp_generic nft_redir nft_nat nft_masq nft_ct nft_chain_nat nf_nat nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 libchacha20poly1305 curve25519_neon cfg80211 xt_quota xt_pkttype xt_physdev xt_owner xt_addrtype ts_kmp ts_fsm ts_bm slhc sch_cake poly1305_arm nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_quota nft_objref nft_numgen nft_log nft_limit nft_hash nft_counter nft_compat nf_tables nf_reject_ipv4 nf_log_syslog nf_defrag_ipv4 libcurve25519_generic libcrc32c ip_tables crc_ccitt compat chacha_neon 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_cfi_cryptoapi
<4>[70610.714304]  qca_nss_qdisc qca_nss_crypto ledtrig_usbport ledtrig_activity 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_ipmac ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 qca_mcs ip_gre gre nat46 nf_defrag_ipv6 seqiv cmac authencesn authenc 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 ramoops reed_solomon pstore ext4 mbcache jbd2 crc32c_generic
<4>[70610.859335] CPU: 1 PID: 27155 Comm: kworker/1:3 Not tainted 5.15.75 #0
<4>[70610.881568] Hardware name: Generic DT based system
<4>[70610.887904] Workqueue: events dbs_work_handler
<4>[70610.892676] PC is at msm_read_current_timer+0xc/0x24
<4>[70610.897104] LR is at __timer_delay+0x28/0x78
<4>[70610.902224] pc : [<c0826144>]    lr : [<c063ce54>]    psr: a0000093
<4>[70610.906480] sp : d133fd10  ip : 00000000  fp : c5698f80
<4>[70610.912468] r10: c5c18a18  r9 : 00000000  r8 : d133fd74
<4>[70610.917678] r7 : 20000013  r6 : c5211b94  r5 : 00000001  r4 : 00000006
<4>[70610.922887] r3 : c0826138  r2 : c51dd2fc  r1 : 20000093  r0 : 00000004
<4>[70610.929486] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[70610.935997] Control: 10c5787d  Table: 4c49006a  DAC: 00000051
<1>[70610.943198] Register r0 information: non-paged memory
<1>[70610.949014] Register r1 information: non-paged memory
<1>[70610.954047] Register r2 information: non-slab/vmalloc memory
<1>[70610.959083] Register r3 information: non-slab/vmalloc memory
<1>[70610.964813] Register r4 information: non-paged memory
<1>[70610.970454] Register r5 information: non-paged memory
<1>[70610.975402] Register r6 information: non-slab/vmalloc memory
<1>[70610.980438] Register r7 information: non-paged memory
<1>[70610.986167] Register r8 information: non-slab/vmalloc memory
<1>[70610.991115] Register r9 information: NULL pointer
<1>[70610.996843] Register r10 information: slab kmalloc-256 start c5c18a00 pointer offset 24 size 256
<1>[70611.001450] Register r11 information: slab kmalloc-128 start c5698f80 pointer offset 0 size 128
<1>[70611.010303] Register r12 information: NULL pointer
<0>[70611.018718] Process kworker/1:3 (pid: 27155, stack limit = 0x6e2502d9)
<0>[70611.023581] Stack: (0xd133fd10 to 0xd1340000)
<0>[70611.030092] fd00:                                     00000006 c063ce54 c56018dc 00000001
<0>[70611.034532] fd20: 00000101 c06ae378 c56018e8 c578b9c0 ffffffff 00000002 d133fd74 c06afa40
<0>[70611.042687] fd40: 00000000 c578b9c0 ffffffff c03475c8 c5c18a00 c578b9c0 c51a4c4c 00000002
<0>[70611.050845] fd60: 23c34600 00000000 c51d0140 c069b938 c51a7958 c5ddeb40 23c34600 2faf0800
<0>[70611.059006] fd80: d133fdbc c578b9c0 2faf0800 2faf0800 c5629c00 c06a0aec 23c34600 00000000
<0>[70611.067166] fda0: c51d0140 c5629c00 c578b8a8 2faf0800 c5426f00 23c34600 00000000 c51d0140
<0>[70611.075325] fdc0: c5698f80 c06a0b24 c578b840 c5629c00 00000001 c578b9c0 2faf0800 c5629c00
<0>[70611.083484] fde0: c562f480 dda0d010 2faf0800 00000000 c5698f80 c06a0ebc 000f387c 2faf0800
<0>[70611.091644] fe00: 00000000 ffffffff 2faf0800 c51a791c c562f540 c5630140 2faf0800 00000000
<0>[70611.099804] fe20: c562f480 dda0d010 2faf0800 c06a1828 c5712200 c562f500 00000000 c562f480
<0>[70611.107964] fe40: dda0d010 c07e8a2c 2faf0800 c578b9c0 2faf0800 c5712240 c5630140 00000000
<0>[70611.116124] fe60: c578b9c0 c562f480 c51052c4 2faf0800 00000000 c5712200 dda0d010 00000006
<0>[70611.124284] fe80: 2faf0800 c562f500 c5213a10 000c3500 00000000 c07e8ea4 c51b86dc c03475c8
<0>[70611.132443] fea0: c5712c00 2faf0800 c5712c00 00000002 00000000 00000000 000927c0 c07edcc8
<0>[70611.140604] fec0: c50cb1c8 ffffffff c5712c00 000927c0 000c3500 00000024 dda14540 c5712c00
<0>[70611.148763] fee0: c5c21300 c5c21280 c5c21300 c5f50300 c5c21280 dda17305 cdb8d640 c07f150c
<0>[70611.156923] ff00: c5c21338 00000000 c5c21304 c51b891c 00000000 00000040 dda17305 c07f229c
<0>[70611.165082] ff20: c5c21338 cdb8d600 dda14100 dda17300 00000000 c033e3d8 d133e000 dda14100
<0>[70611.173242] ff40: dda14118 cdb8d600 dda14100 cdb8d618 dda14118 c5103d00 d133e000 dda142c0
<0>[70611.181401] ff60: 00000000 c033e774 d1343ed0 ca310c80 cc0b18c0 c033e71c cdb8d600 00000000
<0>[70611.189561] ff80: d1343ed0 cc0b18e0 00000000 c034618c ca310c80 c0346064 00000000 00000000
<0>[70611.197720] ffa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
<0>[70611.205879] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[70611.214039] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<0>[70611.222200] [<c0826144>] (msm_read_current_timer) from [<c063ce54>] (__timer_delay+0x28/0x78)
<0>[70611.230359] [<c063ce54>] (__timer_delay) from [<c06ae378>] (krait_mux_set_parent+0xcc/0x118)
<0>[70611.238864] [<c06ae378>] (krait_mux_set_parent) from [<c06afa40>] (krait_notifier_cb+0x54/0xb4)
<0>[70611.247371] [<c06afa40>] (krait_notifier_cb) from [<c03475c8>] (srcu_notifier_call_chain+0x7c/0xf4)
<0>[70611.255792] [<c03475c8>] (srcu_notifier_call_chain) from [<c069b938>] (__clk_notify+0x6c/0x94)
<0>[70611.264820] [<c069b938>] (__clk_notify) from [<c06a0aec>] (clk_change_rate+0x174/0x490)
<0>[70611.273499] [<c06a0aec>] (clk_change_rate) from [<c06a0b24>] (clk_change_rate+0x1ac/0x490)
<0>[70611.281399] [<c06a0b24>] (clk_change_rate) from [<c06a0ebc>] (clk_core_set_rate_nolock+0xb4/0x260)
<0>[70611.289732] [<c06a0ebc>] (clk_core_set_rate_nolock) from [<c06a1828>] (clk_set_rate+0x3c/0x170)
<0>[70611.298672] [<c06a1828>] (clk_set_rate) from [<c07e8a2c>] (_set_opp+0x20c/0x5a4)
<0>[70611.307265] [<c07e8a2c>] (_set_opp) from [<c07e8ea4>] (dev_pm_opp_set_rate+0xe0/0x20c)
<0>[70611.314904] [<c07e8ea4>] (dev_pm_opp_set_rate) from [<c07edcc8>] (__cpufreq_driver_target+0xf0/0x2e8)
<0>[70611.322634] [<c07edcc8>] (__cpufreq_driver_target) from [<c07f150c>] (od_dbs_update+0xc8/0x19c)
<0>[70611.331921] [<c07f150c>] (od_dbs_update) from [<c07f229c>] (dbs_work_handler+0x38/0x74)
<0>[70611.340426] [<c07f229c>] (dbs_work_handler) from [<c033e3d8>] (process_one_work+0x240/0x584)
<0>[70611.348412] [<c033e3d8>] (process_one_work) from [<c033e774>] (worker_thread+0x58/0x59c)
<0>[70611.357092] [<c033e774>] (worker_thread) from [<c034618c>] (kthread+0x128/0x14c)
<0>[70611.365165] [<c034618c>] (kthread) from [<c0300130>] (ret_from_fork+0x14/0x24)
<0>[70611.372541] Exception stack(0xd133ffb0 to 0xd133fff8)
<0>[70611.379572] ffa0:                                     00000000 00000000 00000000 00000000
<0>[70611.384700] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[70611.392857] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
<0>[70611.401019] Code: c51bb2c8 e59f0018 e52d4008 e58de004 (e5903000)
<4>[70611.407439] ---[ end trace 60543cef67ee224b ]---```
1 Like

No. I'm running 'ondemand'.

root@NAS:~# uptime
 06:24:28 up 4 days, 15:29,  load average: 0.03, 0.03, 0.00
root@NAS:~# cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
ondemand
root@NAS:~# cat /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
ondemand

If, in addition to including the patch that qosmio mentioned above, you modify the diffconfig by adding these lines to your diffconfig

# CONFIG_PACKAGE_kmod-pppol2tp is not set
CONFIG_PACKAGE_kmod-qca-nss-crypto=y
CONFIG_PACKAGE_kmod-qca-nss-drv-igs=y
CONFIG_PACKAGE_curl=y

you will make success.

EDIT: But what is more curious is that once you have compiled the firmware, you can successfully compile it again by commenting the following lines in diffconfig:

# CONFIG_PACKAGE_kmod-qca-nss-crypto is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-igs is not set

or just only commenting one of them.
It seems that there is a dependency problem between the different parts of the NSS package.

3 Likes

Thanks for looking at that. I remember seeing this dependency issue a while back. I hadn’t revisited it since I started selecting all non-essential NSS packages as modular <M>. Even though my setup doesn’t require any of the ppp/pppoe/ipec etc packages, I wanted to be sure it builds for others.

I’ll look into tweaking this when I get the chance. Dependency tracking in buildroot is pretty frustrating to lock down, to say the least...

2 Likes