Open jareddonovan opened 1 month ago
I used the journalctl
command to look at the logs and found the following:
... rc.local[1411]: Traceback (most recent call last):
... rc.local[1411]: File "/boot/arcadeBonnet.py", line 92, in <module>
... rc.local[1411]: gpio.setup(irqPin, gpio.IN, pull_up_down=gpio.PUD_UP)
... rc.local[1411]: RuntimeError: Cannot determine SOC peripheral base address
Line 92, is I believe the second line below from arcadeBonnet.py, which gets installed to /boot
by arcade-bonnet.sh
# Enable pullup and callback on MCP23017 IRQ pin
gpio.setup(irqPin, gpio.IN, pull_up_down=gpio.PUD_UP)
Based on that error, it seems that this might be related to some other issues people have reported for GPIO and the raspberry pi 5:
I will take a look at these and see if I can make any progress on a fix.
I think I have solved the issue by uninstalling the python3-rpi.gpio
and installing python3-rpi-lgpio
in its place, which is supposedly a drop in replacement.
sudo apt autoremove python3-rpi.gpio
sudo apt install python3-rpi-lgpio
I rebooted after this and the buttons and joystick work with an Arcade Bonnet and Raspberry Pi 5.
I'll leave it to the repo maintainer to close the issue in case you want to review and add this fix as a note for readers of the arcade bonnet software installation guide.
Script Command
Operating System
Raspberry Pi OS (64-bit) (debian bookworm) with raspberry pi desktop.
Hardware
Raspberry Pi 5
Behavior
An error occurs when I run the script:
Otherwise, the script appears to exit as expected and copies the configuration files to the right places. However, when I reboot the Pi, and test the arcade buttons they do not work.
Description
The full output contains some additional information which may be useful:
I selected following options when the script first runs:
Otherwise, it is a fresh install of the operating system (from the raspberry PI imager) with no other added libraries or changes.
Other notes:
Additional information
I believe the error arises at line 114. When I comment this line out and run the script, it does not give the error (but obviously still does not work):
I tried several things to fix this. I re-ran the script, rebooted and tested the buttons again after each one, but no luck:
EXTERNALLY-MANAGED
file in/usr/lib/python3.11
python3 -m venv venv
arcade-bonnet.sh
script to usepipx
instead ofpip
to installevdev
andsmbus
libraries.arcade-bonnet.sh
script to useapt install python3-evdev
andapt-install python3-smbus
With all these, the libraries appear to install fine, but the buttons still don't work.