Activity log for bug #1889926

Date Who What changed Old value New value Message
2020-07-31 18:58:37 Kyle Nitzsche bug added bug
2020-07-31 18:58:37 Kyle Nitzsche attachment added kyle.o https://bugs.launchpad.net/bugs/1889926/+attachment/5397526/+files/kyle.o
2020-07-31 19:01:21 Kyle Nitzsche description On released (and apt updated) 20.04 armhf preinstalled server on Pi3B+, we cannot use pigpio C program to access memory map for gpio. ubuntu@ubuntu:~$ sudo ./pigpio/kyle.o 2020-07-31 18:36:11 initPeripherals: mmap gpio failed (Operation not permitted) Details on code below, but the executable is attached, and the customer says this fairly represents their code usage. ubuntu@ubuntu:~/pigpio$ uname -a Linux ubuntu 5.4.0-1015-raspi #15-Ubuntu SMP Fri Jul 10 05:37:25 UTC 2020 armv7l armv7l armv7l GNU/Linux We thought perhaps these kernel configs were involved: CONFIG_DEVMEM=y CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y CONFIG_STRICT_DEVMEM=y ... and we modified the kernel cmdline with the following, but the result was the same. iomem=relaxed strict-devmem=0 The program is simply this https://github.com/joan2937/pigpio/ with make & make install then this c file: #include <pigpio.h> #include <stdio.h> #include <stdlib.h> int main(void){ gpioInitialise(); } built with gcc -Wall -I/home/ubuntu/pigpio -pthread -o kyle.o kyle.c -lpigpio -lrt On released (and apt updated) 20.04 armhf preinstalled server on Pi3B+, we cannot use pigpio C program to access memory map for gpio. Customer says the same code works fine on 18.04. ubuntu@ubuntu:~$ sudo ./pigpio/kyle.o 2020-07-31 18:36:11 initPeripherals: mmap gpio failed (Operation not permitted) Details on code below, but the executable is attached, and the customer says this fairly represents their code usage. ubuntu@ubuntu:~/pigpio$ uname -a Linux ubuntu 5.4.0-1015-raspi #15-Ubuntu SMP Fri Jul 10 05:37:25 UTC 2020 armv7l armv7l armv7l GNU/Linux We thought perhaps these kernel configs were involved: CONFIG_DEVMEM=y CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y CONFIG_STRICT_DEVMEM=y ... and we modified the kernel cmdline with the following, but the result was the same. iomem=relaxed strict-devmem=0 The program is simply this https://github.com/joan2937/pigpio/ with make & make install then this c file: #include <pigpio.h> #include <stdio.h> #include <stdlib.h> int main(void){ gpioInitialise(); } built with gcc -Wall -I/home/ubuntu/pigpio -pthread -o kyle.o kyle.c -lpigpio -lrt
2020-07-31 19:05:27 Jon Watson bug added subscriber Jon Watson
2020-07-31 19:05:53 Terry Rudd bug added subscriber Terry Rudd
2020-08-03 05:41:20 Juerg Haefliger nominated for series Ubuntu Focal
2020-08-03 05:41:20 Juerg Haefliger bug task added linux-raspi (Ubuntu Focal)
2020-08-03 05:41:27 Juerg Haefliger linux-raspi (Ubuntu): status New Invalid
2020-08-03 05:41:46 Juerg Haefliger linux-raspi (Ubuntu Focal): status New Triaged
2020-08-03 13:45:48 Juerg Haefliger linux-raspi (Ubuntu Focal): status Triaged Confirmed
2020-08-05 08:29:02 Juerg Haefliger linux-raspi (Ubuntu Focal): status Confirmed Invalid
2020-08-05 14:41:07 Jon Watson bug watch added https://github.com/joan2937/pigpio/issues/375