Hello! I am using WiringPi on a Pi 5 2GB running 64-bit Raspbian. PWM commands fail with the error:
wiringPi: no access to /sys/bus/pci/devices/0000:01:00.0/resource1 try /dev/gpiomem0.
That file does not exist at that path. I see resource and resource0 at /sys/bus/pci/devices/0000:01:00.0/ but no resource1.
Looking at the source code, my dmesg gives a different result than the one in the comment:
[ 0.664887] rp1 0001:01:00.0: bar1 len 0x400000, start 0x1f00000000, end 0x1f003fffff, flags, 0x40200
instead, and /sys/bus/pci/devices/0001:01:00.0/resource1 does exist on my system. I can't symlink to it without recompiling the kernel, and I haven't quite figured out how to compile from source to a 32-bit binary (which I need for unrelated reasons).
Any fixes or workarounds would be greatly appreciated!