LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 06-22-2021, 11:41 AM   #1
marietto
Member
 
Registered: Aug 2010
Posts: 76

Rep: Reputation: 16
How to make coexist the CUDA / OPENCV / CUDNN / TensorRT on ubuntu 21.04 even if they work only on Ubuntu 18.04 using bedrocklinux.


Hello to everyone.

Some time ago I've bought the jetson nano developer edition with 4 GB. It is a board dedicated to the deep learning and Nvidia condensed a lot of tools inside the L4T for Ubuntu (18.04). It is a version of Linux based on nvidia's linux for tegra project. It uses a different kernel compared to previous releases which allows it to use features not yet in mainline. Such as audio, docking support and vulkan. Probably you know that all the nvidia tools to work correctly need that the ubuntu version is the 18.04. This causes a lot of problems for the people who wants to use the board also for different cases.

So, I have created a custom image for the Jetson nano which is now based on ubuntu 21.04 and includes all the most updated packages and libraries and some useful staff for the people who wants to use the board for the virtualization or as a small web server or like a media center,because thanks to the most updated packages offered by ubuntu 21.04 is now possible with less effort. The image includes all the packages and drivers that are included in the Jetson nano BSP version 32.3.1. additional drivers and tools can be installed via the jetson nano apt repository (for example the L4T multimedia API ). You can see the main features of this custom image below :


Code:
NVIDIA Jetson Nano (Developer Kit Version)

L4T 32.3.1 [ JetPack 4.3 ]

Ubuntu 21.04

Kernel Version: 4.9.201+


CUDA NOT_INSTALLED

CUDA Architecture: 5.3

OpenCV version: NOT_INSTALLED

OpenCV Cuda: NO

CUDNN: NOT_INSTALLED

TensorRT: NOT_INSTALLED

Vision Works: NOT_INSTALLED

VPI: NOT_INSTALLED

Vulcan: 1.2.162

This is what happens when I try to install the nvidia-jetpack :


Code:
root@mario-desktop:/etc/apt/sources.list.d# apt install nvidia-jetpack

Lettura elenco dei pacchetti... Fatto

Generazione albero delle dipendenze... Fatto

Lettura informazioni sullo stato... Fatto

Alcuni pacchetti non possono essere installati. Questo puņ voler dire

che č stata richiesta una situazione impossibile oppure, se si sta

usando una distribuzione in sviluppo, che alcuni pacchetti richiesti

non sono ancora stati creati o sono stati rimossi da Incoming.

Le seguenti informazioni possono aiutare a risolvere la situazione:


I seguenti pacchetti hanno dipendenze non soddisfatte:

nvidia-jetpack : Dipende: libopencv-python (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato

Dipende: libopencv (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato

Dipende: libopencv-samples (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato

Dipende: libopencv-dev (= 4.1.1-2-gd5a58aa75) ma la versione 4.5.1+dfsg-4ubuntu1 sta per essere installata

Dipende: python3-libnvinfer (= 6.0.1-1+cuda10.0) ma non sta per essere installato

Dipende: python3-libnvinfer-dev (= 6.0.1-1+cuda10.0) ma non sta per essere installato

Dipende: opencv-licenses (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato

E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati.
As u can see,a lot of nvidia tools can't be installed because they don't support ubuntu 21.04,they need ubuntu 18.04. I would like to know if I can install a parallel ubuntu 18.04 os using the bedrock meta distribution on top of the 21.04. Can the nvidia libraries which can run correctly only on ubuntu 18.04 be integrated with the rest of the system ? Do u have some tutorial,suggestion,idea,advice to help me ?

Last edited by marietto; 06-22-2021 at 12:32 PM.
 
Old 06-23-2021, 05:48 AM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
I don't mean to be rude by copy/pasting the same answer I gave you last time you asked this, but without any effort on your part to flesh out your question with relevant information, engage with those trying to help you, or actually try things to familiarize yourself with the technologies at hand, I'm at a loss as to how to provide you better assistance.

If I understand you correctly, you're (again) asking if Bedrock can help you get a set of nVidia/ML features from Ubuntu 18.04 and other features from other distros. You (again) went into some detail about the nVidia/ML features you want from Ubuntu 18.04, but you (still) did not explain what features you were interested in getting from other distros. Without knowing those, it's hard to give you a definitive answer.

As documented here, Bedrock cannot make libraries work across distros. You can have both 18.04 libraries and 21.04 libraries installed at the same time, in which case 18.04 programs can link to 18.04 libraries and 21.04 programs can link to 21.04 libraries. However, Bedrock cannot make 21.04 programs link to 18.04 libraries or 18.04 programs link to 21.04 libraries. Bedrock still might be able to help, though, if you flip things around: keep the libraries separate, but make everything else work across distros. For example, Jetpack could link against 18.04 but run in a desktop environment from 21.04 (or some other distro).

The main catch here is that, if you are running proprietary nVidia drivers on Bedrock, every Bedrock stratum which does anything related to graphics cards needs to have the same version of the proprietary nVidia driver installed. Provided the official nVidia driver installer works for your 18.04 ML needs, you can resolve this limitation by just installing the proprietary nVidia driver multiple times.

Provided you have time to experiment, my recommendation is to:

- Install Bedrock in a non-production environment (e.g. a VM or a spare machine) just to mess with and familiarize yourself with it. If you run `brl tutorial basics` it will provide an interactive tutorial that covers the basic usage that has generally been well received. After going through the tutorial, try to get parts of the test Bedrock install from 18.04 and part from whatever other distros you're interested in. For example, try to get 18.04's kernel and some other distro's DM. Make sure to reference the documentation here.
- Provided (1) the official nVidia proprietary driver installer is adequate here and (2) experimentation described above works out, back up your Jetson nano then install Bedrock on it and give it a try.

Last edited by ParadigmComplex; 06-23-2021 at 05:54 AM.
 
  


Reply

Tags
arm64, libraries, nvidia, ubuntu 18.04, ubuntu 21.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm trying to install a library required by nvidia TensorRt. The name of the library is python3-libnvinfer beefshepherd Linux - Software 9 08-22-2019 01:43 AM
[SOLVED] Freebsd & Linux: Can they coexist on same HD? business_kid *BSD 6 01-09-2017 05:51 AM
OpenCV - Pixel format of incoming image is unsupported by OpenCV golmschenk Programming 1 04-01-2011 12:32 PM
programs won't start, even if they do, they won't run smoothly sometimes, why? randytsx Linux - Software 4 12-23-2004 02:19 AM
Linux 8.0 & Linux 7.0 - can they coexist ? sumit_nus Linux - Software 2 07-28-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration