Qualcommax NSS Build

Here are my thermals for that zone. For context, I have my RAX120v2 mounted vertically on a wall with the ethernet ports facing down towards the floor. I have way more wifi traffic than ethernet traffic at the moment until I get my house wired for ethernet. I do have a 5gbe switch connected to the multi gig port on the router. Currently my house stays around 70 deg F. on average.
Edit: included the wrong graph, fixed

1 Like

no work with my ax6
maybe ax6 don't have temp sensor.

Hard to imagine that an x86_64 solution will consume less power than an ipq8065 ARMv7 SoC tho.

I would think the ipq8065 router uses quite a bit of juice for the WiFi interfaces.

My ISP only provides IPv4 over PPPoE and i have no problems with the current state of qosmios repo

I also tried it on ipq6000/Linksys MR7350 and WiFi crashed for me. NSS dts and one patch from @shi05275 and the rest stuff from @qosmio repo.

Summary
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x51af8014]
[    0.000000] Linux version 6.6.30 (vladdrako@Vladdrako-PC) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.1.0 r28188-2122aea90e) 14.1.0, GNU ld (GNU Binutils) 2.42) #0 SMP Wed May 29 07:32:43 2024
[    0.000000] Machine model: Linksys MR7350
[    0.000000] OF: reserved mem: 0x0000000000060000..0x0000000000065fff (24 KiB) nomap non-reusable memory@60000
[    0.000000] OF: reserved mem: 0x0000000040000000..0x0000000040ffffff (16384 KiB) nomap non-reusable nss@40000000
[    0.000000] OF: reserved mem: 0x000000004a100000..0x000000004a4fffff (4096 KiB) nomap non-reusable bootloader@4a100000
[    0.000000] OF: reserved mem: 0x000000004a600000..0x000000004a9fffff (4096 KiB) nomap non-reusable tzapp@4a600000
[    0.000000] OF: reserved mem: 0x000000004aa00000..0x000000004aafffff (1024 KiB) nomap non-reusable smem@4aa00000
[    0.000000] OF: reserved mem: 0x000000004ab00000..0x000000004e1fffff (56320 KiB) nomap non-reusable wcnss@4ab00000
[    0.000000] OF: reserved mem: 0x0000000050000000..0x00000000500fffff (1024 KiB) nomap non-reusable q6_etr_dump@1
[    0.000000] OF: reserved mem: 0x0000000050100000..0x00000000501fffff (1024 KiB) nomap non-reusable m3_dump@50100000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000040ffffff]
[    0.000000]   node   0: [mem 0x0000000041000000-0x000000004a0fffff]
[    0.000000]   node   0: [mem 0x000000004a100000-0x000000004a4fffff]
[    0.000000]   node   0: [mem 0x000000004a500000-0x000000004a5fffff]
[    0.000000]   node   0: [mem 0x000000004a600000-0x000000004e1fffff]
[    0.000000]   node   0: [mem 0x000000004e200000-0x000000004fffffff]
[    0.000000]   node   0: [mem 0x0000000050000000-0x00000000501fffff]
[    0.000000]   node   0: [mem 0x0000000050200000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 19 pages/cpu s38376 r8192 d31256 u77824
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: init=/sbin/init rootfstype=squashfs ubi.mtd=rootfs root=mtd:squashfs rootwait ubi.block=0,rootfs root=/dev/ubiblock0_0 mitigations=off noirqdebug cgroup_disable=memory
[    0.000000] IRQ lockup detection disabled
[    0.000000] cgroup: Disabling memory control group subsystem
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 1MB
[    0.000000] software IO TLB: mapped [mem 0x000000005f4c0000-0x000000005f5c0000] (1MB)
[    0.000000] Memory: 412364K/524288K available (11712K kernel code, 1014K rwdata, 1688K rodata, 1664K init, 314K bss, 111924K reserved, 0K cma-reserved)
[    0.000000] le9 Unofficial (le9uo) working set protection 1.6 by Masahito Suzuki (forked from hakavlad's original le9 patch)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 12 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: 0xffffffc080010000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 24.00MHz (virt/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000105] Console: colour dummy device 80x25
[    0.000117] printk: console [tty0] enabled
[    0.000645] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=192000)
[    0.000671] pid_max: default: 32768 minimum: 301
[    0.000967] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.000994] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.001787] spectre-v4 mitigation disabled by command-line option
[    0.002613] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.002809] rcu: Hierarchical SRCU implementation.
[    0.002824] rcu:     Max phase no-delay instances is 1000.
[    0.002999] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003418] smp: Bringing up secondary CPUs ...
[    0.004002] Detected VIPT I-cache on CPU1
[    0.004102] CPU1: Booted secondary processor 0x0000000001 [0x51af8014]
[    0.004713] Detected VIPT I-cache on CPU2
[    0.004783] CPU2: Booted secondary processor 0x0000000002 [0x51af8014]
[    0.005355] Detected VIPT I-cache on CPU3
[    0.005423] CPU3: Booted secondary processor 0x0000000003 [0x51af8014]
[    0.005504] smp: Brought up 1 node, 4 CPUs
[    0.005571] SMP: Total of 4 processors activated.
[    0.005584] CPU features: detected: 32-bit EL0 Support
[    0.005596] CPU features: detected: CRC32 instructions
[    0.005679] CPU: All CPU(s) started at EL1
[    0.005692] alternatives: applying system-wide alternatives
[    0.019930] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 15290083570200000 ns
[    0.019986] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.020236] pinctrl core: initialized pinctrl subsystem
[    0.021079] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.021685] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.021740] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.021786] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.022178] thermal_sys: Registered thermal governor 'step_wise'
[    0.022186] thermal_sys: Registered thermal governor 'user_space'
[    0.022278] cpuidle: using governor menu
[    0.022558] ASID allocator initialised with 65536 entries
[    0.075982] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    0.079322] Modules: 28640 pages in range for non-PLT usage
[    0.079334] Modules: 520160 pages in range for PLT usage
[    0.080530] cryptd: max_cpu_qlen set to 1000
[    0.082356] SCSI subsystem initialized
[    0.082564] usbcore: registered new interface driver usbfs
[    0.082611] usbcore: registered new interface driver hub
[    0.082661] usbcore: registered new device driver usb
[    0.083122] qcom_scm: convention: smc arm 64
[    0.084452] s2: Bringing 0uV into 725000-725000uV
[    0.085097] clocksource: Switched to clocksource arch_sys_counter
[    0.085578] l2: Bringing 0uV into 1800000-1800000uV
[    0.085750] qcom_rpm_smd_regulator remoteproc:glink-edge:rpm-requests:regulators: Supply for l2 (l2) resolved to itself
[    0.089468] NET: Registered PF_INET protocol family
[    0.089610] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.090370] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.090405] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.090434] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.090496] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.090649] TCP: Hash tables configured (established 4096 bind 4096)
[    0.090744] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.090781] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.090931] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.092948] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.093020] zbud: loaded
[    0.093219] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.093446] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (CMODE_SIZE) (c) 2001-2006 Red Hat, Inc.
[    0.129771] io scheduler mq-deadline registered
[    0.129796] io scheduler kyber registered
[    0.129847] io scheduler bfq registered
[    0.131722] qcom-qmp-usb-phy 78000.ssphy: supply vdda-phy not found, using dummy regulator
[    0.131897] qcom-qmp-usb-phy 78000.ssphy: supply vdda-pll not found, using dummy regulator
[    0.133589] qcom-qusb2-phy 79000.qusb: supply vdd not found, using dummy regulator
[    0.133750] qcom-qusb2-phy 79000.qusb: supply vdda-pll not found, using dummy regulator
[    0.133822] qcom-qusb2-phy 79000.qusb: supply vdda-phy-dpdm not found, using dummy regulator
[    0.134037] qcom-qusb2-phy 79000.qusb: Registered Qcom-QUSB2 phy
[    0.142649] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.144075] msm_serial 78b0000.serial: msm_serial: detected port #1
[    0.144141] msm_serial 78b0000.serial: uartclk = 24000000
[    0.144479] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 22, base_baud = 1500000) is a MSM
[    0.144972] msm_serial 78b1000.serial: msm_serial: detected port #0
[    0.145023] msm_serial 78b1000.serial: uartclk = 1843200
[    0.145344] 78b1000.serial: ttyMSM0 at MMIO 0x78b1000 (irq = 23, base_baud = 115200) is a MSM
[    0.145395] msm_serial: console setup on port #0
[    0.145566] printk: console [ttyMSM0] enabled
[    1.037995] msm_serial: driver initialized
[    1.046293] loop: module loaded
[    1.046777] zram: Added device: zram0
[    1.050177] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xaa
[    1.052648] nand: Macronix MX30UF2G18AC
[    1.059217] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.062676] qcom-nandc 79b0000.nand-controller: Opcode not supported: 238
[    1.070293] Block protection check failed
[    1.098312] i2c_dev: i2c /dev entries driver
[    1.104434] sdhci: Secure Digital Host Controller Interface driver
[    1.104501] sdhci: Copyright(c) Pierre Ossman
[    1.109644] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.116905] remoteproc remoteproc0: releasing cd00000.remoteproc
[    1.122298] NET: Registered PF_INET6 protocol family
[    1.126525] Segment Routing with IPv6
[    1.130644] In-situ OAM (IOAM) with IPv6
[    1.134308] NET: Registered PF_PACKET protocol family
[    1.138234] Bridge firewalling registered
[    1.143276] 8021q: 802.1Q VLAN Support v1.8
[    1.175298] lrng_drng_mgr: Initial DRNG initialized triggering first seeding
[    1.176540] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    1.181788] cpr4_ipq807x_apss_read_fuse_data: apc_corner: speed bin = 0
[    1.188471] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR fusing revision = 2
[    1.195091] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR misc fuse value = 0
[    1.202777] cpr4_ipq807x_apss_read_fuse_data: apc_corner: Voltage boost fuse config = 0 boost = disable
[    1.210273] cpr3_mem_acc_init: apc: not using memory accelerator regulator
[    1.219400] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      SVS: open-loop= 675000 uV
[    1.226350] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      NOM: open-loop= 787500 uV
[    1.236338] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused    TURBO: open-loop= 850000 uV
[    1.246140] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused   STURBO: open-loop= 900000 uV
[    1.255976] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      SVS: quot[ 7]= 597, quot_offset[ 7]=   0
[    1.265766] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      NOM: quot[ 7]= 800, quot_offset[ 7]= 200
[    1.276613] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused    TURBO: quot[ 7]= 905, quot_offset[ 7]= 105
[    1.287549] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused   STURBO: quot[ 7]= 980, quot_offset[ 7]=  75
[    1.298806] cpr3_regulator_init_ctrl: apc: Default CPR mode = closed-loop
[    1.301454] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xaa
[    1.316158] nand: Macronix MX30UF2G18AC
[    1.322582] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.326174] qcom-nandc 79b0000.nand-controller: Opcode not supported: 238
[    1.333790] Block protection check failed
[    1.340993] 20 qcomsmem partitions found on MTD device qcom_nand.0
[    1.344651] Creating 20 MTD partitions on "qcom_nand.0":
[    1.350714] 0x000000000000-0x000000180000 : "0:sbl1"
[    1.357904] 0x000000180000-0x000000280000 : "0:mibib"
[    1.361699] lrng_es_mgr: LRNG initial entropy level 39 bits of entropy
[    1.366741] 0x000000280000-0x000000600000 : "0:qsee"
[    1.375796] 0x000000600000-0x000000680000 : "0:devcfg"
[    1.378465] 0x000000680000-0x000000700000 : "0:rpm"
[    1.383433] 0x000000700000-0x000000780000 : "0:cdt"
[    1.388158] 0x000000780000-0x000000800000 : "0:appsblenv"
[    1.393078] 0x000000800000-0x000000980000 : "0:appsbl"
[    1.399417] 0x000000980000-0x000000a00000 : "0:art"
[    1.403637] 0x000000a00000-0x000001300000 : "0:wififw"
[    1.407875] lrng_es_mgr: LRNG minimally seeded with 129 bits of entropy
[    1.419777] 0x000001300000-0x000001380000 : "0:ethphyfw"
[    1.420663] 0x000001380000-0x000001400000 : "u_env"
[    1.425701] 0x000001400000-0x000001440000 : "s_env"
[    1.430151] 0x000001440000-0x000001480000 : "devinfo"
[    1.434948] 0x000001480000-0x000001c80000 : "kernel"
[    1.445453] lrng_es_mgr: LRNG fully operational
[    1.445505] lrng_es_mgr: LRNG fully seeded with 256 bits of entropy
[    1.449283] 0x000001c80000-0x000006680000 : "rootfs"
[    1.510157] mtd: setting mtd15 (rootfs) as root device
[    1.510467] mtdsplit: no squashfs found in "rootfs"
[    1.514251] 0x000006680000-0x000006e80000 : "alt_kernel"
[    1.525427] 0x000006e80000-0x00000b880000 : "alt_rootfs"
[    1.580668] 0x00000b880000-0x00000ba80000 : "sysdiag"
[    1.582767] 0x00000ba80000-0x00000fe80000 : "syscfg"
[    1.644034] core: _opp_supported_by_regulators: OPP minuV: 7 maxuV: 7, not supported by regulator
[    1.644106] cpu cpu0: _opp_add: OPP not supported by regulators (1608000000)
[    1.652275] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 799999 KHz, changing to: 864000 KHz
[    1.661508] remoteproc remoteproc0: cd00000.remoteproc is available
[    1.670103] ubi0: attaching mtd15
[    1.946008] ubi0: scanning is finished
[    1.965518] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 160 LEBs
[    1.966061] ubi0: attached mtd15 (name "rootfs", size 74 MiB)
[    1.970952] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.976783] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.983540] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.990397] ubi0: good PEBs: 592, bad PEBs: 0, corrupted PEBs: 0
[    1.997166] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    2.003415] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1716967963
[    2.010458] ubi0: available PEBs: 0, total reserved PEBs: 592, PEBs reserved for bad PEB handling: 40
[    2.019754] ubi0: background thread "ubi_bgt0d" started, PID 632
[    2.020480] block ubiblock0_0: created from ubi0:0(rooβ–’[    2.049646] VFS: Mounted root (squashfs filesystem) readonly on device 253:0.
[    2.050443] Freeing unused kernel memory: 1664K
[    2.055986] Run /sbin/init as init process
[    2.333039] init: Console is alive
[    2.333326] init: - watchdog -
[    3.237799] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.249918] Key type encrypted registered
[    3.257948] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    3.290243] JFS: nTxBlock = 3234, nTxLock = 25876
[    3.328340] SGI XFS with security attributes, no debug enabled
[    3.330526] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.378693] ssdk_dt_parse_interrupt[934]:INFO:intr-gpio does not exist
[    3.781538] __adpt_hppe_uniphy_psgmii_mode_set[1194]:INFO:uniphy 0 psgmii channel selection
[    3.907236] regi_init[2525]:INFO:Initializing CPPE Done!!
[    3.907356] regi_init[2574]:INFO:qca-ssdk module init succeeded!
[    3.914380] EDMA ver 1 hw init
[    3.917940] EDMA HW Reset completed succesfully
[    3.920580] Num rings - TxDesc:1 (23-23) TxCmpl:1 (23-23)
[    3.924979] RxDesc:1 (15-15) RxFill:1 (7-7)
[    3.930950] dp1: ppe offload disabled: 0 for macid 1
[    3.934540] dp1: Switch attached to macid 1 status: 0
[    4.136154] GMAC2(ffffff80050eb940) Invalid MAC@ - using 76:bf:0e:1a:70:95
[    4.136214] dp2: ppe offload disabled: 0 for macid 2
[    4.141954] dp2: Switch attached to macid 2 status: 0
[    4.207010] GMAC3(ffffff800542c940) Invalid MAC@ - using 7e:37:2f:1b:f6:27
[    4.207073] dp3: ppe offload disabled: 0 for macid 3
[    4.212791] dp3: Switch attached to macid 3 status: 0
[    4.286931] GMAC4(ffffff800542d940) Invalid MAC@ - using fe:dc:57:c7:6c:a3
[    4.286990] dp4: ppe offload disabled: 0 for macid 4
[    4.292710] dp4: Switch attached to macid 4 status: 0
[    4.334986] GMAC5(ffffff800543e940) Invalid MAC@ - using 42:36:49:f5:fa:2a
[    4.335050] dp5: ppe offload disabled: 0 for macid 5
[    4.340767] dp5: Switch attached to macid 5 status: 0
[    4.414811] **********************************************************
[    4.414867] * NSS Data Plane driver
[    4.420236] **********************************************************
[    4.441208] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.441276] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    4.446525] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000008000000010
[    4.453206] xhci-hcd xhci-hcd.1.auto: irq 39, io mem 0x08a00000
[    4.462644] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.468430] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    4.473997] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    4.482022] hub 1-0:1.0: USB hub found
[    4.488177] hub 1-0:1.0: 1 port detected
[    4.509574] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.510170] hub 2-0:1.0: USB hub found
[    4.516805] hub 2-0:1.0: 1 port detected
[    4.545669] usbcore: registered new interface driver usb-storage
[    4.546778] usbcore: registered new interface driver uas
[    4.551055] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.563149] init: - preinit -
[    4.859016] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    5.089977] hub 1-1:1.0: USB hub found
[    5.090340] hub 1-1:1.0: 4 ports detected
[    5.253280] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[    5.314230] hub 2-1:1.0: USB hub found
[    5.314610] hub 2-1:1.0: 4 ports detected
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.557112] usb 1-1.1: new high-speed USB device number 3 using xhci-hcd
[    6.581235] usb 2-1.4: new SuperSpeed USB device number 3 using xhci-hcd
[    6.642201] hub 2-1.4:1.0: USB hub found
[    6.642591] hub 2-1.4:1.0: 4 ports detected
[    6.757115] usb 1-1.2: new high-speed USB device number 4 using xhci-hcd
.......
[    7.816953] block: attempting to load /tmp/overlay/upper/etc/config/fstab
[    7.817106] block: unable to load configuration (fstab: Entry not found)
[    7.822856] block: attempting to load /tmp/overlay/etc/config/fstab
[    7.829667] block: unable to load configuration (fstab: Entry not found)
[    7.835585] block: attempting to load /etc/config/fstab
[    7.842575] usb 2-1.1: new SuperSpeed USB device number 4 using xhci-hcd
[    7.845113] block: unable to load configuration (fstab: Entry not found)
[    7.854411] block: no usable configuration
[    7.862401] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    7.864989] block: unable to load configuration (fstab: Entry not found)
[    7.871848] block: attempting to load /tmp/ubifs_cfg/etc/config/fstab
[    7.878790] block: unable to load configuration (fstab: Entry not found)
[    7.885117] block: attempting to load /etc/config/fstab
[    7.889517] scsi host0: uas
[    7.892006] block: unable to load configuration (fstab: Entry not found)
[    7.897767] scsi 0:0:0:0: Direct-Access     TOSHIBA  DT01ACA300       3102 PQ: 0 ANSI: 6
[    7.899691] block: no usable configuration
[    7.915986] mount_root: overlay filesystem has not been fully initialized yet
[    7.918837] mount_root: switching to ubifs overlay
[    7.928493] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    7.947145] procd: - early -
[    7.947265] procd: - watchdog -
[    8.518831] procd: - watchdog -
[    8.528459] procd: - ubus -
[    8.680425] procd: - init -
Please press Enter to activate this console.
[    8.914930] I/O scheduler: non-rotational device 'mtdblock16' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[    8.917238] usb 2-1.2: new SuperSpeed USB device number 5 using xhci-hcd
[    8.942266] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.533527] usb 1-1.4.3: USB disconnect, device number 7
[   16.989154] ..ready
[   18.033156] sd 0:0:0:0: [sda] Attached SCSI disk
[   18.060526] NET: Registered PF_ALG protocol family
[   18.086168] Key type dns_resolver registered
[   18.097933] Key type cifs.idmap registered
[   18.115475] tun: Universal TUN/TAP device driver, 1.6
[   18.165971] I/O scheduler: rotational device 'sda' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline kyber [bfq] '
[   18.177098] nss_driver - fw of size 859208  bytes copied to load addr: 40000000, nss_id : 0
[   18.188878] Supported Frequencies -
[   18.188891] 187.2 MHz
[   18.195448] 748.8 MHz
[   18.199212] 1.4976 GHz
[   18.201366]
[   18.206172] ffffffc0797372c0: set sdma ffffff800628f700
[   18.207894] node size 2 # items 4
[   18.212738] memory: 40000000 536870912 (avl 468905984) items 4 active_cores 1
[   18.216378] NSS DDR size is 0x1000000
[   18.223338] ffffffc0797372c0: NSS core 0 DDR from 40000000 to 41000000
[   18.227094] ffffffc0797372c0: meminfo init succeed
[   18.237422] ffffffc0797372c0: All resources initialized and nss core0 has been brought out of reset
[   18.239627] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   18.252324] nat46: module (version 4c5beee236841724219598fabb1edc93d4f08ce5) loaded.
[   18.262572] node size 2 # items 4
[   18.262636] memory: 40000000 536870912 (avl 469061632) items 4 active_cores 1
[   18.262675] QCA multicast snooping installed successfully
[   18.265030] NSS DDR size is 0x1000000
[   18.277427] ffffffc0797372c0: nss core 0 booted successfully
[   18.292906] Jool: Core Jool v4.1.11.0 module inserted.
[   18.293921] NAT64 Jool v4.1.11.0 module inserted.
[   18.297708] SIIT Jool v4.1.11.0 module inserted.
[   18.326635] cryptodev: driver 1.13 loaded.
[   18.329044] nss-macsec1 DT exist!
[   18.329853] nss_macsec init success
[   18.339160] <NSS-CRYPTO>:module loaded Build_ID - 05/29/24, 09:17:59 SoC=ipq60xx
[   18.346415] hid: raw HID events driver (C) Jiri Kosina
[   18.348193] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   18.350764] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   18.356124] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   18.362462] GACT probability on
[   18.367673] Mirror/redirect action on
[   18.374874] u32 classifier
[   18.374916]     input device check on
[   18.376476]     Actions configured
[   18.390831] ntfs3: Max link count 4000
[   18.390882] ntfs3: Enabled Linux POSIX ACLs support
[   18.398179] fuse: init (API version 7.39)
[   18.403565] I/O scheduler: non-rotational device 'nbd0' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[   18.414835] usbcore: registered new interface driver cdc_wdm
[   18.427540] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4
[   18.431166] Backport generated by backports.git 193becf2
[   18.564160] I/O scheduler: non-rotational device 'nbd1' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[   18.626062] NET: Registered PF_QIPCRTR protocol family
[   18.649822] usbcore: registered new interface driver ums-alauda
[   18.651280] usbcore: registered new interface driver ums-cypress
[   18.656529] usbcore: registered new interface driver ums-datafab
[   18.662368] usbcore: registered new interface driver ums-freecom
[   18.668105] usbcore: registered new interface driver ums-isd200
[   18.674155] usbcore: registered new interface driver ums-jumpshot
[   18.680245] usbcore: registered new interface driver ums-karma
[   18.686411] usbcore: registered new interface driver ums-sddr09
[   18.691736] usbcore: registered new interface driver ums-sddr55
[   18.697738] usbcore: registered new interface driver ums-usbat
[   18.704114] usbcore: registered new interface driver usbhid
[   18.708043] usbhid: USB HID core driver
[   18.714544] usbcore: registered new interface driver usblp
[   18.723552] I/O scheduler: non-rotational device 'nbd2' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[   18.724159] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   18.734861] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   18.771072] xt_time: kernel timezone is -0000
[   18.773209] usbcore: registered new interface driver cdc_ether
[   18.776583] usbcore: registered new interface driver cdc_ncm
[   18.843756] usbcore: registered new interface driver rndis_host
[   18.859309] ath11k c000000.wifi: ipq6018 hw1.0
[   18.859357] ath11k c000000.wifi: FW memory mode: 2
[   18.863059] remoteproc remoteproc0: powering up cd00000.remoteproc
[   18.867630] I/O scheduler: non-rotational device 'nbd3' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[   18.874834] remoteproc remoteproc0: Booting fw image IPQ6018/q6_fw.mdt, size 7340
[   19.052244] I/O scheduler: non-rotational device 'nbd4' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[   19.341108] usb 1-1.4.3: new low-speed USB device number 8 using xhci-hcd
[   19.460271] I/O scheduler: non-rotational device 'nbd5' was 'none [mq-deadline] kyber bfq ', now 'none mq-deadline [kyber] bfq '
[   19.492246] remoteproc remoteproc0: remote processor cd00000.remoteproc is now up
[   19.495450] qcom-q6-mpd cd00000.remoteproc: fatal error received:
[   19.495450] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.5.0.1-03982-QCAHKSWPL_SILICONZ-3
[   19.495450] Image Variant : IMAGE_VARIANT_STRING=6018.wlanfw.evalQ
[   19.495450]
[   19.495450] platform_hk.c:754 Assertion remote_ddr_mem_req->mem_seg[idx].addr != 0x0 failedparam0 :zero, param1 :zero, param2 :zero.
[   19.495450] Thread ID      : 0x00000072  Thread name    : wlan_platform  Process ID     : 0
[   19.495450] Register:
[   19.495450] SP : 0x4af7e098
[   19.495450] FP : 0x4af7e0a0
[   19.495450] PC : 0x4ac8db68
[   19.495450] SSR : 0x00000008
[   19.495450] BADVA : 0x00020000
[   19.495450] LR : 0x4ac8d304
[   19.495450]
[   19.495450] Stack Dump
[   19.495450] from : 0x4af7e098
[   19.495450] to   : 0x4af7e430
[   19.495450]
[   19.561632] remoteproc remoteproc0: crash detected in cd00000.remoteproc: type fatal error
[   19.583544] remoteproc remoteproc0: handling crash #1 in cd00000.remoteproc
[   19.583945] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.591747] remoteproc remoteproc0: recovering cd00000.remoteproc

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.XF.0.3-00077-IPQ60xxLZB-2
S - IMAGE_VARIANT_STRING=IPQ6018LA
S - OEM_IMAGE_VERSION_STRING=crm-ubuntu64
S - Boot Interface: NAND
S - Secure Boot: Off
S - Boot Config @ 0x000a602c = 0x000002e5
S - JTAG ID @ 0x000a607c = 0x001390e1
S - OEM ID @ 0x000a6080 = 0x00000000
S - Serial Number @ 0x000a4128 = 0xcb4a3f56
S - OEM Config Row 0 @ 0x000a4188 = 0x0000000000000000
S - OEM Config Row 1 @ 0x000a4190 = 0x0000000000000000
S - Feature Config Row 0 @ 0x000a4130 = 0x0000800018200021
S - Feature Config Row 1 @ 0x000a4138 = 0x02c3e83783000009
S - PBL Patch Ver: 1
S - I-cache: On
S - D-cache: On
B -      3413 - PBL, Start
B -       592 - bootable_media_detect_entry, Start
B -      4339 - bootable_media_detect_success, Start
B -      5147 - elf_loader_entry, Start
B -      5319 - auth_hash_seg_entry, Start
B -      7786 - auth_hash_seg_exit, Start
B -      8280 - elf_segs_hash_verify_entry, Start
B -    110446 - elf_segs_hash_verify_exit, Start
B -    114871 - auth_xbl_sec_hash_seg_entry, Start
B -    115014 - auth_xbl_sec_hash_seg_exit, Start
B -    121566 - xbl_sec_segs_hash_verify_entry, Start
B -    121566 - xbl_sec_segs_hash_verify_exit, Start
B -    122496 - PBL, End
B -    103273 - SBL1, Start
B -    243329 - GCC [RstStat:0x2, RstDbg:0x420100] WDog Stat : 0x4
B -    245769 - clock_init, Start
D -      2867 - clock_init, Delta
B -    254370 - boot_flash_init, Start
D -     26199 - boot_flash_init, Delta
B -    283741 - sbl1_ddr_set_default_params, Start
D -       213 - sbl1_ddr_set_default_params, Delta
B -    290360 - boot_config_data_table_init, Start
D -      4758 - boot_config_data_table_init, Delta - (575 Bytes)
B -    300181 - CDT Version:2,Platform ID:8,Major ID:3,Minor ID:2,Subtype:0
B -    305030 - Image Load, Start
D -      6619 - OEM_MISC Image Loaded, Delta - (0 Bytes)
B -    314363 - Image Load, Start
D -      5063 - PMIC Image Loaded, Delta - (0 Bytes)
B -    322232 - sbl1_ddr_set_params, Start
B -    327234 - CPR configuration: 0x366
B -    330437 - Pre_DDR_clock_init, Start
D -       183 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta

I had both enabled so far but it provides a reboot on the nbg7815 when using cryptsetup to decrypt a lukscrypt device. So I disabled it now. I had no issues with both until I used cryptsetup.

Maybe something to be noted in the Readme.

1 Like

Appreciate the info, thanks.

I managed to get things working again. I manually repicked my configuration and kernel configuration in menuconfig / kernel_menuconfig and after that WAN worked again, so Im guessing it must have been some issue related to an old configuration option causing issues instead of just being dropped or something like that...

@PlanK - perhaps this will work for fixing your "WAN wont connect" issue as well.

1 Like

@qosmio Greeting! After servel research on IPQ6018 WiFi, I found Assertion remote_ddr_mem_req->mem_seg[idx].addr != 0x0 failed is not the issue (Delete 188 patch worked!). However, I face:

Sat May 25 03:59:08 2024 kern.info kernel: [  112.799699] ath11k c000000.wifi: nss init soc nss if_num 203 userpd_id 0
Sat May 25 03:59:08 2024 kern.warn kernel: [  112.802714] ath11k c000000.wifi: nss state in default init state
Sat May 25 03:59:08 2024 kern.warn kernel: [  112.809614] ath11k c000000.wifi: NSS SOC Initialization Failed :-22
Sat May 25 03:59:08 2024 kern.err kernel: [  112.815474] ath11k c000000.wifi: failed to setup nss driver interface-22
Sat May 25 03:59:08 2024 kern.err kernel: [  112.824644] ath11k c000000.wifi: failed to create pdev core: -22

What should I do?

I would strongly suggest that you only pick the things you need in your config and let make defconfig do the rest. With dependencies changing so often, a full config of your size is unmaintainable.

Here is my config for example:

3 Likes

I always use the reduced config that scripts/diffconfig produces as the base config for a new build, and then expand it out with defconfig or menuconfig. Even still, for my build the diffconfig is 837 lines. Which is way shorter than the full config, but still gives quite a few config items that might potentially cause problems in a new version.

compiling iproute2 with gcc 14 was fixed by upstream, but there are two patches incompatible

400-add-nss-qdisc.patch
500-add-nssmirred.patch

, and apply

diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile
index 85d9f437f6..51606eba08 100644
--- a/package/network/utils/iproute2/Makefile
+++ b/package/network/utils/iproute2/Makefile
@@ -168,7 +168,7 @@ endef
 
 TARGET_LDFLAGS += -Wl,--as-needed
 TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
-
+TARGET_CFLAGS+=-Wno-error=incompatible-pointer-types
 MAKE_FLAGS += \
 	KERNEL_INCLUDE="$(LINUX_DIR)/include/uapi" \
 	SHARED_LIBS=$(SHARED_LIBS) \

to package/network/utils/iproute2/Makefile. this makes tc-tiny build successfully.

I have tried to compile from scratch but I get this build error.

Another test on ipq600/Linksys-MR7350.
Crypto driver crashed while connecting to WiFi or openssl benchmark (crashed on des-ede3 test)

Summary
[   36.276347] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000044
[   36.276421] Mem abort info:
[   36.284240]   ESR = 0x0000000096000006
[   36.286740]   EC = 0x25: DABT (current EL), IL = 32 bits
[   36.290563]   SET = 0, FnV = 0
[   36.296033]   EA = 0, S1PTW = 0
[   36.298890]   FSC = 0x06: level 2 translation fault
[   36.301932] Data abort info:
[   36.306794]   ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
[   36.309921]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[   36.315215]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[   36.320336] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000049ed7000
[   36.325721] [0000000000000044] pgd=0800000057169003, p4d=0800000057169003, pud=0800000057169003, pmd=0000000000000000
[   36.332071] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
[   36.342640] Modules linked in: nf_nat_amanda nf_conntrack_amanda ath11k_ahb(O) ath11k(O) sch_mqprio sch_fq_pie rndis_host nft_fib_inet nf_flow_table_inet mac80211(O) ipt_REJECT ebtable_nat ebtable_filter ebtable_broute cfg80211(O) cdc_ncm cdc_ether xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_geoip(O) xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connlabel xt_connbytes xt_comment xt_cgroup xt_addrtype xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY wireguard usbnet usblp usbhid ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_kmp ts_fsm ts_bm tcp_hybla sch_red sch_prio sch_pie sch_mqprio_lib sch_drr sch_cake qrtr_tun qrtr_smd qrtr_mhi qrtr qmi_helpers(O) nft_tproxy nft_socket nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_queue nft_numgen nft_nat nft_meta_bridge
[   36.343069]  nft_masq nft_log nft_limit nft_hash nft_fwd_netdev nft_fullcone(O) nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_connlimit nft_compat nft_chain_nat nfnetlink_queue nfnetlink_log nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat nf_log_syslog nf_flow_table nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_bridge nf_conncount mhi mdio_netlink(O) lm75 libchacha20poly1305 iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables hwmon hid_generic ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 crc_itu_t crc_ccitt compat(O) cls_flower cdc_wdm arptable_filter arpt_mangle arp_tables act_vlan fuse ntfs3 cls_bpf act_bpf sch_tbf sch_ingress sch_htb sch_hfsc
[   36.416526]  em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact sg hid evdev qca_nss_cfi_cryptoapi(O) qca_nss_crypto(O) qca_nss_qdisc(O) qca_nss_macsec(O) cryptodev(O) 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 jool_siit(O) jool(O) jool_common(O) ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 qca_mcs(O) msdos bonding tls ifb nat46(O) ip6_udp_tunnel udp_tunnel sit qca_nss_drv(O) netlink_diag tunnel4 ip_tunnel veth tun nbd minix cifs autofs4 dns_resolver netfs nls_koi8_r nls_cp1255 nls_iso8859_6 nls_iso8859_2 nls_iso8859_15 nls_iso8859_13 nls_iso8859_1 nls_cp950 nls_cp936 nls_euc_jp nls_cp932 nls_cp866 nls_cp864 nls_cp862 nls_cp852 nls_cp850 nls_cp775 nls_cp437
[   36.505943]  nls_cp1251 nls_cp1250 rfkill crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg seqiv rmd160 pcbc michael_mic fcrypt echainiv geniv des_generic cts arc4 uas usb_storage leds_pca963x leds_gpio xhci_plat_hcd xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd qca_nss_dp(O) qca_ssdk(O) ubootenv_nvram(O) pstore gpio_button_hotplug(O) xfs vfat fat jfs f2fs ext4 mbcache jbd2 exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax mii crc32_generic encrypted_keys trusted
[   36.638413] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W  O       6.6.30 #0
[   36.660613] Hardware name: Linksys MR7350 (DT)
[   36.668069] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   36.672328] pc : 0xffffffc0800bc120
[   36.679176] lr : 0xffffffc080b2a584
[   36.682648] sp : ffffffc080003cc0
[   36.686120] x29: ffffffc080003cc0 x28: ffffffc0796bc5f0 x27: 000000000000014e
[   36.689603] x26: ffffff8007f39040 x25: ffffff800e63788c x24: ffffffc07993625c
[   36.696721] x23: ffffffc0813dd000 x22: 0000000000000000 x21: 0000000000000040
[   36.703838] x20: ffffff8009c1cf00 x19: 0000000000000040 x18: ffffff801bb3c4e8
[   36.710957] x17: 000000000000006a x16: 000000000000009a x15: fffffffffffffffe
[   36.718076] x14: 0000000200000000 x13: ffffff8000000000 x12: fffffffffffffff4
[   36.725193] x11: fffffffffffffff3 x10: fffffffffffffff2 x9 : fffffffffffffff1
[   36.732312] x8 : fffffffffffffff0 x7 : 00000000000000a8 x6 : 0000000000000055
[   36.739429] x5 : 00000000000000ed x4 : 0000000000000040 x3 : 0000000000000302
[   36.746548] x2 : ffffffc080ee6400 x1 : 00000000dead4ead x0 : 0000000000000040
[   36.753666] Call trace:
[   36.760772]  0xffffffc0800bc120
[   36.763030]  0xffffffc080b2a584
[   36.766154]  0xffffffc07992f1e0 [qca_nss_crypto@000000002f529363+0x6000]
[   36.769291]  0xffffffc079936298 [qca_nss_cfi_cryptoapi@000000005d68b645+0x4000]
[   36.776238]  0xffffffc079930520 [qca_nss_crypto@000000002f529363+0x6000]
[   36.783265]  0xffffffc07967fd54 [qca_nss_drv@00000000909c08f0+0x27000]
[   36.790210]  0xffffffc079680608 [qca_nss_drv@00000000909c08f0+0x27000]
[   36.796546]  0xffffffc0808f5c20
[   36.803047]  0xffffffc0808f6154
[   36.806084]  0xffffffc0800102cc
[   36.809210]  0xffffffc0800139cc
[   36.812335]  0xffffffc0800139b0
[   36.815460]  0xffffffc080013a14
[   36.818584]  0xffffffc08006166c
[   36.821709]  0xffffffc080b1de14
[   36.824835]  0xffffffc080b1eab0
[   36.827960]  0xffffffc0800112e8
[   36.831085]  0xffffffc080b202b4
[   36.834210]  0xffffffc0800abdb4
[   36.837335]  0xffffffc0800abfac
[   36.840459]  0xffffffc080b20648
[   36.843584]  0xffffffc080cf1364
[   36.846709]  0xffffffc080cf183c
[   36.849834]  0xffffffc080cfdcb8
[   36.852965] Code: 5289d5a1 72bbd5a1 a90153f3 aa0003f3 (b9400400)
[   36.856097] ---[ end trace 0000000000000000 ]---
[   36.862340] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[   36.867034] SMP: stopping secondary CPUs
[   37.073742] Kernel Offset: disabled
[   37.073766] CPU features: 0x0,00000000,10020000,0000400b
[   37.076034] Memory Limit: none
[   37.681633] Rebooting in 3 seconds...

Repository URL: https://github.com/qosmio/openwrt-ipq
Git Reference: qualcommax-6.x-nss-wifi
SHA: 65f96a8285033d074506991dfc62603d05ece1d1
That's based on this version with 6.6 kernel.

Yep I'm on it - 65f96a8285033d074506991dfc62603d05ece1d1
but I added the bellow PR.
Edit - Seems it was this PR that causes the compilation of mkimage to fail.
I shouldn't have gone so far ahead but it was a trial with GCC14.

I've opened an issue about this as I was unable to compile it on mvebu with GCC14.

Is it best to open up seperate issues on github for different packages that wont compile, or one "combined" github issue for all of them? I ran into 10 or so that wouldnt compile for me. I could get most to compile by disabling at least 1 warning-turned-error via at least 1 of the following flags to compile in GCC 14:

-Wno-implicit-function-declaration 
-Wno-int-conversion
-Wno-incompatible-pointer-types 
-Wno-error

For those needing -Wno-error, sometimes adding to target CFLAGS is enough, sometimes you have to change -Werror inti -Wno-error in the unpacked build directory in either the Makefile(s) or in CMakeLists.txt.

Packages:

  • ifstat (couldnt create C executable error. no fix)
  • lsof (another non-fixable error but I didnt write down what the error was. this one was inconsistent...one build it compiles, the next it wont)
  • mbedtls (requires -Wno-error)
  • strace (requires -Wno-error)
  • pciutils (requires -Wno-error)
  • opkg (requires -Wno-error, but inconsistent. some builds it compiled)
  • iproute2 (-Wno-implicit-function-declaration -Wno-incompatible-pointer-types)
  • wsdd2 (-Wno-int-conversion)
  • qca-nss-clients / qca-nss-drv (requires -Wno-error)

Im pretty sure there were a couple more too that I just didnt write down. I'll look through my bash history and see if I can figure out which ones they were.

EDIT: also, theres an issue where a few packages (or build tools) require being a non-root user, but the final image wont build unless you are root, so aften compiling all the packages I have to switch to root. This was happening with gcc 13 though, so it isnt gcc 14 specific.

I think it's better to ask here.
And ping @neheb there.

I've never experienced this in my buildroot environment.

https://github.com/openwrt/packages/pull/24295

1 Like

hmm...weird. I dont have the exact error written down, but somewhere in the package/install or target/install steps if I'm not running as root i get an error that some directory doesnt exist or couldnt be created due to insufficient permissions (or that a file cant be copied to some directory because it doesnt exist), so im guessing at some point something is created as another user and has permissions that block write/create access to other (non-root) users.

Its worth mentioning that I compile on a tmpfs ramdisk (one of the benefits of this system having 128 gb of ddr4), so perhaps default mount permissions are different for tmpfs or something like that.

Its also worth noting that near the end of the target/install stage I always get warnings about stuff referenced in the init.d scripts not existing. The stuff that triggers warnings is always stuff that is present on the openwrt filesystem but not on my desktop's local filesystem. Its almost as if it was supposed to be in a chroot but wasnt, which could also explain the "not having permissions to create a directory unless you are root" issue.

What kind of performance improvements did you notice with GCC 14?

1 Like