Activity for Lucas Nussbaum

  • Lucas Nussbaum Lucas Nussbaum posted a comment on ticket #191

    Hi, I can confirm this problem on Debian. On the vanilla linux kernel (not the rpi one), there is no /dev/gpiomem. So this library tries to detect PERI_BASE using various heuristics. I tried forcing the value with this patch, which works fine: --- rpi.gpio-0.7.0.orig/source/c_gpio.c +++ rpi.gpio-0.7.0/source/c_gpio.c @@ -30,6 +30,7 @@ SOFTWARE. #define BCM2708_PERI_BASE_DEFAULT 0x20000000 #define BCM2709_PERI_BASE_DEFAULT 0x3f000000 +#define BCM2711_PERI_BASE_DEFAULT 0xFE000000 #define GPIO_BASE_OFFSET...

  • Lucas Nussbaum Lucas Nussbaum posted a comment on ticket #166

    Hi, I confirm that the fix works. Thanks! Yes, it still needs iomem=relaxed. Without it, it fails with: Traceback (most recent call last): File "t3.py", line 5, in <module> gpio.setup(18, gpio.OUT) RuntimeError: Mmap of GPIO registers failed But that's expected: the Debian image doesn't have /dev/gpiomem, so the restrictions set by CONFIG_DEVMEM_STRICT=y apply. Maybe a note about that should be added to the README.

  • Lucas Nussbaum Lucas Nussbaum created ticket #166

    failing to mmap() causes segfault due to wrong cast

1
MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →