User Activity

  • Posted a comment on ticket #191 on raspberry-gpio-python

    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...

  • Posted a comment on ticket #166 on raspberry-gpio-python

    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.

  • Created ticket #166 on raspberry-gpio-python

    failing to mmap() causes segfault due to wrong cast

View All

Personal Data

Username:
lnu
Joined:
2002-04-26 11:58:44

Projects

This is a list of open source software projects that Lucas Nussbaum is associated with:

Personal Tools