Commit e440651e authored by Ran Wang's avatar Ran Wang

Added udev rules for tegra234 nvenc/nvdec

parent ed21d7af
...@@ -58,5 +58,14 @@ rtl8168h: ...@@ -58,5 +58,14 @@ rtl8168h:
ga10b: ga10b:
tar xf ga10b.tar.xz -C /lib/firmware tar xf ga10b.tar.xz -C /lib/firmware
tegra234: tegra234: nvenc-udev-config
tar xf tegra234.tar.xz -C /lib/firmware tar xf tegra234.tar.xz -C /lib/firmware
@echo "$$NVENC_UDEV_CONFIG" > /etc/udev/rules.d/90-nvenc.rules
nvenc-udev-config:
define NVENC_UDEV_CONFIG
# Populate v4l2 decoder/encoder device node for upstream linux on Tegra platforms
KERNEL=="15480000.nvdec", DRIVER=="tegra-nvdec", ACTION=="bind", RUN+="/bin/mknod -m 666 /dev/v4l2-nvdec c 1 3"
KERNEL=="154c0000.nvenc", DRIVER=="tegra-nvenc", ACTION=="bind", RUN+="/bin/mknod -m 666 /dev/v4l2-nvenc c 1 3"
endef
export NVENC_UDEV_CONFIG
Markdown is supported
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