Why drmOpen("nvidia", 0) returns -1 on Jetson nano?

(gdb) p drmOpen(“nvidia-drm”, 0)
$1 = -1
(gdb) p drmOpen(“nvdc-drm”, 0)
$2 = -1
(gdb) p drmOpen(“NVDC-DRM”, 0)
$3 = -1

Is there is any other way to drmOpen on Jetson nano ??

For DRM demonstration, please check this sample:


Jetson Linux API Reference: 08_video_dec_drm (Direct Rendering Manager)

I am trying to setup Yocto for Nvidia Jetson Nano. Our application makes use of DRM module, but I am not able to find drm drivers “/dev/dri/card0” and also drmOpen(“nvidia-drm”, 0) returns -1. How to support/add DRM module in Yocto for Jetson Nano ???

Below are the configurations

=> my_application.bb file:

LDLIBS += “-ldrm_nvdc”

=> local.conf file:

MACHINE ?= “jetson-nano-qspi-sd”
DISTRO ?= “poky”
PACKAGE_CLASSES ?= “package_rpm”
IMAGE_CLASSES += “image_types_tegra”
INHERIT += “rm_work”
IMAGE_FSTYPES = “tegraflash tar”
IMAGE_INSTALL_append = “u-boot u-boot-fw-utils”
#SPL_BINARY = “u-boot-tegra/spl/boot.bin”
EXTRA_IMAGE_FEATURES += " debug-tweaks "
DISTRO_FEATURES_append = “opencv opengl systemd”
VIRTUAL-RUNTIME_init_manager = “systemd”
VIRTUAL-RUNTIME_initscripts = “”
NVIDIA_DEVNET_MIRROR = “file:///home/developer/Vinay/nvidia/sdkm_downloads”

Followed the steps referring to the solution provided in this link

git clone -b zeus git://git.yoctoproject.org/poky poky-nano
git clone -b zeus-l4t-r32.3.1 GitHub - OE4T/meta-tegra: BSP layer for NVIDIA Jetson platforms, based on L4T

There is 3rdparty working on Yocto rootfs:
Yocto Support for NVIDIA Jetson Platforms - Yocto Support for NVIDIA Jetson Platforms - Setting up Yocto - RidgeRun Developer Connection

You may contact them for further help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.