Testing ath79 dsa driver(Xiaomi AIoT AC2350)

With the strange conf in theory it should work or not.

Well, it doesn't work! The Ethernet speed is 100/100 when it should be gigabit and I get no ip address. If I set a static one, I can't connect to luci at all nor ping 192.168.1.1 with error REQUEST_TIMED_OUT. I'll try failsafe mode and if that doesn't work I'll create an image that enables wifi by default and see what I can do. Unfortunately I don't have a uart adapter to get a log without wifi.

mhhh expected but thx for the testing... yes pls can you create an image with wifi so we can get a log?

Yep. Doing that right after I debrick the router.

thx a lot for your test we suspected something was wrong for this device

system log

Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.000000] Linux version 5.10.70 (marios@LAPTOP-7MBB7TPO) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r17673+8-57b323ce38) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Sun Oct 3 00:23:10 2021
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] printk: bootconsole [early0] enabled
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] MIPS: machine is Xiaomi AIoT AC2350
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Zone ranges:
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Movable zone start for each node
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Early memory node ranges
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    0.000000] On node 0 totalpages: 32768
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    0.000000]   Normal zone: 288 pages used for memmap
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Writing ErrCtl register=00000000
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Readback ErrCtl register=00000000
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] Memory: 120968K/131072K available (5553K kernel code, 593K rwdata, 1224K rodata, 1196K init, 201K bss, 10104K reserved, 0K cma-reserved)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] NR_IRQS: 51
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.000000] random: get_random_bytes called from start_kernel+0x3c0/0x5b0 with crng_init=0
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] CPU clock: 775.000 MHz
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.008217] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.074751] pid_max: default: 32768 minimum: 301
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.079745] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.087452] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.097318] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.107926] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.118332] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.125594] pinctrl core: initialized pinctrl subsystem
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.132028] NET: Registered protocol family 16
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.137416] thermal_sys: Registered thermal governor 'step_wise'
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.187805] clocksource: Switched to clocksource MIPS
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.200567] NET: Registered protocol family 2
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.205298] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.213446] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.222349] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.230437] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.237877] TCP: Hash tables configured (established 1024 bind 1024)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.244695] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.251651] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.259264] NET: Registered protocol family 1
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.263884] PCI: CLS 0 bytes, default 32
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.273471] workingset: timestamp_bits=14 max_order=15 bucket_order=1
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.283729] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.289935] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.303652] pinctrl-single 1804002c.pinmux: 544 pins, size 68
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.310298] gpio-export gpio-export: 2 gpio(s) exported
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.316541] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.323933] printk: console [ttyS0] disabled
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.328547] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.337647] printk: console [ttyS0] enabled
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.346715] printk: bootconsole [early0] disabled
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.367384] spi-nor spi0.0: en25qh128 (16384 Kbytes)
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.372629] 8 fixed-partitions partitions found on MTD device spi0.0
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.379220] Creating 8 MTD partitions on "spi0.0":
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.384173] 0x000000000000-0x000000030000 : "Bootloader"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.393103] 0x000000030000-0x000000040000 : "Nvram"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.399013] 0x000000040000-0x000000050000 : "Bdata"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.406284] 0x000000050000-0x000000060000 : "crash"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.412281] 0x000000060000-0x000000070000 : "art"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.419487] 0x000000070000-0x000000090000 : "cfg_bak"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.425536] 0x000000090000-0x000000200000 : "overlay"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.433030] 0x000000200000-0x000001000000 : "firmware"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.439425] 2 uimage-fw partitions found on MTD device firmware
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.445552] Creating 2 MTD partitions on "firmware":
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.450726] 0x000000000000-0x000000230000 : "kernel"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.458064] 0x000000230000-0x000000e00000 : "rootfs"
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.463944] mtd: device 9 (rootfs) set to be root filesystem
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.470713] 1 squashfs-split partitions found on MTD device rootfs
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    0.477119] 0x0000005e0000-0x000000e00000 : "rootfs_data"
Sun Oct  3 00:23:25 2021 kern.info kernel: [    0.489379] libphy: Fixed MDIO Bus: probed
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.208487] libphy: ag71xx_mdio: probed
Sun Oct  3 00:23:25 2021 kern.err kernel: [    1.215303] qca8k mdio.0:00: Switch id detected 13 but expected 12
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.222818] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.232672] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.239109] i2c /dev entries driver
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.244388] NET: Registered protocol family 10
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.255437] Segment Routing with IPv6
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.259378] NET: Registered protocol family 17
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.264241] 8021q: 802.1Q VLAN Support v1.8
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.269335] PCI host bridge /ahb/pcie-controller@18250000 ranges:
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.275656]  MEM 0x0000000012000000..0x0000000013ffffff
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.281102]   IO 0x0000000000000000..0x0000000000000000
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.286671] PCI host bridge to bus 0000:00
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.290945] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.298054] pci_bus 0000:00: root bus resource [io  0x0000]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.303804] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.310819] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.319054] pci 0000:00:00.0: [168c:0046] type 00 class 0x028000
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.325289] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.332434] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.338774] pci 0000:00:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.355120] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.362007] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.375856] VFS: Mounted root (squashfs filesystem) readonly on device 31:9.
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.389735] Freeing unused kernel memory: 1196K
Sun Oct  3 00:23:25 2021 kern.warn kernel: [    1.394414] This architecture does not have kernel memory protection.
Sun Oct  3 00:23:25 2021 kern.info kernel: [    1.401100] Run /sbin/init as init process
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    1.405325]   with arguments:
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    1.405329]     /sbin/init
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    1.405332]   with environment:
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    1.405336]     HOME=/
Sun Oct  3 00:23:25 2021 kern.debug kernel: [    1.405339]     TERM=linux
Sun Oct  3 00:23:25 2021 user.info kernel: [    1.959203] init: Console is alive
Sun Oct  3 00:23:25 2021 user.info kernel: [    1.963163] init: - watchdog -
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    2.407815] random: fast init done
Sun Oct  3 00:23:25 2021 user.info kernel: [    2.964208] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Sun Oct  3 00:23:25 2021 user.info kernel: [    2.997430] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Sun Oct  3 00:23:25 2021 user.info kernel: [    3.015383] init: - preinit -
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    3.986604] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    4.109486] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    4.190317] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct  3 00:23:25 2021 user.notice kernel: [    8.683525] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
Sun Oct  3 00:23:25 2021 user.warn kernel: [    8.694328] urandom-seed: Seed file not found (/etc/urandom.seed)
Sun Oct  3 00:23:25 2021 user.info kernel: [    8.725995] procd: - early -
Sun Oct  3 00:23:25 2021 user.info kernel: [    8.729930] procd: - watchdog -
Sun Oct  3 00:23:25 2021 user.info kernel: [    9.388683] procd: - watchdog -
Sun Oct  3 00:23:25 2021 user.info kernel: [    9.414005] procd: - ubus -
Sun Oct  3 00:23:25 2021 kern.warn kernel: [    9.571978] urandom_read: 5 callbacks suppressed
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    9.571986] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct  3 00:23:25 2021 kern.notice kernel: [    9.602227] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct  3 00:23:25 2021 user.info kernel: [    9.617057] procd: - init -
Sun Oct  3 00:23:25 2021 user.info kernel: [   10.572131] kmodloader: loading kernel modules from /etc/modules.d/*
Sun Oct  3 00:23:25 2021 user.info kernel: [   10.968570] urngd: v1.0.2 started.
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.095006] Loading modules backported from Linux version v5.10.68-0-g4d8524048a35
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.102877] Backport generated by backports.git v5.10.68-1-0-ga4f9ba32
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.184321] xt_time: kernel timezone is -0000
Sun Oct  3 00:23:25 2021 kern.notice kernel: [   11.204043] random: crng init done
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.350403] PPP generic driver version 2.4.2
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.369509] NET: Registered protocol family 24
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.448834] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
Sun Oct  3 00:23:25 2021 kern.info kernel: [   11.455579] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Sun Oct  3 00:23:25 2021 kern.warn kernel: [   13.282517] ath10k_pci 0000:00:00.0: Unknown FW IE: 30
Sun Oct  3 00:23:25 2021 kern.info kernel: [   13.287877] ath10k_pci 0000:00:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
Sun Oct  3 00:23:25 2021 kern.info kernel: [   13.298135] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
Sun Oct  3 00:23:25 2021 kern.info kernel: [   13.317142] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9984-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl crc32 7ea63dc5
Sun Oct  3 00:23:25 2021 kern.err kernel: [   15.650694] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=16 from ath10k/QCA9984/hw1.0/board-2.bin
Sun Oct  3 00:23:25 2021 kern.info kernel: [   15.664552] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:16 crc32 5e637050
Sun Oct  3 00:23:25 2021 kern.info kernel: [   19.314830] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.421061] ath: EEPROM regdomain sanitized
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.421076] ath: EEPROM regdomain: 0x64
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.421080] ath: EEPROM indicates we should expect a direct regpair map
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.421100] ath: Country alpha2 being used: 00
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.421105] ath: Regpair used: 0x64
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.506294] ath: EEPROM regdomain sanitized
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.506307] ath: EEPROM regdomain: 0x64
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.506312] ath: EEPROM indicates we should expect a direct regpair map
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.506332] ath: Country alpha2 being used: 00
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.506336] ath: Regpair used: 0x64
Sun Oct  3 00:23:25 2021 kern.debug kernel: [   19.518183] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Sun Oct  3 00:23:25 2021 kern.info kernel: [   19.520061] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
Sun Oct  3 00:23:25 2021 user.info kernel: [   19.616529] kmodloader: done loading kernel modules from /etc/modules.d/*
Sun Oct  3 00:23:26 2021 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Sun Oct  3 00:23:26 2021 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: started, version 2.86 cachesize 150
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: DNS service limited to local subnets
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: UBus support enabled: connected to system bus
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for test
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for onion
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for localhost
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for local
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for invalid
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for bind
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: using only locally-known addresses for lan
Sun Oct  3 00:23:27 2021 daemon.warn dnsmasq[1378]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: read /etc/hosts - 4 addresses
Sun Oct  3 00:23:27 2021 daemon.info dnsmasq[1378]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Sun Oct  3 00:23:48 2021 authpriv.info dropbear[1444]: Not backgrounding
Sun Oct  3 00:23:50 2021 daemon.notice wpa_supplicant[1543]: Successfully initialized wpa_supplicant
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: bonding
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: 8021ad
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: 8021q
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: macvlan
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: veth
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: bridge
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: Network device
Sun Oct  3 00:23:50 2021 user.notice : Added device handler type: tunnel
Sun Oct  3 00:23:52 2021 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records in
Sun Oct  3 00:23:52 2021 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records out
Sun Oct  3 00:23:53 2021 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Sun Oct  3 00:23:53 2021 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Sun Oct  3 00:23:53 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Sun Oct  3 00:23:53 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Sun Oct  3 00:23:53 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Sun Oct  3 00:23:54 2021 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Sun Oct  3 00:23:54 2021 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Sun Oct  3 00:23:54 2021 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Sun Oct  3 00:23:55 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Sun Oct  3 00:23:55 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Sun Oct  3 00:23:55 2021 kern.warn kernel: [   55.808287] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
Sun Oct  3 00:23:55 2021 kern.warn kernel: [   55.815416] jffs2_build_filesystem(): unlocking the mtd device...
Sun Oct  3 00:23:55 2021 kern.warn kernel: [   55.815420] done.
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'loopback' is enabled
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'loopback' is now up
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'lan' is enabled
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'lan' is setting up now
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'lan' is now up
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Network device 'lo' link is up
Sun Oct  3 00:23:58 2021 daemon.notice netifd: Interface 'loopback' has link connectivity
Sun Oct  3 00:23:59 2021 daemon.err odhcpd[1659]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Oct  3 00:23:59 2021 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Oct  3 00:23:59 2021 kern.warn kernel: [   55.823833] jffs2_build_filesystem(): erasing all blocks after the end marker...
Sun Oct  3 00:23:59 2021 kern.warn kernel: [   59.300941] netlink: 'iw': attribute type 302 has an invalid length.
Sun Oct  3 00:24:00 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.004474] br-lan: port 1(wlan0) entered blocking state
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.010019] br-lan: port 1(wlan0) entered disabled state
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.015796] device wlan0 entered promiscuous mode
Sun Oct  3 00:24:07 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->HT_SCAN
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.764834] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.771722] br-lan: port 1(wlan0) entered blocking state
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.777238] br-lan: port 1(wlan0) entered forwarding state
Sun Oct  3 00:24:07 2021 daemon.notice hostapd: wlan0: interface state HT_SCAN->ENABLED
Sun Oct  3 00:24:07 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Sun Oct  3 00:24:07 2021 kern.info kernel: [   67.810047] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sun Oct  3 00:24:07 2021 daemon.notice netifd: bridge 'br-lan' link is up
Sun Oct  3 00:24:07 2021 daemon.notice netifd: Interface 'lan' has link connectivity
Sun Oct  3 00:24:08 2021 daemon.notice netifd: Wireless device 'radio0' is now up
Sun Oct  3 00:24:08 2021 daemon.notice netifd: Network device 'wlan0' link is up
Sun Oct  3 00:24:08 2021 daemon.err odhcpd[1659]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[1378]: exiting on receipt of SIGTERM
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: started, version 2.86 cachesize 150
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: DNS service limited to local subnets
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: UBus support enabled: connected to system bus
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq-dhcp[2360]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for test
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for onion
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for localhost
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for local
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for invalid
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for bind
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: using only locally-known addresses for lan
Sun Oct  3 00:24:11 2021 daemon.warn dnsmasq[2360]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: read /etc/hosts - 4 addresses
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq-dhcp[2360]: read /etc/ethers - 0 addresses
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: read /etc/hosts - 4 addresses
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct  3 00:24:11 2021 daemon.info dnsmasq-dhcp[2360]: read /etc/ethers - 0 addresses
Sun Oct  3 00:24:13 2021 daemon.info dnsmasq[2360]: read /etc/hosts - 4 addresses
Sun Oct  3 00:24:13 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct  3 00:24:13 2021 daemon.info dnsmasq-dhcp[2360]: read /etc/ethers - 0 addresses
Sun Oct  3 00:24:17 2021 kern.warn kernel: [   77.513868] done.
Sun Oct  3 00:24:17 2021 kern.notice kernel: [   77.515886] jffs2: notice: (2018) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Sun Oct  3 00:24:17 2021 kern.warn kernel: [   77.739785] overlayfs: upper fs does not support tmpfile.
Sun Oct  3 00:24:17 2021 daemon.info mount_root: performing overlay whiteout
Sun Oct  3 00:24:17 2021 daemon.info mount_root: synchronizing overlay
Sun Oct  3 00:24:18 2021 daemon.err mount_root: failed to sync jffs2 overlay
Sun Oct  3 00:24:18 2021 daemon.notice procd: /etc/rc.d/S96led: setting up led WAN
Sun Oct  3 00:24:18 2021 daemon.notice procd: /etc/rc.d/S96led: Skipping trigger 'switch0' for led 'WAN' due to missing kernel module
Sun Oct  3 00:24:18 2021 daemon.info procd: - init complete -
Sun Oct  3 00:24:19 2021 daemon.info urandom_seed[2672]: Seed saved (/etc/urandom.seed)
Sun Oct  3 00:24:40 2021 daemon.info hostapd: wlan0: STA 5c:ba:ef:10:52:6d IEEE 802.11: authenticated
Sun Oct  3 00:24:40 2021 daemon.notice hostapd: wlan0: STA-OPMODE-N_SS-CHANGED 5c:ba:ef:10:52:6d 1
Sun Oct  3 00:24:40 2021 daemon.info hostapd: wlan0: STA 5c:ba:ef:10:52:6d IEEE 802.11: associated (aid 1)
Sun Oct  3 00:24:40 2021 daemon.notice hostapd: wlan0: AP-STA-CONNECTED 5c:ba:ef:10:52:6d
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq-dhcp[2360]: DHCPDISCOVER(br-lan) 5c:ba:ef:10:52:6d
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq-dhcp[2360]: DHCPOFFER(br-lan) 192.168.1.124 5c:ba:ef:10:52:6d
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq[2360]: read /etc/hosts - 4 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/odhcpd - 1 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq-dhcp[2360]: read /etc/ethers - 0 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq[2360]: read /etc/hosts - 4 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq[2360]: read /tmp/hosts/odhcpd - 1 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq-dhcp[2360]: read /etc/ethers - 0 addresses
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq-dhcp[2360]: DHCPREQUEST(br-lan) 192.168.1.124 5c:ba:ef:10:52:6d
Sun Oct  3 00:24:44 2021 daemon.info dnsmasq-dhcp[2360]: DHCPACK(br-lan) 192.168.1.124 5c:ba:ef:10:52:6d LAPTOP-7MBB7TPO
Sun Oct  3 00:25:28 2021 user.info : luci: accepted login on / for root from 192.168.1.124

there is no switch menu in luci
this line seems intresting: Sun Oct 3 00:23:25 2021 kern.err kernel: [ 1.215303] qca8k mdio.0:00: Switch id detected 13 but expected 12

Set qca8337

The switch seems to work now. The wan led doesnt work and there is still no switch page in luci. system log below
Sun Oct 3 00:23:25 2021 kern.notice kernel: [ 0.000000] Linux version 5.10.7 - Pastebin.com

1 Like

Do you have traffic? Can you do some speedtest

hahaha so the switch config is indeed bogus.

LED not working is a known problem. The actual definitions are missing.

FUN. I was right with my suspect that it was qca8337. Wikidevi is wrong?

Most likely. All qca956x devices use qca8337. I don't see why this should be an exception.

There's definitely traffic, since I can access luci, as for a speedtest should I do a wan to lan iperf3 test? I'll change the wiki page to indicate the correct switch in the meantime.

Yes sure also test if every port works

Hook up a computer to the router, run iperf3 -s on the router itself and iperf -c on the computer.

With that method I'm getting 400mbps and the routers CPU is maxed out. Software flow offloading makes a very small difference.

Is it faster without DSA?

Note that this is not testing routing. Routing is much faster.

You should really avoid running iperf on the router itself. Always run it on two separate computers connected to separate ports of the router.

Why? iperf on router works just fine.