I am building a Raspberry Pi-based project and want desperately to use
true Debian, not Raspberry Pi OS, but I've run into the following issue
with my Python script that works fine on RPi OS.
######################################################################
<snip>
GPIO.setup(pump_monitor_pin, GPIO.IN,pull_up_down=GPIO.PUD_UP) #
Set pin as input for reading
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Mmap of GPIO registers failed
</snip>
#####################################################################
I am running a fully up to date Debian bookworm/12 arm64 image on a
Raspberry Pi 4B (either a 1GB or 4GB version). After much searching I
found a solution that let's the script work ("iomem=relaxed" in
/boot/firmware/cmdline.txt), but I'm not sure it is the right/best thing
to do.
Any recommendations on an alternative method that doesn't expose the
kernel to memory corruption?
--
Regards,
John Boxall