The following steps worked for me, but consider them untested. Use at your own risk!
That being said, the process should be fairly quick, as long as you use the custom image provided in this thread. Otherwise, the Pi02 won't even boot.
- Download the image from the linked thread, and write it to your SD card
- Create a directory in your SD card named,
firmware/brcm
- This is where you'll put the relevant files for the script
- The name is arbitrary, so you can change it. Just make sure to update
SRC_DIR
, in the script
- Download
BCM43430B0.hcd
, from this repo, and move it to your SD card'sfirmware
dir- Here's a quick link to the raw file
- From this other repo, download all files matching,
brcmfmac43436-sdio.*
(should be three), and move them to the SD card'sfirmware/
- Copy the patch script to your SD card, so that we can access it when the system boots (it doesn't need to go in
firmware/
) EditThis is now handled by the newer images/u-boot/config.txt
by adding,krnbt=on
to theminiuart-bt
overlay. You only need to do this for[pi02]
; it should look like the following
- Boot the device with your SD card
- Run the resize script, which also makes the rootfs writable:
/opt/victronenergy/swupdate-scripts/resize2fs.sh
- Set the datetime on the machine to the current UTC time using the following pattern,
YYYY-MM-DD HH:MM:SS
. Why? My instances were stuck at the time of epoch, and my bluetooth didn't work properly until I did this. Maybe others don't have this issue? Use the following command to set the datetime:
busybox date set YYYY-MM-DD HH:MM:SS
- Run the patch script added from the Install step:
. /u-boot/venus-os-pi02-patch.sh
- Run
dmesg | grep brcm
to see if the patch was applied properly. If no errors, reboot your device
After reboot, WiFi and bluetooth should be working (maybe even before). Run hciconfig -a
, to confirm hci0
is "UP" and running.
- Once BT is setup, you should be able to find the Pi02 in the Victron Connect app, and a lot of the setup will be just like any other Raspberry Pi
- Connect and Pair with your device, and setup the WiFi connection, from the app
- Or, you can setup WiFi from the CLI using
connmanctl
More details can be found here:
Continue to setup your user:
i burned a new image,
venus-image-large-raspberrypi2-20230529211714-v3.00.rootfs.wic.gz
, to an sdcard for a new install using a pi02w. out of the box, both BT and WiFi did not work. i've made small updates to the patch script, so that it could resolve my issues w/ the newer images/builds