Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Created December 1, 2021 18:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save RobertCNelson/2ae048408613916b36840a24bec38dfa to your computer and use it in GitHub Desktop.
udev cleanups
debian@BeagleBone:~$ cat /etc/udev/rules.d/87-iio-noroot.rules
# /etc/udev/rules.d/87-iio-noroot.rules
#
KERNEL=="iio:device[0-9]*", SUBSYSTEM=="iio", GROUP="gpio"
#5.15.4-bone10
#Startup finished in 10.453s (kernel) + 1min 32.782s (userspace) = 1min 43.236s
#graphical.target reached after 1min 32.174s in userspace
#DRIVER=="*", ACTION=="add", \
# RUN+="/bin/chgrp -R gpio '/sys%p'", \
# RUN+="/bin/chmod -R g=u '/sys%p'"
#5.15.4-bone10
#Startup finished in 10.462s (kernel) + 38.112s (userspace) = 48.574s
#graphical.target reached after 35.484s in userspace
DRIVER=="TI-am335x-adc", ACTION=="add", \
RUN+="/bin/chgrp -R gpio '/sys%p'", \
RUN+="/bin/chmod -R g=u '/sys%p'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment