batocera-linux/batocera.linux

GPIO support broken for RPi3

Closed this issue · 1 comments

Batocera build version

40 2024/08/03 05:52

Your architecture

Raspberry_Pi_3_Model_B_Rev_1_2

Your Graphic Processor Unit(s) (GPU)

Integrated

Issue description

manually start of several gpio-based switches with rpi_gpioswitch

Here with a simple python-script

[root@BATOCERA /userdata/system/logs]# rpi_gpioswitch start PIN56ONOFF
Traceback (most recent call last):
  File "/usr/bin/rpi-pin56-power", line 21, in <module>
    GPIO.add_event_detect(3, GPIO.FALLING, callback=shutdownBatocera,
RuntimeError: Failed to add edge detection

Same with simple-bash scripts and export to /sys/class/gpio

[root@BATOCERA /userdata/system/logs]# rpi_gpioswitch start MAUSBERRY
/usr/bin/rpi_gpioswitch: line 144: echo: write error: Invalid argument
/usr/bin/rpi_gpioswitch: line 145: /sys/class/gpio/gpio23/direction: No such file or directory
/usr/bin/rpi_gpioswitch: line 147: echo: write error: Invalid argument
/usr/bin/rpi_gpioswitch: line 148: /sys/class/gpio/gpio24/direction: No such file or directory
/usr/bin/rpi_gpioswitch: line 149: /sys/class/gpio/gpio24/value: No such file or directory
cat: /sys/class/gpio/gpio23/value: No such file or directory
[root@BATOCERA /userdata/system/logs]#

Detailed reproduction steps

I installed Batocera without using EDGER

Details of any attempts to fix this yourself

I did not spoke to someone on discord

Details of any modifications you have made to Batocera.

No changes made

Logs and data

"Log" is in issue-description

Fixed in v41 please close