Hey everyone!
I've been trying to build OpenWRT for CF-E319A V2.
It has QCA9563 + QCA9886 + AR8033 on board. One ethernet port.
I have got root access to the original firmware and a serial connection, so i get all boot logs.
Checked out what other Comfast boards have the same specs, the CF-E375AC has them, tried flashing OEM Firmware for that one on mine, it worked. Mind, it didn't fully function, as something was still different, but it booted ok and i got to the web-GUI.
So far I've tried building openwrt using the COMFAST CF-E375AC Target Profile: https://imgur.com/a/ZtEki2p
My results:
If left as is, it builds ok -> the system flashes -> the kernel boot starts -> tries to call the QCA9888 drivers and goes into kernel panic -> reboots...
Logs:
(the oops starts at line 515)
After that i tried building with the ath10k-qca988x board, firmware and kmods. The result is the same, but the logs are a bit different:
(line 507, the ath10k kmod tries to call qca9888 drivers, but there are none)
Finally, i deleted all wifi kmods. Now it boots fully, no kernel panic:
I thought that maybe i can just opkg install the kmods and the firmware on a live openwrt, but it refuses to connect to the internet, or be pinged by any ip in the network or be a dhcp client. At the same time it thinks that br-lan has two ports: eth0.1 and eth0.2.
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fdeb:fb14:c799::/48'
network.@device[0]=device
network.@device[0].name='eth0.1'
network.@device[0].macaddr='19:85:20:03:00:01'
network.wan=interface
network.wan.device='eth0.1'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='eth0.1'
network.wan6.proto='dhcpv6'
network.@device[1]=device
network.@device[1].name='br-lan'
network.@device[1].type='bridge'
network.@device[1].ports='eth0.2'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 0t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='2 0t'
root@OpenWrt:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether e2:fa:7a:21:52:1a brd ff:ff:ff:ff:ff:ff
inet6 fe80::e0fa:7aff:fe21:521a/64 scope link
valid_lft forever preferred_lft forever
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether e2:fa:7a:21:52:1a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fdeb:fb14:c799::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::e0fa:7aff:fe21:521a/64 scope link
valid_lft forever preferred_lft forever
5: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether e2:fa:7a:21:52:1a brd ff:ff:ff:ff:ff:ff
6: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether e2:fa:7a:21:52:1a brd ff:ff:ff:ff:ff:ff
inet6 fe80::e0fa:7aff:fe21:521a/64 scope link
valid_lft forever preferred_lft forever
root@OpenWrt:~# ip r
192.168.1.0/24 dev br-lan scope link src 192.168.1.1
So I ask for help on what would be a good course of action from what i have, or if something may already be done, and i am not seeing it.