Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7335dd87 authored by Robert Nelson's avatar Robert Nelson
Browse files

bb-customizations (1.20220706.0)


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 7be10aec
No related merge requests found
# /etc/udev/rules.d/83-counter-noroot.rules
#
# Based off of Matthijs van Duin 81-pwm-noroot.rules
#
SUBSYSTEM=="counter", ACTION=="add|change", \
RUN+="/bin/chgrp -R gpio '/sys%p'", \
RUN+="/bin/chmod -R g=u '/sys%p'"
# identify counter peripherals on am335x
SUBSYSTEM=="counter", KERNELS=="48300180.*", ENV{CHIP_NAME}="counter0"
SUBSYSTEM=="counter", KERNELS=="48302180.*", ENV{CHIP_NAME}="counter1"
SUBSYSTEM=="counter", KERNELS=="48304180.*", ENV{CHIP_NAME}="counter2"
# create symlinks in /dev/bone/counter
SUBSYSTEM=="counter", ENV{DEVTYPE}=="counter_device", ACTION=="add", ENV{CHIP_NAME}!="", \
RUN+="/bin/mkdir -p /dev/bone/counter", \
RUN+="/bin/ln -sT '/sys/bus/counter/devices/%k' /dev/bone/counter/%E{CHIP_NAME}"
# /etc/udev/rules.d/85-gpio-noroot.rules
#
# Corrects sys GPIO permissions on the BB so non-root users in the gpio group can manipulate bits
#
###needed for gpioinfo and friends...
###Before
###debian@bbb-pwr01-ser09:~$ ls -lha /dev/gpiochip*
###crw-rw---- 1 root root 254, 0 Jul 9 00:01 /dev/gpiochip0
###crw-rw---- 1 root root 254, 1 Jul 9 00:01 /dev/gpiochip1
###crw-rw---- 1 root root 254, 2 Jul 9 00:01 /dev/gpiochip2
###crw-rw---- 1 root root 254, 3 Jul 9 00:01 /dev/gpiochip3
###After
###debian@bbb-pwr01-ser09:~$ ls -lha /dev/gpiochip*
###crw-rw---- 1 root gpio 254, 0 Jul 9 00:01 /dev/gpiochip0
###crw-rw---- 1 root gpio 254, 1 Jul 9 00:01 /dev/gpiochip1
###crw-rw---- 1 root gpio 254, 2 Jul 9 00:01 /dev/gpiochip2
###crw-rw---- 1 root gpio 254, 3 Jul 9 00:01 /dev/gpiochip3
KERNEL=="gpiochip*", SUBSYSTEM=="gpio", MODE="0660", GROUP="gpio"
# /etc/udev/rules.d/88-leds-noroot.rules
#
# ReWritten by: Matthijs van Duin
# Corrects sys GPIO permissions on the BB so non-root users in the gpio group can manipulate bits
#
SUBSYSTEM=="leds", ACTION=="add|change", \
RUN+="/bin/chgrp -R gpio '/sys%p'", \
RUN+="/bin/chmod -R g=u '/sys%p'"
bb-customizations (1.20220119.0-0~bullseye+20220119) bullseye; urgency=low bb-customizations (1.20220706.0-0~bullseye+20220706) bullseye; urgency=low
* Rebuild for repos.rcn-ee.com * Rebuild for repos.rcn-ee.com
-- Robert Nelson <robertcnelson@gmail.com> Wed, 19 Jan 2022 09:26:03 -0600 -- Robert Nelson <robertcnelson@gmail.com> Wed, 06 Jul 2022 14:22:04 -0500
debian/10-of-symlink.rules /etc/udev/rules.d/ debian/10-of-symlink.rules /etc/udev/rules.d/
debian/80-i2c-noroot.rules /etc/udev/rules.d/ debian/80-i2c-noroot.rules /etc/udev/rules.d/
debian/83-counter-noroot.rules /etc/udev/rules.d/
debian/85-gpio-noroot.rules /etc/udev/rules.d/
debian/86-remoteproc-noroot.rules /etc/udev/rules.d/ debian/86-remoteproc-noroot.rules /etc/udev/rules.d/
debian/87-iio-noroot.rules /etc/udev/rules.d/ debian/87-iio-noroot.rules /etc/udev/rules.d/
debian/88-leds-noroot.rules /etc/udev/rules.d/
debian/uio-pruss.rules /etc/udev/rules.d/
debian/uio.rules /etc/udev/rules.d/
debian/beaglebg.jpg /usr/share/backgrounds/bbb.io/ debian/beaglebg.jpg /usr/share/backgrounds/bbb.io/
debian/beagleboard-logo.svg /usr/share/backgrounds/bbb.io/ debian/beagleboard-logo.svg /usr/share/backgrounds/bbb.io/
debian/xfce4-desktop.xml /etc/bbb.io/templates/xfce4/ debian/xfce4-desktop.xml /etc/bbb.io/templates/xfce4/
......
# vim: ft=udevrules
# apply this file only to pruss_uio devices and their children
# (unfortunately DRIVERS!="pruss_uio" doesn't work, hence this workaround)
DRIVERS=="pruss_uio", GOTO="PRUSS"
GOTO="END"
LABEL="PRUSS"
# obtain pruss instance name:
# 1. check for device tree property
# 2. try to inherit from parent
# 3. default to "pruss"
ENV{PRUSS_INSTANCE}=="", ENV{PRUSS_INSTANCE}="$attr{of_node/pruss-instance}"
ENV{PRUSS_INSTANCE}=="", IMPORT{parent}="PRUSS_INSTANCE"
ENV{PRUSS_INSTANCE}=="", ENV{PRUSS_INSTANCE}="pruss"
# create symlinks for the uio devices:
# one for the memory/register spaces (any of the modules work for that)
# one per irq that can be received by linux
SUBSYSTEM!="uio", GOTO="END"
ATTR{name}=="pruss_evt0", SYMLINK+="uio/$env{PRUSS_INSTANCE}/module"
ATTR{name}=="pruss_evt0", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq2"
ATTR{name}=="pruss_evt1", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq3"
ATTR{name}=="pruss_evt2", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq4"
ATTR{name}=="pruss_evt3", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq5"
ATTR{name}=="pruss_evt4", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq6"
ATTR{name}=="pruss_evt5", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq7"
ATTR{name}=="pruss_evt6", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq8"
ATTR{name}=="pruss_evt7", SYMLINK+="uio/$env{PRUSS_INSTANCE}/irq9"
LABEL="END"
# vim: ft=udevrules
# give some group access rights (adjust as needed)
SUBSYSTEM=="uio", GROUP="users", MODE="0660"
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package_name="bb-customizations" package_name="bb-customizations"
debian_pkg_name="${package_name}" debian_pkg_name="${package_name}"
package_version="1.20220119.0" package_version="1.20220706.0"
package_source="" package_source=""
src_dir="" src_dir=""
...@@ -19,4 +19,4 @@ debian_patch="" ...@@ -19,4 +19,4 @@ debian_patch=""
clear_changelog="enable" clear_changelog="enable"
bullseye_version="~bullseye+20220119" bullseye_version="~bullseye+20220706"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment