OSPi with new kernel

For a few days now there have been increasing requests that the OSPi would no longer switch the outputs. The reason for this is the changes in the Linux kernel, which simply removed support for the Raspi-GPIO module. And that's exactly what OpenSprinkler-OSPi needs in order to be able to switch the GPIOs.

06/14/2024 ATTENTION: The original firmware has already been adapted! Simply update the software with sudo ./updater.sh

All Raspberry PI systems that run with kernel 6.3 / 6.4 / 6.5 / 6.6 are affected.

The background is described here (English): https://github.com/OpenSprinkler/OpenSprinkler-Firmware/issues/250

However, the solution is quite simple: copy from here https://github.com/jbalonso/OpenSprinkler-firmware the files gpio.h and gpio.cpp into your OpenSprinkler firmware directory and recompile the version, e.g. by simply calling the update script. Alternatively, you can also use the OpenSprinklerShop firmware, which has already updated the files.

First activate via

sudo raspi-config

the I2C bus (3 Interface Options – I4 I2C). Then from the command line:

sudo apt-get install -y libi2c-dev
sudo apt-get install -y libgpiod-dev
cd OpenSprinkler-Firmware
wget https://github.com/jbalonso/opensprinkler-firmware/raw/main/gpio.h
wget https://github.com/jbalonso/opensprinkler-firmware/raw/main/gpio.cpp
sudo ./updater.sh

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.