Closed zackyancey closed 2 years ago
The rpi.gpio package seems to come from Debian now, so it's not in our repo.
The issue should be reported over at https://www.debian.org/Bugs/Reporting
If it gets fixed there, but doesn't make it to Bullseye, I could pull the updated package into our repo.
Thanks for pointing me in the right direction. Debian bug 1009654 for anyone interested.
Copy-paste of a post in the Raspberry Pi OS forum, I was pointed here as a potentially better place to report the bug.
There's an issue with a udev rule messing up some device permissions: when I plug a device in through a usb hub, the entire PCI bus gets its permissions changed and can't be read anymore.
The problem is in
/usr/lib/udev/rules.d/60-rpi.gpio-common.rules
, line 3:enabling debug logging for udev, I see this when the device gets plugged in:
The command that's executed doesn't match the command that's in the rules file--it gets truncated at 1023 characters. In this case, that happens to be right on a directory name, so the
chmod 660
gets applied to/sys/devices/platform/scb/fd500000.pcie
instead of a specific gpio file.I was able to work around the bug by splitting up that last line:
That lets
%p
get a lot larger before we start running into the apparent 1023-character limit forPROGRAM=
values.