I got my hands on a couple Arista AP-C200s, which, to my dismay were locked down and required a subscription to use. Naturally, I decided I wanted to flash OpenWRT on these.
I've already rooted the stock firmware, opened up UBoot, and gotten OpenWRT to boot, but I immediately noticed no network interfaces would appear.
For the wifi, I've already grabbed the bdwlan.bin from the stock firmware and used ath11k-bdencoder on it and placed it in /lib/firmware/ath11k/IPQ6018/hw1.0/board-2.bin, I also made a board specific package and used the "files" folder like it says in the Makefile, but it didn't seem to actually put the file in the build, so I just added it manually for testing, but the driver still doesn't seem to even try to load it.
root@OpenWrt:/# ls /lib/firmware/ath11k/IPQ6018/hw1.0/
board-2.bin
As for the ethernet, it appears to be using the qualcomm NSS Dataplane driver, but it just errors
[ 15.190207] nss-dp 3a001000.dp1 lan (uninitialized): failed to connect to phy device
[ 15.230062] nss-dp: probe of 3a001000.dp1 failed with error -14
I'm assuming this has to do with my terrible hobbled together device tree file.
Your mdio node looks like a c&p from the stock (QSDK) dts. Don't do that, use one from the OpenWrt devices (wax214 for example) and adapt that to your needs.
Post the board-2.bin so we can have a look at the json header.
I realized I messed up the json for the board-2.bin.
Now it's crashing when the wifi driver loads.
As for the ethernet, I took your advice and modified the device tree following another openwrt example, and now the driver doesn't error when it loads, but there are no interfaces present.
To get ethernet working, you also need a proper entry in target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network. Otherwise uci defaults apply (network interface eth0 that doesn't exist on your device))
Just add your device to the netgear,wax214 entry.
But looking at the log, ssdk is still complaining about the mdio node.
BTW, please publish your code somethere, that makes it much easier to check.
Anyone know why adding the board to the ipq-wifi Makefile and then adding the board file to the files folder in the ipq-wifi package like it says in the make file, and then selecting it in menuconfig doesn't add the file to the image in /lib/firmware/?
@robimarko
according to the stock kernel log that device is using an at803x Ethernet phy.
Do we need to config something special in terms of mdio/switch or dp?
Should the dp1 configured to sgmii instead of the psgmii?