Skip to content

Commit 692b10a

Browse files
committed
nvidia: Fix script and udev for Jetpack 5
The second framebuffer device (/dev/fb1) and the /dev/tegra_dc_1 are not initialized by default on the Siemens IPC520A device, so let's add some rules to enforce the creation of these files on Jetpack 5.x. Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
1 parent 80a6f3b commit 692b10a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pkg/nvidia/scripts/jp5/nv-init.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (c) 2024 Zededa, Inc.
3+
# Copyright (c) 2024-2025 Zededa, Inc.
44
# SPDX-License-Identifier: Apache-2.0
55

66
VENDOR="/opt/vendor/nvidia"
@@ -22,11 +22,13 @@ udevadm info -a -p /devices/gpu.0
2222
modprobe nvidia
2323
modprobe nvidia_modeset
2424

25-
# Enforces add for framebuffer and nvidia modules, so we have /dev/fb0 and
26-
# /dev/nvidiactrl even when there is no monitor connected to the display
27-
# port. These devices must be present because they are on the CDI spec.
25+
# Enforces add for framebuffer and nvidia modules, so we have /dev/fb0,
26+
# /dev/nvidiactrl and /dev/tegra_dc_1 even when there is no monitor connected
27+
# to the display port. These devices must be present because they are on the
28+
# CDI spec.
2829
echo "add" > /sys/module/fb/uevent 2> /dev/null
2930
echo "add" > /sys/module/nvidia/uevent 2> /dev/null
31+
echo "add" > /sys/devices/platform/host1x/uevent 2> /dev/null
3032

3133
# Start FAN controller detached from terminal
3234
if [ -f "$FANCTRL" ]; then
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# EVE-OS udev rules for NVIDIA Jetson Xavier and Orin platforms
22

3-
# Ensure fb0 file device to be present in the system (otherwise OCI spec will fail)
3+
# Ensure fb0 and fb1 file devices to be present in the system (otherwise OCI spec will fail)
44
KERNEL=="fb", RUN+="/bin/mknod -m 660 /dev/fb0 c %M 0"
5+
KERNEL=="fb", RUN+="/bin/mknod -m 660 /dev/fb1 c %M 1"
56

67
# NVIDIA modules
78
KERNEL=="nvidia", RUN+="/bin/mknod -m 660 /dev/nvidiactl c 195 255"
89
KERNEL=="nvidia", RUN+="/bin/mknod -m 660 /dev/nvidia0 c 195 0"
910
KERNEL=="nvidia_modeset", RUN+="/bin/mknod -m 660 /dev/nvidia-modeset c %M %m"
11+
DRIVER=="host1x", RUN+="/bin/mknod -m 660 /dev/tegra_dc_1 c %M 1"
1012

1113
# Set SD card read_ahead_kb to 2048 (taken from Jetpack)
1214
KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ACTION=="add|change", ATTR{bdi/read_ahead_kb}="2048"

0 commit comments

Comments
 (0)