-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
24 lines (19 loc) · 876 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
rpmsgexport
===========
rpmsgexport implements RPMSG_CREATE_EPT_IOCTL for usage in udev rules to
automatically create endpoint devices as remoteproc devices are booted.
An example of udev-rule that automatically exposes the APPS_RIVA_CTRL channel
to user space as the pronto core comes up:
ACTION=="add", SUBSYSTEM=="rpmsg", \
KERNEL=="rpmsg_ctrl[0-9]*", \
ATTRS{rpmsg_name}=="pronto", \
RUN+="rpmsgexport /dev/$name APPS_RIVA_CTRL"
Which together with the following two udev rules creates a nice directory
structure of rpmsg endpoint devices under /dev/rpmsg:
SUBSYSTEM=="rpmsg", KERNEL=="rpmsg_ctrl[0-9]*", \
ATTRS{rpmsg_name}=="?*", \
SYMLINK+="rpmsg/$attr{rpmsg_name}/ctrl"
SUBSYSTEM=="rpmsg", KERNEL=="rpmsg[0-9]*", \
ATTR{name}=="?*", \
ATTRS{rpmsg_name}=="?*", \
SYMLINK+="rpmsg/$attr{rpmsg_name}/$attr{name}"