meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:udev [2023/12/13 16:20] niziak |
linux:udev [2023/12/13 16:31] (current) niziak |
||
---|---|---|---|
Line 6: | Line 6: | ||
=== Testing rules === | === Testing rules === | ||
<code bash>udevadm test /sys/class/tty/ttyACM0</code> | <code bash>udevadm test /sys/class/tty/ttyACM0</code> | ||
+ | |||
+ | NOTE: This program is for debugging only, it does not run any program specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run. | ||
==== Getting info ==== | ==== Getting info ==== | ||
Line 24: | Line 26: | ||
</file> | </file> | ||
+ | <code bash> | ||
+ | udevadm control --log-priority=debug | ||
+ | |||
+ | </code> | ||
==== Rules ==== | ==== Rules ==== | ||
Line 108: | Line 114: | ||
ATTR{device/of_node/symlink}!="", ENV{DEVNAME}!="", SYMLINK+="%s{device/of_node/symlink}" | ATTR{device/of_node/symlink}!="", ENV{DEVNAME}!="", SYMLINK+="%s{device/of_node/symlink}" | ||
</code> | </code> | ||
+ | |||
+ | See: | ||
+ | - [[https://github.com/mvduin/py-uio/blob/master/dts/pwmss2.dtsi#L122|pwmss2.dtsi]] | ||
+ | - [[https://github.com/mvduin/py-uio/blob/master/etc/udev/rules.d/10-of-symlink.rules|10-of-symlink.rules]] | ||
+ | - [[https://github.com/mvduin/py-uio/blob/master/dts/pwmss2.dtsi|pwmss2.dtsi]] | ||
=== Triggering systemd === | === Triggering systemd === |