sd8887-mrvl driver problems on balenafin cm3

Hi,

I’m building a custom image using Yocto+OpenEmbedded to run on a BalenaFin. I’m using gatesgarth as the base for my image, extended with the meta-raspberrypi layer and a custom layer. I’ve been trying to get the sd8887-mrvl recipe to work (I cloned it from the meta-balena-raspberrypi layer, which is still on dunfell). Unfortunately, the sd8887-mrvl recipe does not work anymore since its source repository has gone private. Looking at the genereated_defconfig file, this was built for 5.4.83 so I pulled in this kernel. Unfortunately, I still can’t get the wifi to work. I’ve posted some terminal output below.

Thanks very much in advance for the help!

Linux fincm3 5.4.83-v7 #1 SMP Mon Dec 14 12:43:54 UTC 2020 armv7l GNU/Linux
root@fincm3:~# dmesg | grep mlan
[   10.469793] mlan: disagrees about version of symbol module_layout
root@fincm3:~# ifup wlan0
Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
ip: SIOCGIFFLAGS: No such device

Hey @jessegeens, have you tried using the prebuilt variant of the sd8887-mrvl recipe?

Hi @klutchell,

Yes, that’s the one I have been using. It compiles perfectly but gives the mlan error at run-time. The non-prebuilt variant doesnt compile for me.

Okay, thanks for clarifying. To me it looks like it could be a compatibility issue between the kernels as the prebuilt would not be using the kernel from gatesgarth yet. Is there something specific you need from gatesgarth?

Yes, we use cockpit, which unfortunately is only available on gatesgarth (OpenEmbedded Layer Index - cockpit)

Very cool, I’ll have to give cockpit a try!

Have you tried backporting that recipe? It looks pretty straightforward, you may be able to copy the recipe files to an existing dunfell layer and have it still work. At least until we have newer binaries or sources for the wifi drivers.

I’ll try that and let you know if it worked out :wink: Thanks for the help!

No problem, take care out there!