summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-kernel
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2022-11-02 21:59:04 -0600
committerMark Hatle <mark.hatle@amd.com>2022-11-10 15:38:42 -0800
commitfb27f36ad989478bde5896b70886dd264975bd21 (patch)
treeb20684f2a72b5c3797503c6f3824ae2cd31d3f55 /meta-xilinx-core/recipes-kernel
parent51a1f04438945355eba58a126725d086b0d4c46a (diff)
downloadmeta-xilinx-fb27f36ad989478bde5896b70886dd264975bd21.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>
Diffstat (limited to 'meta-xilinx-core/recipes-kernel')
-rw-r--r--meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules.bb1
-rw-r--r--meta-xilinx-core/recipes-kernel/linux-xlnx-udev-rules/linux-xlnx-udev-rules/99-mali-device.rules2
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
6SRC_URI = "\ 6SRC_URI = "\
7 file://99-aie-device.rules \ 7 file://99-aie-device.rules \
8 file://99-mali-device.rules \
8" 9"
9 10
10S = "${WORKDIR}" 11S = "${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.
2ACTION=="add", SUBSYSTEM=="misc", KERNEL=="mali", MODE="0660", GROUP="video", TAG+="uaccess"