Connect to wifi

@Jgilbert great news! Glad this is sorted now!

Yes; I’ll update when the new image is out :slight_smile:

Alex

Hi @Jgilbert,

The image for the WLAN fixes is available now - https://github.com/balena-os/pi-gen/releases/tag/v0.1.0.

Thanks for your patience on this!

@bucknalla Thanks! I have downloaded the image, and was able to update it without issues. For future reference, upgrading the OS loses the driver again.

Thank you again!

1 Like

Hello Everyone,

I have been following these details in an attempt to get a baked Yocto image with the fin running. Most of it works, except wlan.

I was wondering if there is (?) a detail explanation on the steps mentioned here:

Thanks for the great work!

Hi, we do not have any docs on how to integrate the proprietary WiFi driver, but I can point you to the corresponding recipes and patches we use:

Including the driver:

And those are the two patches that we include in our OS on top of the raspberrypi kernel:


Please check those and let us know if you have any questions regarding them.

Thanks,
Zahari

I appreciate the commentary and support in this thread and was able to get this fixed. However I skipped the “disable opensource wifi/bt driver” because I wasn’t sure how to do that.

Here are some more in depth steps to accomplish this.

My Situation

I have an image developed on RPI3/Raspbian that I’d like to flash on to the MMC and deploy on a BalenaFin v1.1.1. The BalenaFin flavored Raspbian is still on Debian Stretch and I need Python 3.7 among other systemd tweaks I’ve made to this image. I should note that my image started from a Raspbian Stretch image and then dist-upgraded to Buster.

Update the device tree stuff

On the boot partition change /config.txt to have

dt-overlay=balena-fin

Then copy the balena-fin.dtbo from their repository to /overlays/balena-fin.dtbo and overwrite the one that exists.

Notes

In the BalenaFin flavored Raspbian I noticed that it actually has /overlays/balena-fin-updated.dtbo and dt-overlay=balena-fin-updated in the /config.txt. I did not do this. Perhaps the -updated is because the Original Raspbian Stretch image seems to have shipped with a balena-fin.dtbo because there was already one there!

I did remove my other dt-overlays which activated a RTC and it does seem like this image boots and sets the right clock value. Nice! However it was hanging for 90 seconds on waiting for /dev/serial1 and wlan0 was not to be found once I hit the console.

Get the WiFi to work

Download the deb file from their debian repo

wget https://dl.bintray.com/balenaos/raspbian/pool/main/s/sd8887-mrvl/sd8887-mrvl_0.0.4-1_all.deb

Install needed dependencies

sudo apt-get install dkms bc raspberrypi-kernel-headers

Install proprietary wireless driver

sudo dpkg -i sd8887-mrvl_0.0.4-1_all.deb

…and it will recompile the modules against the wifi. I rebooted for good measure and wlan0 shows up!

Notes

I did not add the repository to sources.list because I know Buster is not officially supported and did not want to deal with that complexity at this time. This device is to be deployed in a remote location with no internet so updates do not need to be automatic or anything like that.

During boot, it does take about 10 more seconds waiting for /dev/serial1 before networking is established. Good enough for now.