OpenGL issue after install nvidia-jetpack via apt-get

Hi
We need to install JetPack components to use. According the JetPack installation guide, it can be installed via below two ways:

  1. sdkmanager
  2. apt-get install nvidia-jetpack

But we found that the phenomenon after installation is different with the above two installation methods on AGX Xavier Developer Kit.

  1. After install the JetPack with apt-get, glmark2 command cause issue, it shows OpenGL Information as below:
GL_VENDER: VMware
GL_RENDERER: llvmpipe (LLVM 10.0.0, 128bits)
GL_VERSION: 3.1 Mesa 20.0.8
...
...
...
glmark2 Score: 35

The final gpu performance score which glmark2 returned it tool poor, only 25.
glmark2 first time run error after apt installed:
glmark2_error_after_apt-install_jetpack.log (320 Bytes)

Full log of glmark2 after reboot:
glmark2-34_apt-install_jetpack.log (7.8 KB)

My installation jetpack command is:

sudo apt update
sudo apt install nvidia-jetpack
  1. After install the JetPack with sdkmanager , the glmark2 works fine, it shows OpenGL information as below:
GL_VENDER: NVIDIA Corportation
GL_RENDERER: NVIDIA Tegra Xavier (nvgpu)/integrated
GL_VERSION: 4.6.0 NVIDIA 32.7.1
...
...
...
glmark2 Score:  3987

The final gpu performance score which glmark2 returned it pretty good: 3987.
Here is the full log of glmark2:
glmark2-3987_sdkmanager_jetpack.log (2.9 KB)

We can see that the gpu performance is too far away between these two installation ways.
Seems glmark2 will using the VMware GPU after install nvidia-jetpack with apt.
Can you give some advice?
Does the apt-get install nvidia jetpack installation method still be used?

Many Thanks~

Hi,
Please check if we understand the issue correctly. If you install SDK Components through the command:

sudo apt update
sudo apt install nvidia-jetpack

And then install/run glmark2. The score is low. Are above steps correct?

Please share commands for running glmark2. We may miss something and hits the error:

nvidia@tegra-ubuntu:~$ glmark2
Error: main: Could not initialize canvas

Hi DaneLLL,
Thanks for your reply.
Yes, all your commands are right.

I don’t know why there is an error on your side.
In my side, there is no error like you. And this problem will appear every time. My operation process is as follows:

  1. Flash the Xavier Dev Kit with flash.sh on Host.
sudo ./flash.sh jetson-agx-xavier-devkit mmcblk0p1
  1. After setting oem-config on Xavier, and install the jetpack with apt
sudo apt update
sudo apt install nvidia-jetpack
  1. Install the glmark2 on Xavier, and run it
sudo apt install glmark2
glmark2

Hi,
We don’t observe the issue by flashing system image thorugh SDKManager and execute the commands:

$ sudo apt update
$ sudo apt install nvidia-jetpack
$ sudo apt install glmark2

Not sure but probably nvidia-l4t-apt-source.list is not correct in the error condition. Please check if yours is like this:

nvidia@nvidia-desktop:~$ cat /etc/apt/sources.list.d/nvidia-l4t-apt-source.list
# SPDX-FileCopyrightText: Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.

deb https://repo.download.nvidia.com/jetson/common r32.7 main
deb https://repo.download.nvidia.com/jetson/t194 r32.7 main

Hi DaneLLL,

In my side, the issue is same if only flash the Jetson OS through SDKManager.
If you flash system image through SDKManager, please remember do not select the “Jetson SDK Components” checkbox as below image, to install it through apt-get.

And my nvidia-l4t-apt-source.list is same as yours:

rk@ubuntu:~$ cat /etc/apt/sources.list.d/nvidia-l4t-apt-source.list 
# SPDX-FileCopyrightText: Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.

deb https://repo.download.nvidia.com/jetson/common r32.7 main
deb https://repo.download.nvidia.com/jetson/t194 r32.7 main

Thanks~

Hi,
We do the same steps but don’t hit the issue. Do you use Xavier 16GB or 32GB? Or 64GB?

Hi
My Xavier is 32GB, and JetPack version is JetPack4.6.1.
I just tested with JetPack 4.6.1 and JetPack 5.0.2, and found that this problem is only appeared on JetPack4.6.1.

Many of our products worked on JetPack4.6.1.
Can you help to find the cause of the problem, and try to slove or avoid it?

Many Thanks~

Hi,
We have not found a way to reproduce the issue. Will try and update.

And please compare $ sudo ldconfig -v in the two cases. See if there is any clue.

Hi

Here are the sudo ldconfig -v command output in the two cases .
JetPack4.6.1, Cases with problem
jetpack4.6.1_glvender-vmware_ldconfig_v.log (56.0 KB)

JetPack5.0.2,Cases without problem
jetpack5.0.2_glvender-nvidia_ldconfig_v.log (62.2 KB)

Hi,
We try with Xavier 32GB and don’t hit the issue. We run flash command:

nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier mmcblk0p1

And run the commands after booting to Ubunut desktop:

$ sudo apt update
$ sudo apt install nvidia-jetpack
$ sudo apt install glmark2

Not sure if it helps but please try to remove the whole folder:

$ sudo rm -fr nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_AGX_XAVIER_TARGETS

And re-download it through SDKManager. To get a clean package and try again.

Hi DaneLLL,
Sorry for late reply.

I move to a new blank host, and just tested JetPack 4.6.1 and JetPack 4.6.2 on Xavier 32GB.
I found that this problem is only appeared on JetPack4.6.1, the JetPack 4.6.2 is OK.

Can you try to test JetPack 4.6.1?

Hi,
If latest Jetpack 4.6.2 works fine, could you upgrade to the version?

Hi DaneLLL

So do you reproduce this issue with JetPack4.6.1 ?

Hi,

No, we don’t arrange resource to do it since the latest release works well.

Not sure if it helps but please specify the version for a try:

// list all versions
$ sudo apt list -a nvidia-jetpack
// specify the version
$ sudo apt install nvidia-jetpack=__DESIRED_VERSION__

Hi DaneLLL,

The second command returns error.

sudo apt install nvidia-jetpack=__DESIRED_VERSION__

Is there any mistake in this command?

I just try to install two versions of nvidia-jetpack: 4.6.2-b54.6.1-b110.

sudo apt install nvidia-jetpack=4.6.2-b5
sudo apt install nvidia-jetpack=4.6.1-b110

In 4.6.2-b5,the issue still exists.
In 4.6.1-b110, the install command cannot perform.

rk@Xavier:~$ sudo apt install nvidia-jetpack=4.6.1-b110
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-jetpack : Depends: nvidia-cuda (= 4.6.1-b110) but 4.6.2-b5 is to be installed
                  Depends: nvidia-opencv (= 4.6.1-b110) but 4.6.2-b5 is to be installed
                  Depends: nvidia-cudnn8 (= 4.6.1-b110) but 4.6.2-b5 is to be installed
                  Depends: nvidia-tensorrt (= 4.6.1-b110) but 4.6.2-b5 is to be installed
                  Depends: nvidia-visionworks (= 4.6.1-b110) but 4.6.2-b5 is to be installed
                  Depends: nvidia-container (= 4.6.1-b110) but 4.6.2-b5 is to be installed
                  Depends: nvidia-vpi (= 4.6.1-b110) but 4.6.2-b5 is to be installed
E: Unable to correct problems, you have held broken packages.

Hi,
Please not execute sudo apt install nvidia-jetpack but use the script:

#!/bin/bash

sudo apt install nvidia-cuda=4.6.1-b110
sudo apt install nvidia-cudnn8=4.6.1-b110
sudo apt install nvidia-tensorrt=4.6.1-b110
sudo apt install nvidia-container=4.6.1-b110
sudo apt install nvidia-opencv=4.6.1-b110
sudo apt install nvidia-visionworks=4.6.1-b110
sudo apt install nvidia-vpi=4.6.1-b110
sudo apt install nvidia-l4t-libvulkan=32.7.1-20220219090344
sudo apt install nvidia-l4t-multimedia-utils=32.7.1-20220219090344
sudo apt install nvidia-l4t-firmware=32.7.1-20220219090344
sudo apt install nvidia-l4t-init=32.7.1-20220219090344
sudo apt install nvidia-l4t-wayland=32.7.1-20220219090344
sudo apt install nvidia-l4t-x11=32.7.1-20220219090344
sudo apt install nvidia-l4t-weston=32.7.1-20220219090344
sudo apt install nvidia-l4t-3d-core=32.7.1-20220219090344
sudo apt install nvidia-l4t-cuda=32.7.1-20220219090344
sudo apt install nvidia-l4t-multimedia=32.7.1-20220219090344
sudo apt install nvidia-l4t-camera=32.7.1-20220219090344
sudo apt install nvidia-l4t-graphics-demos=32.7.1-20220219090344
sudo apt install nvidia-l4t-gstreamer=32.7.1-20220219090344
sudo apt install nvidia-l4t-jetson-multimedia-api=32.7.1-20220219090344
1 Like

Hi DaneLLL,

Yes, It works.
Many Thanks for your help.

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