joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.43k stars 403 forks source link

Failed on Rpi2 and AlpineLinux #590

Closed blahlt closed 6 months ago

blahlt commented 7 months ago

Failed to run on Raspberry Pi 2 Model B V1.1 (OS: Alpine Linux (alpine-rpi-3.18.4-armv7))

I always get an error message: initPeripherals: mmap gpio failed (Invalid argument) Can't initialise pigpio library

Are there any solutions?

guymcswain commented 7 months ago

I think the memory mapping requires assistance from the VPU firmware (mailbox registers). I’m not aware of how to enable non RasperryPi OS to do this.

blahlt commented 7 months ago

Yeah, it works on Raspberry Pi OS, but not on Alpine Linux :(