diff options
| author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2022-11-02 21:59:04 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-11-03 11:24:22 -0500 |
| commit | 63feb3f5046d3c9fe0755de591ea771bf09ede74 (patch) | |
| tree | 695cf150b413a5ac1e13043e6f267ac0f52e378d | |
| parent | fd3b24af4b5f6e78b917752557daa09c4f9a054c (diff) | |
| download | meta-xilinx-63feb3f5046d3c9fe0755de591ea771bf09ede74.tar.gz | |
linux-xlnx-udev-rules: Add udev rules for mali device
Add udev rules for mali device and change permissions of device node
from 0600 to 0660 so that users can access mali device(/dev/mali)
without using sudo from linux userspace.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules.bb | 1 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules/99-mali-device.rules | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules.bb b/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules.bb index 7ff3ef79..611e2e91 100644 --- a/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules.bb +++ b/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules.bb | |||
| @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
| 5 | 5 | ||
| 6 | SRC_URI = "\ | 6 | SRC_URI = "\ |
| 7 | file://99-aie-device.rules \ | 7 | file://99-aie-device.rules \ |
| 8 | file://99-mali-device.rules \ | ||
| 8 | " | 9 | " |
| 9 | 10 | ||
| 10 | S = "${WORKDIR}" | 11 | S = "${WORKDIR}" |
diff --git a/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules/99-mali-device.rules b/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules/99-mali-device.rules new file mode 100644 index 00000000..89ec5f78 --- /dev/null +++ b/meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules/99-mali-device.rules | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # Device rules for GPU MALI-400 drivers. | ||
| 2 | ACTION=="add", SUBSYSTEM=="misc", KERNEL=="mali", MODE="0660", GROUP="video", TAG+="uaccess" | ||
