I'm trying to port CF-E375AC from the ar71xx match files but I'm struggling with the switch device. The kernel acknowledge events such as cables being plug to interfaces but I couldn't make the connectivity for the ports works (ping 192.168.1.1 on lan port or get and dhcp at the wan port). If anyone has some suggestions I've setup an initial PR here
for me the bootlog seems fine from initram at least
Image Name: MIPS OpenWrt Linux-5.4.52
Created: 2020-08-14 15:04:02 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 4711555 Bytes = 4.5 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x81000040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
[ 0.000000] Linux version 5.4.52 (joao@joao-Elcomasv-01) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14176+1-bda1c12)) #0 Fri Aug 14 15:04:02 2020
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] MIPS: machine is COMFAST CF-E375AC
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 114708K/131072K available (4766K kernel code, 190K rwdata, 1108K rodata, 8776K init, 196K bss, 16364K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] random: get_random_bytes called from start_kernel+0x32c/0x518 with crng_init=0
[ 0.000000] CPU clock: 775.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[ 0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[ 0.008215] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
[ 0.046714] pid_max: default: 32768 minimum: 301
[ 0.051702] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.059419] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.071332] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.081642] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.088935] pinctrl core: initialized pinctrl subsystem
[ 0.095354] NET: Registered protocol family 16
[ 0.130459] clocksource: Switched to clocksource MIPS
[ 0.136890] NET: Registered protocol family 2
[ 0.142190] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.151067] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.159163] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.166608] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.173430] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.180370] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.188026] NET: Registered protocol family 1
[ 0.192668] PCI: CLS 0 bytes, default 32
[ 0.329420] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.342278] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.348464] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.373996] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.381064] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.388428] printk: console [ttyS0] disabled
[ 0.393015] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[ 0.402117] printk: console [ttyS0] enabled
[ 0.402117] printk: console [ttyS0] enabled
[ 0.411176] printk: bootconsole [early0] disabled
[ 0.411176] printk: bootconsole [early0] disabled
[ 0.436821] spi-nor spi0.0: w25q128 (16384 Kbytes)
[ 0.441833] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.448407] Creating 4 MTD partitions on "spi0.0":
[ 0.453370] 0x000000000000-0x000000040000 : "u-boot"
[ 0.459381] 0x000000040000-0x000000050000 : "art"
[ 0.465093] 0x000000050000-0x000000ff0000 : "firmware"
[ 0.473781] 2 uimage-fw partitions found on MTD device firmware
[ 0.479950] Creating 2 MTD partitions on "firmware":
[ 0.485104] 0x000000000000-0x000000160000 : "kernel"
[ 0.491061] 0x000000160000-0x000000fa0000 : "rootfs"
[ 0.497018] mtd: device 4 (rootfs) set to be root filesystem
[ 0.504614] 1 squashfs-split partitions found on MTD device rootfs
[ 0.511062] 0x000000a30000-0x000000fa0000 : "rootfs_data"
[ 0.517463] 0x000000ff0000-0x000001000000 : "art-backup"
[ 0.525564] libphy: Fixed MDIO Bus: probed
[ 1.138451] random: fast init done
[ 1.178833] libphy: ag71xx_mdio: probed
[ 1.204951] switch0: Atheros AR8337 rev. 2 switch registered on mdio.0
[ 1.793944] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 1.805222] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[ 1.811670] i2c /dev entries driver
[ 1.815479] ath79-wdt 18060008.wdt: unable to register misc device, err=-16
[ 1.822727] ath79-wdt: probe of 18060008.wdt failed with error -16
[ 1.830793] NET: Registered protocol family 10
[ 1.839819] Segment Routing with IPv6
[ 1.843754] NET: Registered protocol family 17
[ 1.848425] 8021q: 802.1Q VLAN Support v1.8
[ 1.853473] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[ 1.859839] MEM 0x0000000012000000..0x0000000013ffffff
[ 1.865245] IO 0x0000000000000000..0x0000000000000000
[ 1.870807] PCI host bridge to bus 0000:00
[ 1.875076] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 1.882186] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.887948] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.894961] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.903177] pci 0000:00:00.0: [168c:0056] type 00 class 0x028000
[ 1.909439] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 1.916581] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.923134] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 1.929998] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 1.986861] Freeing unused kernel memory: 8776K
[ 1.991572] This architecture does not have kernel memory protection.
[ 1.998229] Run /init as init process
[ 2.015076] init: Console is alive
[ 2.018917] init: - watchdog -
[ 2.041215] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.059999] usbcore: registered new interface driver usbfs
[ 2.065785] usbcore: registered new interface driver hub
[ 2.071382] usbcore: registered new device driver usb
[ 2.082221] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.090531] ehci-fsl: Freescale EHCI Host controller driver
[ 2.097796] ehci-platform: EHCI generic platform driver
[ 2.105381] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.114141] init: - preinit -
[ 2.366398] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.475600] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.609304] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.894292] eth0: link up (1000Mbps/Full duplex)
[ 2.905192] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[ 3.906961] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is up
[ 7.038186] eth0: link down
[ 7.051663] procd: - early -
[ 7.054794] procd: - watchdog -
[ 7.607192] procd: - watchdog -
[ 7.610758] procd: - ubus -
[ 7.620491] urandom_read: 5 callbacks suppressed
[ 7.620498] random: ubusd: uninitialized urandom read (4 bytes read)
[ 7.664053] random: ubusd: uninitialized urandom read (4 bytes read)
[ 7.671961] procd: - init -
Please press Enter to activate this console.
[ 8.136162] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.169668] Loading modules backported from Linux version v5.8-0-gbcf876870b95
[ 8.177183] Backport generated by backports.git v5.8-1-0-g79400d9e
[ 8.237692] xt_time: kernel timezone is -0000
[ 8.367381] PPP generic driver version 2.4.2
[ 8.383295] NET: Registered protocol family 24
[ 8.407579] urngd: v1.0.2 started.
[ 8.457370] ath10k 5.4 driver, optimized for CT firmware, probing pci device: 0x56.
[ 8.465432] ath10k_mac_create, priv_size: 804 hw: (ptrval) hw->priv: (ptrval)
[ 8.495126] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 8.501919] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 8.590977] random: crng init done
[ 10.569410] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[ 10.578993] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 10.599004] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9888-fW-13-8c5b2baa2 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,3
[ 11.029676] ath10k_pci 0000:00:00.0: board_file api 2 bmi_id 0:16 crc32 f228337a
[ 13.066449] ath10k_pci 0000:00:00.0: unsupported HTC service id: 1536
[ 13.076838] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 13.084611] ath10k_pci 0000:00:00.0: msdu-desc: 2500 skid: 32
[ 13.135788] ath10k_pci 0000:00:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
[ 13.147096] ath10k_pci 0000:00:00.0: wmi print 'free: 114572 iram: 12804 sram: 29508'
[ 13.415424] 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
[ 13.595130] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[ 13.630855] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 28.865761] eth0: link up (1000Mbps/Full duplex)
[ 28.878770] br-lan: port 1(eth0.2) entered blocking state
[ 28.884396] br-lan: port 1(eth0.2) entered disabled state
[ 28.890284] device eth0.2 entered promiscuous mode
[ 28.895289] device eth0 entered promiscuous mode
[ 28.901217] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.927974] br-lan: port 1(eth0.2) entered blocking state
[ 28.933597] br-lan: port 1(eth0.2) entered forwarding state
[ 29.890552] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready