I have put the newest version of balena (balenaOS 2.39.0+rev1) on the up squared and I can now control the GPIO pins. So that is one step forward!
However I am now trying to get the i2c working. I can see the device when I run
i2cdetect -r -y 1. However when running the code two errors (repeatedly) pop up (in dmesg):
[ 122.612212] broxton-pinctrl INT3452:03: failed to find community for pin 405
[ 123.634857] i2c_designware i2c_designware.1: i2c_dw_handle_tx_abort: lost arbitration
I don’t seem to be able to communicate with the device properly. An important thing to mention is that we also control the device using the pin number 18 (Linux gpio pin 405). This is used to turn the device on and off.
Curiously enough (and I don’t know if this is related) when I check for the devices as follows:
ls /sys/bus/pci/devices/*/i2c_designware.0/ | grep i2c
The command returns
i2c-1 instead of
i2c-6 as is mentioned in the documentation here: https://wiki.up-community.org/Pinout_UP2#I2C_ports