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

Migrated to 22.03 rc1 build. its pretty stable on r7800, thanks

here is my observation if anyone planning to upgrade -

  • Below error use to flood the logs all through the march and april builds of 21.02 which is resolved in 22.03 rc1
[  349.336115] wlan0: NSS TX failed with error[5]: NSS_TX_FAILURE_TOO_SHORT
[  648.249507] wlan0: NSS TX failed with error[5]: NSS_TX_FAILURE_TOO_SHORT
[  947.161936] wlan0: NSS TX failed with error[5]: NSS_TX_FAILURE_TOO_SHORT
  • in fw4 rules, referring to ipv6 address in the below format wont work.
config rule
	option src 'wan'
	option dest 'DMZ'
	list dest_ip '::212/-64'
  • with a 250/250 connection, didnt see any performance issues. had the same latency for wired connections.
  • the updated ath10k driver is stable
  • not able set log count limit for an interface. you can enable one though.
  • got the below error sometimes
kern.warn kernel: [ 1271.574030] NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!!
1 Like

I think I had that too but I can't remember where I posted it. I think I know the which thread but I can't find that post for some reason. Google finds it but it's not there.
It was because I had something enabled but I forgot what it was... it could have been packet steering that I set from rc.local instead of using OpenWrt setting "network.globals.packet_steering=1".

I believe it was packet steering, I remember because I disabled that last week since packet steering has no effect when using NSS cores (according to some who are more knowledgeable than me).

Is there still a custom script i would need to use for sqm? I have a gigabit fiber connection and until they get the rest of the backbone done bufferbloat is a real hassle atm.

yep see the first post

now everything work great except WIFI 5ghz Coverage
so poor when compared with my old asus router
it's just my Zyxel problem or it's normal

where the hell did you get an rc1 version of @ACwifidude's build lol

edit for clarity, last nss build was 10 days ago, openwrt didn't bump for release until 5 days ago. Not necessarily a big deal, but 8 days ago there were a bunch of ipq806x patches, so...

nah i rebased and built the moment rc1 tagging was done :grin:

2 Likes

care to share with the class :point_right::point_left:

1 Like

Greetings. I appreciate all the work that has been put in by everyone in this forum. I am currently running this build on my R7800 with great success, thanks ACwifidude. I have recently acquired an Askey RT4230W (RAC2V1K). I can get the 22.03 snapshot to run fine but when I try this build it will boot but seems to have a problem bringing up the ethernet. I can log in and send commands via the serial terminal but nothing via the network ports. Here is the boot log using the latest ACwifidude master build available. This will occur whether I install it or run via tftpboot. I've tried both ct and non-ct versions as well. I spaced out the sections which seem to have issues when compared to the 22.03 log

U-Boot 1.0.6 [spf.5.0.2_csu1.1] (Nov 15 2018 - 03:26:55)

smem ram ptable found: ver: 0 len: 5
DRAM:  1003 MiB
setting 0x177d as machine type from smem
NAND:  SF: Unsupported manufacturer 00
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
512 MiB
MMC:
PCI0 Link Intialized
PCI1 Link Intialized
In:    serial
Out:   serial
Err:   serial
MMC Device 0 not found
cdp: get part failed for 0:HLOS
Net:   MAC0 addr:7c:db:98:f0:b1:33
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init  done
MAC1 addr:7c:db:98:f0:b1:34
eth0, eth1
Hit space key to stop autoboot:  0
(IPQ) # tftpboot AC-bleed.bin
Mac0 unit failed
Using eth1 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'AC-bleed.bin'.
Load address: 0x44000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############################################
done
Bytes transferred = 12131651 (b91d43 hex)
(IPQ) # bootm
   Loading Kernel Image ... OK
OK
mtdids not defined, no default present
info: "mtdparts" not set
Using machid 0x177d from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.110 (HTPC@localhost.localdomain) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19160+19-7ea2f3d6e2) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Fri Apr 15 22:36:40 2022
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Askey RT4230W REV6
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000042000000-0x0000000071ffffff]
[    0.000000]   HighMem  [mem 0x0000000072000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000042000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000042000000-0x000000007fffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 252224
[    0.000000] Kernel command line: rootfstype=squashfs noinitrd
[    0.000000] Bootloader command line not present
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 964000K/1015808K available (7000K kernel code, 616K rwdata, 1692K rodata, 31744K init, 245K bss, 51808K reserved, 0K cma-reserved, 229376K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x3a0/0x54c with crng_init=0
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000009] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000027] Switching to timer-based delay loop, resolution 160ns
[    0.000309] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000339] pid_max: default: 32768 minimum: 301
[    0.000516] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000544] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001667] CPU: Testing write buffer coherency: ok
[    0.001957] qcom_scm: convention: smc legacy
[    0.002887] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003062] rcu: Hierarchical SRCU implementation.
[    0.003345] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003587] smp: Bringing up secondary CPUs ...
[    0.005564] smp: Brought up 1 node, 2 CPUs
[    0.005584] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.005599] CPU: All CPU(s) started in SVC mode.
[    0.016533] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.016704] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016739] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.016882] pinctrl core: initialized pinctrl subsystem
[    0.018187] NET: Registered protocol family 16
[    0.018552] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.019927] thermal_sys: Registered thermal governor 'step_wise'
[    0.022105] cpuidle: using governor ladder
[    0.022186] cpuidle: using governor menu
[    0.070379] usbcore: registered new interface driver usbfs
[    0.070464] usbcore: registered new interface driver hub
[    0.070542] usbcore: registered new device driver usb
[    0.070610] pps_core: LinuxPPS API ver. 1 registered
[    0.070627] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.070663] PTP clock support registered
[    0.073048] clocksource: Switched to clocksource dg_timer
[    0.074184] NET: Registered protocol family 2
[    0.074379] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.075649] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.075709] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.075776] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.075875] TCP: Hash tables configured (established 8192 bind 8192)
[    0.075991] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.076035] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.076289] NET: Registered protocol family 1
[    0.076347] PCI: CLS 0 bytes, default 64
[    0.591873] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.597850] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.597871] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.703434] bounce: pool size: 64 pages
[    0.703505] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.705604] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.705864] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.705980] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.706268] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.706355] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x000fe00000
[    0.706403] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.929681] qcom-pcie 1b500000.pci: Link up
[    0.929861] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.929891] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.929915] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xfe00000-0xfe0ffff])
[    0.929939] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.930023] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.930184] pci 0000:00:00.0: supports D1
[    0.930204] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.934171] PCI: bus0: Fast back to back transfers disabled
[    0.934675] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    0.934972] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.936352] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.940608] PCI: bus1: Fast back to back transfers disabled
[    0.940709] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.940739] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.940894] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.940919] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.941909] pcieport 0000:00:00.0: AER: enabled with IRQ 47
[    0.942942] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.943298] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.943433] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.943715] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.943799] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0031e00000
[    0.943842] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    1.170071] qcom-pcie 1b700000.pci: Link up
[    1.170240] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    1.170267] pci_bus 0001:00: root bus resource [bus 00-ff]
[    1.170289] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x31e00000-0x31e0ffff])
[    1.170308] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    1.170392] pci 0001:00:00.0: [17cb:0101] type 01 class 0x060400
[    1.170531] pci 0001:00:00.0: supports D1
[    1.170549] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[    1.174484] PCI: bus0: Fast back to back transfers disabled
[    1.174992] pci 0001:01:00.0: [168c:0046] type 00 class 0x028000
[    1.175306] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    1.176781] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    1.177240] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.181087] PCI: bus1: Fast back to back transfers disabled
[    1.181179] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    1.181206] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    1.181366] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    1.181390] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    1.182407] pcieport 0001:00:00.0: AER: enabled with IRQ 49
[    1.185860] L2 @ QSB rate. Forcing new rate.
[    1.186097] L2 @ 384000 KHz
[    1.186295] CPU0 @ 800000 KHz
[    1.186312] CPU1 @ QSB rate. Forcing new rate.
[    1.186448] CPU1 @ 384000 KHz
[    1.190832] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    1.193746] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.196288] msm_serial 16340000.serial: msm_serial: detected port #0
[    1.196348] msm_serial 16340000.serial: uartclk = 7372800
[    1.196424] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 50, base_baud = 460800) is a MSM
[    1.196468] msm_serial: console setup on port #0
[    2.047207] printk: console [ttyMSM0] enabled
[    2.052332] msm_serial: driver initialized
[    2.061787] loop: module loaded
[    2.063596] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xac
[    2.063749] nand: Macronix MX30UF4G18AB
[    2.070340] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.074045] Block protection check failed
[    2.081757] 21 fixed-partitions partitions found on MTD device qcom_nand.0
[    2.085706] Creating 21 MTD partitions on "qcom_nand.0":
[    2.092397] 0x000000000000-0x000000040000 : "0:SBL1"
[    2.099064] 0x000000040000-0x000000180000 : "0:MIBIB"
[    2.105821] 0x000000180000-0x0000002c0000 : "0:SBL2"
[    2.111022] 0x0000002c0000-0x000000540000 : "0:SBL3"
[    2.113838] random: fast init done
[    2.122487] 0x000000540000-0x000000660000 : "0:DDRCONFIG"
[    2.125652] 0x000000660000-0x000000780000 : "0:SSD"
[    2.129843] 0x000000780000-0x000000a00000 : "0:TZ"
[    2.137175] 0x000000a00000-0x000000c80000 : "0:RPM"
[    2.142815] 0x000000c80000-0x000001180000 : "0:APPSBL"
[    2.153233] 0x000001180000-0x000001200000 : "0:APPSBLENV"
[    2.155220] 0x000001200000-0x000001340000 : "0:ART"
[    2.160981] 0x000001340000-0x0000013a0000 : "0:BOOTCONFIG"
[    2.164009] 0x0000013a0000-0x0000014e0000 : "0:SBL2_1"
[    2.171094] 0x0000014e0000-0x000001760000 : "0:SBL3_1"
[    2.178590] 0x000001760000-0x000001880000 : "0:DDRCONFIG_1"
[    2.181589] 0x000001880000-0x0000019a0000 : "0:SSD_1"
[    2.186642] 0x0000019a0000-0x000001c20000 : "0:TZ_1"
[    2.194468] 0x000001c20000-0x000001ea0000 : "0:RPM_1"
[    2.200157] 0x000001ea0000-0x000001f00000 : "0:BOOTCONFIG1"
[    2.201812] 0x000001f00000-0x000002400000 : "0:APPSBL_1"
[    2.214989] 0x000002400000-0x00001c400000 : "ubi"
[    2.499738] random: crng init done

This seems to be an issue:

[    3.095766] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.862670] ipq806x-gmac-dwmac 37000000.ethernet: IRQ eth_wake_irq not found
[    3.862731] ipq806x-gmac-dwmac 37000000.ethernet: IRQ eth_lpi not found
[    3.870099] ipq806x-gmac-dwmac 37000000.ethernet: PTP uses main clock
[    3.875316] ipq806x-gmac-dwmac 37000000.ethernet: missing phy mode property
[    3.881742] ipq806x-gmac-dwmac 37000000.ethernet: device tree parsing error
[    3.889028] ipq806x-gmac-dwmac: probe of 37000000.ethernet failed with error -22


[    3.896048] i2c /dev entries driver
[    3.910144] sdhci: Secure Digital Host Controller Interface driver
[    3.910194] sdhci: Copyright(c) Pierre Ossman
[    3.915365] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.924029] NET: Registered protocol family 10
[    3.927782] Segment Routing with IPv6
[    3.929794] NET: Registered protocol family 17
[    3.933714] Bridge firewalling registered
[    3.938070] 8021q: 802.1Q VLAN Support v1.8
[    3.941911] Registering SWP/SWPB emulation handler
[    3.988382] qcom_rpm 108000.rpm: RPM firmware 3.0.16777377
[    4.008042] s1a: Bringing 0uV into 1050000-1050000uV
[    4.008488] s1a: supplied by regulator-dummy
[    4.012299] s1b: Bringing 0uV into 1050000-1050000uV
[    4.016777] s1b: supplied by regulator-dummy
[    4.021499] s2a: Bringing 0uV into 775000-775000uV
[    4.026018] s2a: supplied by regulator-dummy
[    4.030350] s2b: Bringing 0uV into 775000-775000uV
[    4.034991] s2b: supplied by regulator-dummy
[    4.043402] thermal thermal_zone0: failed to read out thermal zone (-110)
[    4.083415] UBI: auto-attach mtd20
[    4.083438] ubi0: attaching mtd20
[    7.531719] ubi0: scanning is finished
[    7.544396] ubi0: attached mtd20 (name "ubi", size 416 MiB)
[    7.544419] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.548766] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.555807] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.562567] ubi0: good PEBs: 3328, bad PEBs: 0, corrupted PEBs: 0
[    7.569413] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    7.575663] ubi0: max/mean erase counter: 12/10, WL threshold: 4096, image sequence number: 1943802617
[    7.582712] ubi0: available PEBs: 0, total reserved PEBs: 3328, PEBs reserved for bad PEB handling: 80
[    7.592690] ubi0: background thread "ubi_bgt0d" started, PID 81
[    7.593290] block ubiblock0_1: created from ubi0:1(rootfs▒[    7.649382] Freeing unused kernel memory: 31744K
[    7.649805] Run /init as init process
[    8.421340] init: Console is alive
[    8.421496] init: - watchdog -
[    8.467262] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.560458] Key type encrypted registered
[    8.576833] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    8.626273] genirq: irq_chip msmgpio did not update eff. affinity mask of irq 51
[    8.629974] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.636590] SCSI subsystem initialized
[    8.652185] ehci-fsl: Freescale EHCI Host controller driver
[    8.653289] ehci-platform: EHCI generic platform driver
[    8.665904] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.666500] ohci-platform: OHCI generic platform driver
[    8.673140] dwc3-qcom 110f8800.usb3: IRQ hs_phy_irq not found
[    8.676104] dwc3-qcom 110f8800.usb3: IRQ dp_hs_phy_irq not found
[    8.681995] dwc3-qcom 110f8800.usb3: IRQ dm_hs_phy_irq not found
[    8.688202] dwc3-qcom 110f8800.usb3: IRQ ss_phy_irq not found
[    8.696611] dwc3-qcom 100f8800.usb3: IRQ hs_phy_irq not found
[    8.699708] dwc3-qcom 100f8800.usb3: IRQ dp_hs_phy_irq not found
[    8.705604] dwc3-qcom 100f8800.usb3: IRQ dm_hs_phy_irq not found
[    8.711546] dwc3-qcom 100f8800.usb3: IRQ ss_phy_irq not found
[    8.863194] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    8.863256] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    8.867870] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    8.875291] xhci-hcd xhci-hcd.0.auto: irq 53, io mem 0x11000000
[    8.885690] hub 1-0:1.0: USB hub found
[    8.890482] hub 1-0:1.0: 1 port detected
[    8.894667] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    8.898322] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    8.903721] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    8.929834] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.930933] hub 2-0:1.0: USB hub found
[    8.937210] hub 2-0:1.0: 1 port detected
[    8.941575] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    8.944789] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    8.950219] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    8.957708] xhci-hcd xhci-hcd.1.auto: irq 54, io mem 0x10000000
[    8.968625] hub 3-0:1.0: USB hub found
[    8.972906] hub 3-0:1.0: 1 port detected
[    8.977242] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    8.980684] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    8.986045] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    8.993752] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.000848] hub 4-0:1.0: USB hub found
[    9.008605] hub 4-0:1.0: 1 port detected
[    9.017125] usbcore: registered new interface driver usb-storage
[    9.018120] usbcore: registered new interface driver uas
[    9.022322] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.036415] init: - preinit -
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
[   20.393517] procd: - early -
[   20.393649] procd: - watchdog -
[   20.943369] procd: - watchdog -
[   20.944042] procd: - ubus -
[   21.004102] procd: - init -
Please press Enter to activate this console.
[   21.237079] urngd: v1.0.2 started.
[   21.337473] kmodloader: loading kernel modules from /etc/modules.d/*
[   21.346109] NET: Registered protocol family 38
[   21.372570] Key type dns_resolver registered
[   21.404968] RPC: Registered named UNIX socket transport module.
[   21.404999] RPC: Registered udp transport module.
[   21.409697] RPC: Registered tcp transport module.
[   21.414706] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.429116] NET: Registered protocol family 15
[   21.431352] Initializing XFRM netlink socket
[   21.434936] tun: Universal TUN/TAP device driver, 1.6
[   21.441761] **********************************************************
[   21.441827] * Driver    :NSS GMAC Driver - RTL v(3.72a)
[   21.448323] * Version   :1.0
[   21.453439] * Copyright :Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
[   21.456500] **********************************************************
[   21.473513] libphy: PHY 37000000.mdio-mii:04 not found
[   21.473577] nss-gmac: probe of 37200000.ethernet failed with error -5
[   21.499031] nss_driver - fw of size 536324  bytes copied to load addr: 40000000, nss_id : 0
[   21.499598] nss_driver - Turbo Support 1
[   21.506331] Supported Frequencies -
[   21.506339] 800Mhz
[   21.510350] 800Mhz
[   21.513984] 800Mhz
[   21.515727]
[   21.520189] f59412a8: meminfo init succeed
[   21.541809] nss_driver - fw of size 218224  bytes copied to load addr: 40800000, nss_id : 1
[   21.542277] 84a3d06f: meminfo init succeed
[   21.549200] debugfs: File 'n2h' in directory 'stats' already present!
[   21.553145] debugfs: File 'qrfs' in directory 'stats' already present!
[   21.558541] node size 1 # items 2
[   21.559721] debugfs: File 'c2c_tx' in directory 'stats' already present!
[   21.566128] memory: 0 0 (avl 1059643392) items 2 active_cores 2
[   21.569456] debugfs: File 'c2c_rx' in directory 'stats' already present!
[   21.576285] f59412a8: nss core 0 booted successfully
[   21.581870] debugfs: File 'unaligned' in directory 'stats' already present!
[   21.595416] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   21.596707] node size 1 # items 2
[   21.606465] memory: 0 0 (avl 1059643392) items 2 active_cores 2
[   21.609845] 84a3d06f: nss core 1 booted successfully
[   21.629563] NFS: Registering the id_resolver key type
[   21.629604] Key type id_resolver registered
[   21.633667] Key type id_legacy registered
[   21.671165] cryptodev: driver 1.12 loaded.
[   21.674347] PPP generic driver version 2.4.2
[   21.675013] NET: Registered protocol family 24
[   21.682538] GACT probability on
[   21.683503] Mirror/redirect action on
[   21.690074] u32 classifier
[   21.690092]     input device check on
[   21.692286]     Actions configured
[   21.715479] fuse: init (API version 7.32)
[   21.731922] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
[   21.731952] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
[   21.781632] xt_time: kernel timezone is -0000
[   21.845853] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   21.845884] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   21.871810] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x46.
[   21.872500] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[   21.879338] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0

Another issue:

[   30.414724] ath10k_pci 0000:01:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9984/hw1.0: -12
[   30.414760] ath10k_pci 0000:01:00.0: could not fetch firmware files (-12)
[   30.424591] ath10k_pci 0000:01:00.0: could not probe fw (-12)
[   30.431363] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x46.

[   30.437554] ath10k_pci 0001:01:00.0: enabling device (0140 -> 0142)
[   30.445616] ath10k_pci 0001:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   31.610592] ath10k_pci 0001:01:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9984/hw1.0: -12
[   31.610632] ath10k_pci 0001:01:00.0: could not fetch firmware files (-12)
[   31.620308] ath10k_pci 0001:01:00.0: could not probe fw (-12)


[   31.627824] kmodloader: done loading kernel modules from /etc/modules.d/*
[   34.219549] blk_update_request: I/O error, dev mtdblock0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
[   34.220620] blk_update_request: I/O error, dev mtdblock0, sector 8 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 0
[   34.230296] blk_update_request: I/O error, dev mtdblock0, sector 16 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 0
[   34.241083] blk_update_request: I/O error, dev mtdblock0, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.251542] blk_update_request: I/O error, dev mtdblock0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.261393] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   34.274101] blk_update_request: I/O error, dev mtdblock0, sector 8 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.280146] blk_update_request: I/O error, dev mtdblock0, sector 8 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.289725] Buffer I/O error on dev mtdblock0, logical block 1, async page read
[   34.302394] blk_update_request: I/O error, dev mtdblock1, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.308955] blk_update_request: I/O error, dev mtdblock1, sector 8 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.319001] blk_update_request: I/O error, dev mtdblock1, sector 16 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.373447] Buffer I/O error on dev mtdblock1, logical block 0, async page read
[   34.393836] Buffer I/O error on dev mtdblock1, logical block 1, async page read
[   34.488286] Buffer I/O error on dev mtdblock12, logical block 0, async page read
[   34.491018] Buffer I/O error on dev mtdblock12, logical block 1, async page read
[   34.501015] Buffer I/O error on dev mtdblock13, logical block 0, async page read
[   34.507010] Buffer I/O error on dev mtdblock13, logical block 0, async page read
[   34.514490] Buffer I/O error on dev mtdblock14, logical block 0, async page read
[   34.520197] Buffer I/O error on dev mtdblock14, logical block 0, async page read
[   44.165473] ECM init
[   44.165515] ECM database jhash random seed: 0xa520eb47
[   44.168300] ECM init complete

At the end of the log, if I hit return I get to the OpenWRT prompt. I have some limited experience with the actual code that runs but I do not know how to address these issues. Any help would be appreciated. I also have the 22.03 log but not sure it needs to be presented at this time. Thanks.

Just a heads up on a recent build I made based on your work. Last weekend I cloned your 22.03 branch and rebased it on the latest 22.03 commits, the RC1 tags was a few days/hours old. I’m running the R7800 with the ath10k (old, mainline driver, not the -ct variant) After I flashed this new build, I replaced the 2 year old firmware from the ath10k package with the most recent version from kvalo’s repository (the 00156 version). And so far things are looking very good. I run this build on two R7800’s. One as router and one as dumb ap. I have another dumb ap but this is a TP-link C2600 that also runs the same build but then with the ath10-ct driver (the C2600 performs better with that…).

All is looking stable and snappy so far. :+1: :+1:

Thank you for the effort and time you and @KONG put into the NSS builds to get the NSS cores working with this new release :star_struck:

3 Likes

How do you replace the 2 year old firmware from ath10k package with the most recent version from kvalo’s repository?
How do you know which one is the latest? I see there is version 10.4-3.10-00047. Isn't it the latest.

yes please, how do you replace the ath10k firmware ?
thanks

Just download the file he linked to. Overwrite the file under /lib/Firmware/...

1 Like

Basically something like this:

cd /lib/firmware/ath10k/QCA9984/hw1.0/
cp firmware-5.bin firmware-5.bin.old
wget -O firmware-5.bin https://github.com/kvalo/ath10k-firmware/raw/master/QCA9984/hw1.0/3.9.0.2/firmware-5.bin_10.4-3.9.0.2-00156 --no-check-certificate

And then reboot.

1 Like

I think I can wait for @ACwifidude 's opinion or implementation. I cannot find info about those firmware versions, changes, etc.
What do we have to expect from this version. Any changes, fixes, improvements.

i thought 22.03 has the latest already. looks like it got updated to 10.4-3.9.0.2-00131 only.

thanks, will give it a try

1 Like

There is a delay to getting it officially accepted. Kvalo is one of the maintainers and the latest can offer advantages (or insert new bugs). The dilemma of being cutting edge. :sunglasses:

3 Likes

Exactly. It's basically the same for the -ct variant of the ath10k driver. A while ago OpenWRT decided to make the ath10k-ct driver the default for the QCA998x chipsets in favor of the "mainline" ath10k driver. Both drivers will work on the same hardware. Over time, the -ct variant will change more and more than the "mainline" it is based on. This means new features. But... sadly, also introduces new bugs... For my use case I'm better of with the "mainline" ath10k driver on R7800 in combination with my clients. But I have one TP-link C2600 that performs a lot better with the ath10k-ct driver. So I use that driver on my C2600.

And then you seem to be able to mix firmwares too, but I have a lesser experience with that and basically it makes less sense to mix firmwares with drivers. Stick with the same firmware supplier for the same driver.

3 Likes

firmware update seems stable (24hr check). I didnt see any errors nor i felt any improved wifi experience. understandable, since these are just bug fix releases.

also for anyone interested, a new release got uploaded 2 hrs back.

2 Likes