Askey RAC2V1K / RT4230W REV6 Support

So I started with a stock version of the latest 22.03 snapshot and flash via luci. It booted but no LAN or WAN, the port lights are on and show activity though. Both 2.4 and 5G radios are functioning and I can connect to both but again no internet. Here is the boot 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
Creating 1 MTD partitions on "nand0":
0x000002400000-0x00001c400000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            416 MiB
UBI: number of good PEBs:        3328
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     3
UBI: available PEBs:             47
UBI: total number of reserved PEBs: 3281
UBI: number of PEBs reserved for bad PEB handling: 33
UBI: max/mean erase counter: 13/10
Read 7208960 bytes from volume kernel to 44000000
   Loading Kernel Image ... OK
OK

device nand0 <nand0>, # parts = 1
 #: name                size            offset          mask_flags
 0: firmware            0x1a000000      0x02400000      0

active partition: nand0,0 - (firmware) 0x1a000000 @ 0x02400000

defaults:
mtdids  : none
mtdparts: none
Setting up atags for msm partition: firmware
Using machid 0x177d from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.113 (lauro@server) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19621-d1b824650f) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Wed May 11 20:23:50 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 s30796 r8192 d22452 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: 994740K/1015808K available (6758K kernel code, 612K rwdata, 1648K rodata, 1024K init, 236K bss, 21068K 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.000008] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000024] Switching to timer-based delay loop, resolution 160ns
[    0.000273] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000304] pid_max: default: 32768 minimum: 301
[    0.000488] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000515] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001614] CPU: Testing write buffer coherency: ok
[    0.001900] qcom_scm: convention: smc legacy
[    0.002844] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003016] rcu: Hierarchical SRCU implementation.
[    0.003301] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003541] smp: Bringing up secondary CPUs ...
[    0.005509] smp: Brought up 1 node, 2 CPUs
[    0.005530] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.005545] CPU: All CPU(s) started in SVC mode.
[    0.016104] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.016271] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016305] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.016448] pinctrl core: initialized pinctrl subsystem
[    0.017740] NET: Registered protocol family 16
[    0.018104] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.019478] thermal_sys: Registered thermal governor 'step_wise'
[    0.021634] cpuidle: using governor ladder
[    0.021717] cpuidle: using governor menu
[    0.066462] usbcore: registered new interface driver usbfs
[    0.066550] usbcore: registered new interface driver hub
[    0.066626] usbcore: registered new device driver usb
[    0.066691] pps_core: LinuxPPS API ver. 1 registered
[    0.066707] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.066751] PTP clock support registered
[    0.068876] clocksource: Switched to clocksource dg_timer
[    0.069943] NET: Registered protocol family 2
[    0.070142] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.071242] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.071297] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
sT:block:16, fifo:64ind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.407075] spi-nor spi0.0: mr25h256 (32 Kbytes)
[    2.436485] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.206974] ipq806x-gmac-dwmac 37200000.ethernet: IRQ eth_wake_irq not found
[    3.207039] ipq806x-gmac-dwmac 37200000.ethernet: IRQ eth_lpi not found
[    3.214395] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[    3.220600] ipq806x-gmac-dwmac 37200000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.226049] ipq806x-gmac-dwmac 37200000.ethernet:    DWMAC1000
[    3.233632] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[    3.239411] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[    3.247049] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[    3.255039] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[    3.260837] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[    3.268145] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[    3.274987] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[    3.282549] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[    3.289576] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.297563] ipq806x-gmac-dwmac 37400000.ethernet: IRQ eth_wake_irq not found
[    3.304453] ipq806x-gmac-dwmac 37400000.ethernet: IRQ eth_lpi not found
[    3.311742] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[    3.318257] ipq806x-gmac-dwmac 37400000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.324419] ipq806x-gmac-dwmac 37400000.ethernet:    DWMAC1000
[    3.331848] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[    3.337588] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[    3.345412] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[    3.353275] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[    3.359028] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[    3.366491] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[    3.373280] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[    3.380796] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[    3.387758] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.395926] i2c /dev entries driver
[    3.407158] sdhci: Secure Digital Host Controller Interface driver
[    3.407197] sdhci: Copyright(c) Pierre Ossman
[    3.412324] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.419298] NET: Registered protocol family 10
[    3.423886] Segment Routing with IPv6
[    3.426740] NET: Registered protocol family 17
[    3.430768] 8021q: 802.1Q VLAN Support v1.8
[    3.434800] Registering SWP/SWPB emulation handler
[    3.467614] qcom_rpm 108000.rpm: RPM firmware 3.0.16777377
[    3.482248] s1a: Bringing 0uV into 1050000-1050000uV
[    3.482531] s1a: supplied by regulator-dummy
[    3.486420] s1b: Bringing 0uV into 1050000-1050000uV
[    3.490859] s1b: supplied by regulator-dummy
[    3.495615] s2a: Bringing 0uV into 775000-775000uV
[    3.500052] s2a: supplied by regulator-dummy
[    3.504478] s2b: Bringing 0uV into 775000-775000uV
[    3.508986] s2b: supplied by regulator-dummy
[    3.519163] thermal thermal_zone0: failed to read out thermal zone (-110)
[    3.533113] UBI: auto-attach mtd20
[    3.533136] ubi0: attaching mtd20
[    6.559068] ubi0: scanning is finished
[    6.570444] ubi0: attached mtd20 (name "ubi", size 416 MiB)
[    6.570466] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.574812] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.581831] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.588615] ubi0: good PEBs: 3328, bad PEBs: 0, corrupted PEBs: 0
[    6.595453] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    6.601694] ubi0: max/mean erase counter: 13/10, WL threshold: 4096, image sequence number: 1943802617
[    6.608759] ubi0: available PEBs: 0, total reserved PEBs: 3328, PEBs reserved for bad PEB handling: 80
[    6.618588] ubi0: background thread "ubi_bgt0d" started, PID 83
[    6.646793] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    6.649839] Freeing unused kernel memory: 1024K
[    6.680001] Run /sbin/init as init process
[    7.099719] init: Console is alive
[    7.099896] init: - watchdog -
[    8.074580] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.159759] genirq: irq_chip msmgpio did not update eff. affinity mask of irq 48
[    8.161243] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.170582] SCSI subsystem initialized
[    8.183721] ehci-fsl: Freescale EHCI Host controller driver
[    8.184685] ehci-platform: EHCI generic platform driver
[    8.194547] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.195375] ohci-platform: OHCI generic platform driver
[    8.203533] dwc3-qcom 100f8800.usb3: IRQ hs_phy_irq not found
[    8.204747] dwc3-qcom 100f8800.usb3: IRQ dp_hs_phy_irq not found
[    8.210767] dwc3-qcom 100f8800.usb3: IRQ dm_hs_phy_irq not found
[    8.216724] dwc3-qcom 100f8800.usb3: IRQ ss_phy_irq not found
[    8.225107] dwc3-qcom 110f8800.usb3: IRQ hs_phy_irq not found
[    8.228356] dwc3-qcom 110f8800.usb3: IRQ dp_hs_phy_irq not found
[    8.234202] dwc3-qcom 110f8800.usb3: IRQ dm_hs_phy_irq not found
[    8.240264] dwc3-qcom 110f8800.usb3: IRQ ss_phy_irq not found
[    8.385029] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    8.385080] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    8.389644] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    8.397070] xhci-hcd xhci-hcd.0.auto: irq 50, io mem 0x10000000
[    8.407255] hub 1-0:1.0: USB hub found
[    8.412395] hub 1-0:1.0: 1 port detected
[    8.416252] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    8.420217] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    8.425441] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    8.443446] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.443795] hub 2-0:1.0: USB hub found
[    8.450693] hub 2-0:1.0: 1 port detected
[    8.454454] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    8.458242] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    8.463759] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    8.471190] xhci-hcd xhci-hcd.1.auto: irq 51, io mem 0x11000000
[    8.481500] hub 3-0:1.0: USB hub found
[    8.486409] hub 3-0:1.0: 1 port detected
[    8.490594] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    8.494268] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    8.499643] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    8.507306] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.514347] hub 4-0:1.0: USB hub found
[    8.522125] hub 4-0:1.0: 1 port detected
[    8.527952] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.539223] init: - preinit -
[   10.705655] ipq806x-gmac-dwmac 37400000.ethernet: Failed to reset the dma
[   10.705727] ipq806x-gmac-dwmac 37400000.ethernet eth1: stmmac_hw_setup: DMA engine initialization failed
[   10.711592] ipq806x-gmac-dwmac 37400000.ethernet eth1: stmmac_open: Hw setup failed
ip: SIOCSIFFLAGS: Operation timed out
ip: SIOCSIFFLAGS: Network is down
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
sendto(): Network unreachable
sendto(): Network unreachable
[   13.925464] UBIFS (ubi0:2): Mounting in unauthenticated mode
[   13.929384] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 170
[   13.990949] UBIFS (ubi0:2): recovery needed
[   14.167271] UBIFS (ubi0:2): recovery completed
[   14.167474] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   14.170803] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   14.178561] UBIFS (ubi0:2): FS size: 402513920 bytes (383 MiB, 3170 LEBs), journal size 20189184 bytes (19 MiB, 159 LEBs)
[   14.188531] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   14.199464] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID BE9114BC-EB74-4634-88A6-2C97F5DB369E, small LPT model
[   14.209992] mount_root: switching to ubifs overlay
[   14.228476] urandom-seed: Seeding with /etc/urandom.seed
[   14.351881] procd: - early -
[   14.352235] procd: - watchdog -
[   14.906803] procd: - watchdog -
[   14.911615] procd: - ubus -
[   15.001176] procd: - init -
Please press Enter to activate this console.
[   15.734472] urngd: v1.0.2 started.
[   15.808978] kmodloader: loading kernel modules from /etc/modules.d/*
[   15.880388] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
[   15.880448] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
[   15.983436] PPP generic driver version 2.4.2
[   15.984477] NET: Registered protocol family 24
[   16.002759] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x46.
[   16.003384] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[   16.010306] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   19.879139] ath10k_pci 0000:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[   19.879265] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   19.890500] ath10k_pci 0000:01:00.0: firmware ver 10.4b-ct-9984-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 7ea63dc5
[   22.241067] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 0:1 crc32 85498734
[   25.796193] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   25.796234] ath10k_pci 0000:01:00.0: msdu-desc: 2500  skid: 32
[   25.878774] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   25.879627] ath10k_pci 0000:01:00.0: wmi print 'free: 84920 iram: 13156 sram: 11224'
[   26.168775] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1
[   26.271915] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x46.
[   26.274266] ath10k_pci 0001:01:00.0: enabling device (0140 -> 0142)
[   26.279912] ath10k_pci 0001:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   27.292726] ath10k_pci 0001:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[   27.292772] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   27.304739] ath10k_pci 0001:01:00.0: firmware ver 10.4b-ct-9984-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 7ea63dc5
[   29.645587] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id 0:2 crc32 85498734
[   33.220555] ath10k_pci 0001:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   33.220596] ath10k_pci 0001:01:00.0: msdu-desc: 2500  skid: 32
[   33.305089] ath10k_pci 0001:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   33.305972] ath10k_pci 0001:01:00.0: wmi print 'free: 84920 iram: 13156 sram: 11224'
[   33.672238] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1
[   33.789018] kmodloader: done loading kernel modules from /etc/modules.d/*
[   38.089238] ipq806x-gmac-dwmac 37400000.ethernet: Failed to reset the dma
[   38.089270] ipq806x-gmac-dwmac 37400000.ethernet eth1: stmmac_hw_setup: DMA engine initialization failed
[   38.095008] ipq806x-gmac-dwmac 37400000.ethernet eth1: stmmac_open: Hw setup failed
[   38.106911] br-lan: port 1(eth1.1) entered blocking state
[   38.112070] br-lan: port 1(eth1.1) entered disabled state
[   38.117666] device eth1.1 entered promiscuous mode
[   38.137127] dwmac1000: Master AXI performs any burst length
[   38.137161] ipq806x-gmac-dwmac 37200000.ethernet eth0: No Safety Features support found
[   38.151658] ipq806x-gmac-dwmac 37200000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   38.151793] ipq806x-gmac-dwmac 37200000.ethernet eth0: registered PTP clock
[   38.171092] ipq806x-gmac-dwmac 37200000.ethernet eth0: configuring for fixed/rgmii link mode
[   38.171386] ipq806x-gmac-dwmac 37200000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   38.178618] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   45.070930] ath10k_pci 0001:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   45.070965] ath10k_pci 0001:01:00.0: msdu-desc: 2500  skid: 32
[   45.155357] ath10k_pci 0001:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   45.156228] ath10k_pci 0001:01:00.0: wmi print 'free: 84920 iram: 13156 sram: 11224'
[   45.631715] ath10k_pci 0001:01:00.0: rts threshold -1
[   45.632588] ath10k_pci 0001:01:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
[   45.642218] br-lan: port 2(wlan1) entered blocking state
[   45.646777] br-lan: port 2(wlan1) entered disabled state
[   45.652988] device wlan1 entered promiscuous mode
[   45.662876] ath10k_pci 0001:01:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   45.970325] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   45.970570] br-lan: port 2(wlan1) entered blocking state
[   45.975781] br-lan: port 2(wlan1) entered forwarding state
[   45.981915] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   51.933330] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   51.933363] ath10k_pci 0000:01:00.0: msdu-desc: 2500  skid: 32
[   52.015794] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   52.016645] ath10k_pci 0000:01:00.0: wmi print 'free: 84920 iram: 13156 sram: 11224'
[   52.401939] ath10k_pci 0000:01:00.0: rts threshold -1
[   52.402596] ath10k_pci 0000:01:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
[   52.413416] br-lan: port 3(wlan0) entered blocking state
[   52.416976] br-lan: port 3(wlan0) entered disabled state
[   52.423012] device wlan0 entered promiscuous mode
[   53.018068] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   53.018215] br-lan: port 3(wlan0) entered blocking state
[   53.023567] br-lan: port 3(wlan0) entered forwarding state

Included some changes for the rt4230w that should properly enable NSS hardware offloading. Let me know how it works. :sunglasses:

Here is the link for the sysupgrade file:

Thanks! If I don't get to it sooner, I will test it this weekend and report back.

Will router have working ethernet port in this build? I have tried RT4230W-REV6-20220516-Stable2203-ath10k-sysupgrade.bin and RT4230W-REV6-20220516-Stable2203-sysupgrade.bin in your openwrt-22.03-nss-qsdk10.0 branch several days ago. My computer could not grab an IP address, and upon connecting it to serial console, I found that br-lan interface is not present and can never be brought up. The router is working find in the the official 22.03 RC1 build. Thank you!

The ipq8065.dtsi changes are probably conflicting with the .dts file. Let me make another tweak.

Flashed your RT4230W-REV6-20220515-MasterNSS-ath10k-sysupgrade from luci using the latest 22.03-snapshot and again no network but the log goes two lines further.

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
Creating 1 MTD partitions on "nand0":
0x000002400000-0x00001c400000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            416 MiB
UBI: number of good PEBs:        3328
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     3
UBI: available PEBs:             47
UBI: total number of reserved PEBs: 3281
UBI: number of PEBs reserved for bad PEB handling: 33
UBI: max/mean erase counter: 13/10
Read 7208960 bytes from volume kernel to 44000000
   Loading Kernel Image ... OK
OK

device nand0 <nand0>, # parts = 1
 #: name                size            offset          mask_flags
 0: firmware            0x1a000000      0x02400000      0

active partition: nand0,0 - (firmware) 0x1a000000 @ 0x02400000

defaults:
mtdids  : none
mtdparts: none
Setting up atags for msm partition: firmware
Using machid 0x177d from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.113 (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 Sun May 15 23:17:09 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: 994716K/1015808K available (7002K kernel code, 616K rwdata, 1692K rodata, 1024K init, 245K bss, 21092K 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.000007] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000026] Switching to timer-based delay loop, resolution 160ns
[    0.000315] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000349] pid_max: default: 32768 minimum: 301
[    0.000534] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000561] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001678] CPU: Testing write buffer coherency: ok
[    0.001972] qcom_scm: convention: smc legacy
[    0.002921] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003100] rcu: Hierarchical SRCU implementation.
[    0.003390] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003633] smp: Bringing up secondary CPUs ...
[    0.005597] smp: Brought up 1 node, 2 CPUs
[    0.005618] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.005633] CPU: All CPU(s) started in SVC mode.
[    0.017091] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.017259] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017293] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.017441] pinctrl core: initialized pinctrl subsystem
[    0.018730] NET: Registered protocol family 16
[    0.019096] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.020455] thermal_sys: Registered thermal governor 'step_wise'
[    0.022619] cpuidle: using governor ladder
[    0.022692] cpuidle: using governor menu
[    0.071760] usbcore: registered new interface driver usbfs
[    0.071847] usbcore: registered new interface driver hub
[    0.071919] usbcore: registered new device driver usb
[    0.071988] pps_core: LinuxPPS API ver. 1 registered
[    0.072006] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.072044] PTP clock support registered
[    0.074484] clocksource: Switched to clocksource dg_timer
[    0.075619] NET: Registered protocol family 2
[    0.075818] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.077072] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.077138] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.077202] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.077302] TCP: Hash tables configured (established 8192 bind 8192)
[    0.077428] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.077477] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.077705] NET: Registered protocol family 1
[    0.077760] PCI: CLS 0 bytes, default 64
[    0.079122] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.085152] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.085176] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.191048] bounce: pool size: 64 pages
[    0.191120] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.193259] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.193516] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.193637] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.193941] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.194024] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x000fe00000
[    0.194070] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.420154] qcom-pcie 1b500000.pci: Link up
[    0.420344] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.420375] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.420399] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xfe00000-0xfe0ffff])
[    0.420421] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.420507] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.420663] pci 0000:00:00.0: supports D1
[    0.420687] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.425784] PCI: bus0: Fast back to back transfers disabled
[    0.426324] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    0.426621] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.427999] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.433216] PCI: bus1: Fast back to back transfers disabled
[    0.433319] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.433350] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.433504] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.433533] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.434543] pcieport 0000:00:00.0: AER: enabled with IRQ 47
[    0.435701] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.435943] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.436076] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.436366] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.436445] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0031e00000
[    0.436496] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    0.661829] qcom-pcie 1b700000.pci: Link up
[    0.662003] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.662028] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.662050] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x31e00000-0x31e0ffff])
[    0.662070] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.662154] pci 0001:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.662291] pci 0001:00:00.0: supports D1
[    0.662309] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[    0.667084] PCI: bus0: Fast back to back transfers disabled
[    0.667623] pci 0001:01:00.0: [168c:0046] type 00 class 0x028000
[    0.667938] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.669412] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    0.669871] 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)
[    0.674541] PCI: bus1: Fast back to back transfers disabled
[    0.674631] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.674659] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.674906] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.674932] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.675823] pcieport 0001:00:00.0: AER: enabled with IRQ 49
[    0.679187] L2 @ QSB rate. Forcing new rate.
[    0.679424] L2 @ 384000 KHz
[    0.679622] CPU0 @ 800000 KHz
[    0.679639] CPU1 @ QSB rate. Forcing new rate.
[    0.679773] CPU1 @ 384000 KHz
[    0.684217] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    0.686771] gsbi 1a200000.gsbi: GSBI port protocol: 3 crci: 0
[    0.689134] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.691699] msm_serial 16340000.serial: msm_serial: detected port #0
[    0.691757] msm_serial 16340000.serial: uartclk = 7372800
[    0.691837] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 50, base_baud = 460800) is a MSM
[    0.691879] msm_serial: console setup on port #0
[    1.548251] printk: console [ttyMSM0] enabled
[    1.553386] msm_serial: driver initialized
[    1.562846] loop: module loaded
[    1.564526] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xac
[    1.564904] nand: Macronix MX30UF4G18AB
[    1.571401] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.575084] Block protection check failed
[    1.582811] 21 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.586773] Creating 21 MTD partitions on "qcom_nand.0":
[    1.593456] 0x000000000000-0x000000040000 : "0:SBL1"
[    1.600051] 0x000000040000-0x000000180000 : "0:MIBIB"
[    1.606647] 0x000000180000-0x0000002c0000 : "0:SBL2"
[    1.611429] 0x0000002c0000-0x000000540000 : "0:SBL3"
[    1.614588] random: fast init done
[    1.622787] 0x000000540000-0x000000660000 : "0:DDRCONFIG"
[    1.625300] 0x000000660000-0x000000780000 : "0:SSD"
[    1.629872] 0x000000780000-0x000000a00000 : "0:TZ"
[    1.637061] 0x000000a00000-0x000000c80000 : "0:RPM"
[    1.641799] 0x000000c80000-0x000001180000 : "0:APPSBL"
[    1.650771] 0x000001180000-0x000001200000 : "0:APPSBLENV"
[    1.652187] 0x000001200000-0x000001340000 : "0:ART"
[    1.657995] 0x000001340000-0x0000013a0000 : "0:BOOTCONFIG"
[    1.661000] 0x0000013a0000-0x0000014e0000 : "0:SBL2_1"
[    1.668069] 0x0000014e0000-0x000001760000 : "0:SBL3_1"
[    1.675328] 0x000001760000-0x000001880000 : "0:DDRCONFIG_1"
[    1.678048] 0x000001880000-0x0000019a0000 : "0:SSD_1"
[    1.683524] 0x0000019a0000-0x000001c20000 : "0:TZ_1"
[    1.691088] 0x000001c20000-0x000001ea0000 : "0:RPM_1"
[    1.696195] 0x000001ea0000-0x000001f00000 : "0:BOOTCONFIG1"
[    1.697508] 0x000001f00000-0x000002400000 : "0:APPSBL_1"
[    1.710756] 0x000002400000-0x00001c400000 : "ubi"
[    1.959944] random: crng init done
[    2.421260] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    2.423880] spi-nor spi0.0: mr25h256 (32 Kbytes)
[    2.451041] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.225984] ar8327: qca,phy-rgmii-en is not specified
[    3.227810] ipq806x-gmac-dwmac 37000000.ethernet: IRQ eth_wake_irq not found
[    3.230045] ipq806x-gmac-dwmac 37000000.ethernet: IRQ eth_lpi not found
[    3.238404] ipq806x-gmac-dwmac 37000000.ethernet: PTP uses main clock
[    3.243543] ipq806x-gmac-dwmac 37000000.ethernet: missing phy mode property
[    3.250216] ipq806x-gmac-dwmac 37000000.ethernet: device tree parsing error
[    3.257186] ipq806x-gmac-dwmac: probe of 37000000.ethernet failed with error -22
[    3.264192] i2c /dev entries driver
[    3.276300] sdhci: Secure Digital Host Controller Interface driver
[    3.276336] sdhci: Copyright(c) Pierre Ossman
[    3.281376] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.288630] NET: Registered protocol family 10
[    3.292754] Segment Routing with IPv6
[    3.296012] NET: Registered protocol family 17
[    3.299645] Bridge firewalling registered
[    3.304136] 8021q: 802.1Q VLAN Support v1.8
[    3.308120] Registering SWP/SWPB emulation handler
[    3.342652] qcom_rpm 108000.rpm: RPM firmware 3.0.16777377
[    3.358238] s1a: Bringing 0uV into 1050000-1050000uV
[    3.358515] s1a: supplied by regulator-dummy
[    3.362419] s1b: Bringing 0uV into 1050000-1050000uV
[    3.366835] s1b: supplied by regulator-dummy
[    3.371608] s2a: Bringing 0uV into 775000-775000uV
[    3.376019] s2a: supplied by regulator-dummy
[    3.380484] s2b: Bringing 0uV into 775000-775000uV
[    3.385044] s2b: supplied by regulator-dummy
[    3.394868] thermal thermal_zone0: failed to read out thermal zone (-110)
[    3.409589] UBI: auto-attach mtd20
[    3.409612] ubi0: attaching mtd20
[    6.460572] ubi0: scanning is finished
[    6.472031] ubi0: attached mtd20 (name "ubi", size 416 MiB)
[    6.472055] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.476495] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.483345] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.490258] ubi0: good PEBs: 3328, bad PEBs: 0, corrupted PEBs: 0
[    6.497036] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    6.503225] ubi0: max/mean erase counter: 13/10, WL threshold: 4096, image sequence number: 1943802617
[    6.510407] ubi0: available PEBs: 0, total reserved PEBs: 3328, PEBs reserved for bad PEB handling: 80
[    6.519810] ubi0: background thread "ubi_bgt0d" started, PID 82
[    6.520447] block ubiblock0_1: created from ubi0:1(rā–’[    6.544450] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    6.545394] Freeing unused kernel memory: 1024K
[    6.575640] Run /sbin/init as init process
[    7.216819] init: Console is alive
[    7.216967] init: - watchdog -
[    7.219179] init: Watchdog has previously reset the system
[    9.291305] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    9.423691] Key type encrypted registered
[    9.428838] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    9.465401] genirq: irq_chip msmgpio did not update eff. affinity mask of irq 52
[    9.469125] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.475213] SCSI subsystem initialized
[    9.486504] ehci-fsl: Freescale EHCI Host controller driver
[    9.487123] ehci-platform: EHCI generic platform driver
[    9.505236] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    9.505801] ohci-platform: OHCI generic platform driver
[    9.521823] dwc3-qcom 100f8800.usb3: IRQ hs_phy_irq not found
[    9.521874] dwc3-qcom 100f8800.usb3: IRQ dp_hs_phy_irq not found
[    9.526686] dwc3-qcom 100f8800.usb3: IRQ dm_hs_phy_irq not found
[    9.532636] dwc3-qcom 100f8800.usb3: IRQ ss_phy_irq not found
[    9.541564] dwc3-qcom 110f8800.usb3: IRQ hs_phy_irq not found
[    9.544269] dwc3-qcom 110f8800.usb3: IRQ dp_hs_phy_irq not found
[    9.550110] dwc3-qcom 110f8800.usb3: IRQ dm_hs_phy_irq not found
[    9.556176] dwc3-qcom 110f8800.usb3: IRQ ss_phy_irq not found
[    9.703587] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    9.703633] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    9.708214] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    9.715646] xhci-hcd xhci-hcd.0.auto: irq 54, io mem 0x10000000
[    9.725825] hub 1-0:1.0: USB hub found
[    9.730888] hub 1-0:1.0: 1 port detected
[    9.734876] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    9.738699] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    9.743993] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    9.761944] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.762281] hub 2-0:1.0: USB hub found
[    9.769175] hub 2-0:1.0: 1 port detected
[    9.772926] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    9.776813] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    9.782171] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    9.789666] xhci-hcd xhci-hcd.1.auto: irq 55, io mem 0x11000000
[    9.799573] hub 3-0:1.0: USB hub found
[    9.804941] hub 3-0:1.0: 1 port detected
[    9.808861] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    9.812763] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    9.818109] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    9.825771] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.832520] hub 4-0:1.0: USB hub found
[    9.840550] hub 4-0:1.0: 1 port detected
[    9.846938] usbcore: registered new interface driver usb-storage
[    9.849073] usbcore: registered new interface driver uas
[    9.854195] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.867983] 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
[   22.444901] Starting lvm2 during preinit
File descriptor 3 (/dev/watchdog) leaked on lvm invocation. Parent PID 98: /bin/sh
File descriptor 3 (/dev/watchdog) leaked on lvm invocation. Parent PID 98: /bin/sh
[   23.630023] mount_root: loading kmods from internal overlay
[   23.680124] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   23.683977] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   23.950305] UBIFS (ubi0:2): default file-system created
[   23.951357] UBIFS (ubi0:2): Mounting in unauthenticated mode
[   23.964939] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 182
[   24.057138] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   24.057200] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   24.063986] UBIFS (ubi0:2): FS size: 396419072 bytes (378 MiB, 3122 LEBs), journal size 19808256 bytes (18 MiB, 156 LEBs)
[   24.074029] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   24.084933] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID EB639CE3-13AA-4E32-9A82-6F3EF79B7A7C, small LPT model
[   24.093326] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   24.103352] block: unable to load configuration (fstab: Entry not found)
[   24.109969] block: attempting to load /tmp/ubifs_cfg/etc/config/fstab
[   24.116862] block: unable to load configuration (fstab: Entry not found)
[   24.122924] block: attempting to load /etc/config/fstab
[   24.137375] block: unable to load configuration (fstab: Entry not found)
[   24.137464] block: no usable configuration
[   24.146255] UBIFS (ubi0:2): un-mount UBI device 0
[   24.147106] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" stops
[   24.156394] UBIFS (ubi0:2): Mounting in unauthenticated mode
[   24.164892] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 183
[   24.252266] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   24.252304] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   24.259184] UBIFS (ubi0:2): FS size: 396419072 bytes (378 MiB, 3122 LEBs), journal size 19808256 bytes (18 MiB, 156 LEBs)
[   24.269064] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   24.279983] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID EB639CE3-13AA-4E32-9A82-6F3EF79B7A7C, small LPT model
[   24.426289] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   24.426453] block: unable to load configuration (fstab: Entry not found)
[   24.432139] block: attempting to load /tmp/ubifs_cfg/etc/config/fstab
[   24.439246] block: unable to load configuration (fstab: Entry not found)
[   24.445458] block: attempting to load /etc/config/fstab
[   24.452187] block: unable to load configuration (fstab: Entry not found)
[   24.457220] block: no usable configuration
[   24.466560] mount_root: overlay filesystem has not been fully initialized yet
[   24.469039] mount_root: switching to ubifs overlay
[   24.498940] urandom-seed: Seed file not found (/etc/urandom.seed)
[   24.552748] procd: - early -
[   24.552855] procd: - watchdog -
[   24.554841] procd: Watchdog has previously reset the system
[   25.216322] procd: - watchdog -
[   25.216572] procd: Watchdog has previously reset the system
[   25.227208] procd: - ubus -
[   25.401037] procd: - init -
Please press Enter to activate this console.
[   26.273372] urngd: v1.0.2 started.
[   26.432551] kmodloader: loading kernel modules from /etc/modules.d/*
[   26.446663] NET: Registered protocol family 38
[   26.471254] Key type dns_resolver registered
[   26.505850] RPC: Registered named UNIX socket transport module.
[   26.505878] RPC: Registered udp transport module.
[   26.510589] RPC: Registered tcp transport module.
[   26.515510] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   26.528177] NET: Registered protocol family 15
[   26.530122] Initializing XFRM netlink socket
[   26.533418] tun: Universal TUN/TAP device driver, 1.6
[   26.540735] **********************************************************
[   26.540886] * Driver    :NSS GMAC Driver - RTL v(3.72a)
[   26.547372] * Version   :1.0
[   26.552425] * Copyright :Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
[   26.555634] **********************************************************
[   26.756724] nss_driver - fw of size 536324  bytes copied to load addr: 40000000, nss_id : 0
[   26.758052] nss_driver - Turbo Support 1
[   26.763888] Supported Frequencies -
[   26.763895] 800Mhz
[   26.768123] 800Mhz
[   26.771599] 800Mhz
[   26.773422]
[   26.778723] 8dedc0b0: meminfo init succeed
[   26.815099] node size 1 # items 2
[   26.815222] memory: 0 0 (avl 1031151616) items 2 active_cores 2
[   26.817508] 8dedc0b0: nss core 0 booted successfully
[   27.022981] nss_driver - fw of size 218224  bytes copied to load addr: 40800000, nss_id : 1
[   27.023466] 4f130900: meminfo init succeed
[   27.030338] debugfs: File 'n2h' in directory 'stats' already present!
[   27.034320] debugfs: File 'qrfs' in directory 'stats' already present!
[   27.040914] debugfs: File 'c2c_tx' in directory 'stats' already present!
[   27.047335] debugfs: File 'c2c_rx' in directory 'stats' already present!
[   27.054102] debugfs: File 'unaligned' in directory 'stats' already present!
[   27.062183] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   27.063457] node size 1 # items 2
[   27.073389] memory: 0 0 (avl 1031151616) items 2 active_cores 2
[   27.076938] 4f130900: nss core 1 booted successfully
[   27.093936] NFS: Registering the id_resolver key type
[   27.093985] Key type id_resolver registered
[   27.098045] Key type id_legacy registered
[   27.187046] cryptodev: driver 1.12 loaded.
[   27.193780] PPP generic driver version 2.4.2
[   27.196035] NET: Registered protocol family 24
[   27.212136] GACT probability on
[   27.213696] Mirror/redirect action on
[   27.220686] u32 classifier
[   27.220708]     input device check on
[   27.222301]     Actions configured
[   27.234665] fuse: init (API version 7.32)
[   27.239468] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
[   27.239516] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
[   27.305494] xt_time: kernel timezone is -0000
[   27.381467] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   27.381493] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   27.414768] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[   27.415533] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   35.862457] ath10k_pci 0000:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[   35.862559] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   35.878339] ath10k_pci 0000:01:00.0: firmware ver 10.4-3.9.0.2-00156 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 2570f4c7
[   38.163672] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 0:1 crc32 826c8c57
[   41.945320] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 512 raw 0 hwcrypto 1
[   42.050005] ath10k_pci 0001:01:00.0: enabling device (0140 -> 0142)
[   42.050959] ath10k_pci 0001:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   42.909945] ath10k_pci 0001:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[   42.909981] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   42.921050] ath10k_pci 0001:01:00.0: firmware ver 10.4-3.9.0.2-00156 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 2570f4c7
[   45.200198] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id 0:2 crc32 826c8c57
[   48.996322] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 512 raw 0 hwcrypto 1
[   49.094933] kmodloader: done loading kernel modules from /etc/modules.d/*
[   57.912836] ECM init
[   57.912887] ECM database jhash random seed: 0xf4e8435f
[   57.915716] ECM init complete
[   60.332306] ipq8064-mdio 37000000.mdio eth0: 1000 Mbps Full Duplex
[   61.442434] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

@127.0.0.1 @dadogroove Today's Master build has changes directly to the rt4230w-rev6 .dts file. Let me know if that does the trick.

So the wifi works but no ethernet port connectivity, LAN or WAN although the port lights are functioning. Attached is a picture of the network devices section which has missing mac addresses.

Step in the right direction. The relevant section is at the bottom of this patch. Any suggestions (I donā€™t have this device and canā€™t test any changes - but if we can figure out these sections, should be able to get hardware offloading working)?

My .dts here is running well for my RT4230W, albeit it is for openwrt-21.02 that's based on the 5.4 kernel. It should not differ too much, if at all, for 5.10.

Here's the stock .dts in case it helps at all

I won't lie, this is a bit above my pay grade. But looking at the .dts from @lmore377 compared to the one from @ACwifidude, I noticed this:

one from @lmore377

ethernet@37000000 {
			device_type = "network";
			compatible = "qcom,nss-gmac";
			reg = <0x37000000 0x200000>;
			interrupts = <0x00 0xdc 0x04>;
			phy-mode = "rgmii";
			qcom,id = <0x00>;
			qcom,pcs-chanid = <0x00>;
			qcom,phy-mdio-addr = <0x00>;
			qcom,poll-required = <0x01>;
			qcom,rgmii-delay = <0x01>;
			qcom,emulation = <0x00>;
			qcom,forced-speed = <0x3e8>;
			qcom,forced-duplex = <0x01>;
			qcom,socver = <0x00>;
			local-mac-address = [00 00 00 00 00 00];
			mdiobus = <0x25>;
		};

		ethernet@37200000 {
			device_type = "network";
			compatible = "qcom,nss-gmac";
			reg = <0x37200000 0x200000>;
			interrupts = <0x00 0xdf 0x04>;
			phy-mode = "sgmii";
			qcom,id = <0x01>;
			qcom,pcs-chanid = <0x01>;
			qcom,phy-mdio-addr = <0x04>;
			qcom,poll-required = <0x00>;
			qcom,rgmii-delay = <0x00>;
			qcom,emulation = <0x00>;
			qcom,forced-speed = <0x3e8>;
			qcom,forced-duplex = <0x01>;
			qcom,socver = <0x00>;
			local-mac-address = [00 00 00 00 00 00];
			mdiobus = <0x25>;

the reg = 0x370 & 0x372

one from @ACwifidude:

+ &gmac1 {
+	compatible = "qcom,nss-gmac";
+	reg = <0x37200000 0x200000>;
+	interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+	qcom,pcs-chanid = <0>;
+	qcom,phy_mii_type = <0>;
+	qcom,emulation = <0>;
+	qcom,forced-speed = <1000>;
+	qcom,forced-duplex = <1>;
+	qcom,socver = <0>;
+	qcom,irq = <255>;
+	mdiobus = <&mdio0>;
+ };
+
+ &gmac2 {
+	compatible = "qcom,nss-gmac";
+	reg = <0x37400000 0x200000>;
+	interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
+	qcom,pcs-chanid = <1>;
+	qcom,phy_mii_type = <1>;
+	qcom,emulation = <0>;
+	qcom,forced-speed = <1000>;
+	qcom,forced-duplex = <1>;
+	qcom,socver = <0>;
+	qcom,irq = <258>;
+	mdiobus = <&mdio0>;
+ };	

the reg = lines are 0x372 & 0x374.

At the bottom of this patch is this section

phy4: ethernet-phy@4 {
+		reg = <4>;
+		qca,ar8327-initvals = <

+			0x000e4 0x6a545     /* MAC_POWER_SEL */

+			+			>;
+	};

In the original from lmore377 and from github.com/openwrt/openwrt/blob/master/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts, it looks like this

qca,ar8327-initvals = <
			
			0x000e4 0xaa545     /* MAC_POWER_SEL */
			
			>;

Not sure if that's anything, just an observation looking over the files.

@ACwifidude I noticed your RT4230W .dts fileā€™s gmac entry compatible value is set to the kernelā€™s driver. The nss-gmac driver will not take over and NSS acceleration will not take effect.

@lmore377

I have a SAC2V1K router (with QR code on the back, no Spectrum web interface) that actually has 512MB flash according to serial console output. I used RAC2V1K command and it works fine, OpenWRT recognizes around 380MB of usable space.

U-Boot 1.0.7 [spf6.0_csu1] (Oct 20 2020 - 03:37:17)

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:   
*** Warning - bad CRC, using default environment

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:94:91:7f:c7:e2:a7
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init  done
MAC1 addr:94:91:7f:c7:e2:a8
eth0, eth1
Hit space key to stop autoboot:  0 
(IPQ) # 

Yeah the RAC2V1K and SAC2V1K are the same hardware internally it just seems like SAC more often than not has the smaller flash but sometimes RAC has the smaller one too

Updated the master build. My patch was based off gmac1 & gmac2 and applied universal settings at the ipq8064.dtsi file (causing conflicts with this deviceā€™s use of gmac0 and gmac1).

Let me know if the latest changes work. Worst case I can restructure the patch to go back to making changes at the lower, individual .dts files to prevent all possible conflicts between devices.

So far, so good. It is up and running with LAN and WAN ports working now!

1 Like

Awesome! Should be able to provide full line speed (940mbps) NAT with minimal CPU usage and a boost in wifi speed.

Thanks for working on this issue! It's working fine behind my existing router right now. Should be able to get it fully implemented this weekend to test the NSS. The wifi speeds are great, as usual. Cheers!

On a side note, I use minidlna on my R7800 and will on this one too, it works fine but always complains about the kernel version when I install it with your builds. Is that anything to really worry about?