145 Commits

Author SHA1 Message Date
Dan Walkes
a4c8bb0c55 libnvidia-container: fix go build on 36.4.3
With backported patch at https://github.com/NVIDIA/libnvidia-container/pull/297
supporting go 1.24+ replacing the local patch from master.

Signed-off-by: Dan Walkes <danwalkes@trellis-logic.com>
2025-04-19 04:26:13 -07:00
Matt Madison
ffd139ac7a external: update nvidia container recipes for L4T R36.4.3
* Update nvidia-container-toolkit, libnvidia-container to v1.16.2
* Refresh nvidia-container-toolkit alt-roots patch
* Drop obsolete backported patch and config.toml template file
* Use nvidia-modprobe patch in the libnvidia-container sources
  instead of maintaining our own copy
* Other minor cleanup of obsolete settings in libnvidia-container
  recipe
* Fix PACKAGE_ARCH of libnvidia-container for tegra platforms
* Add missing BSD-3-Clause license to nvidia-container-toolkit recipe
* Update license checksums in nvidia-container-toolkit recipe;
  no license-affecting changes.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
a03b9fbef2 libnvidia-container: fix whitespace in OBJCPY setting
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-18 06:39:20 -07:00
Matt Madison
54ca488dd9 external/virtualization-layer: fix libnvidia-container build error
Add a patch to libnvidia-container to fix build issues with go 1.24.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-03-09 07:48:14 -07:00
Khem Raj
206ec910d5 opencv: Adjust bbappend for 4.11 upgrade from meta-oe
Drop backport patch present in 4.11 already

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-05 01:45:29 -08:00
Kurt Kiefer
a15cc4ebf0 libusbgx-config: l4t-gadget-config-setup: handle kernel module bridge as built-in
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Matt Madison
491904be3c external/meta-python: update python3-tensorrt to 10.3.0
* Python package files moved to a subdirectory
* Need to use gitsm:// to pick up the onnx parser submodule
* Refresh the build-related changes and patch

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
383596fb08 external/openembedded-layer: update tensorrt-plugins to 10.3.0
* Switch git:// to gitsm:// to pick up the ONNX submodule
* Refresh build patch, dropping some long-obsolete changes
* Replace second build patch with the correct fix via CUDAFLAGS setting

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
e0b75858e5 external/openembedded-layer: add CUDA 12.6 build patch to opencv
Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
d01401058a external/openembedded-layer: update opencv bbappend version to 4.10
Signed-off-by: Matt Madison <matt@madison.systems>
2024-09-24 04:04:13 -07:00
Matt Madison
5e53516a94 external/virtualization-layer: update libnvidia-container makefile patch
to add -trimpath to the build of libnvidia-container-go.so, so it doesn't
trigger buildpaths QA warnings.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-07-15 12:13:13 -07:00
Matt Madison
b89d6ddac2 external/virtualization-layer: update nvidia-container-toolkit alt-roots patch
to fix a problem with inconsistent results from the symlink chain resolver
used to set up the hooks to create symlinks.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-19 09:33:06 -07:00
Matt Madison
f873164fc3 external/virtualization-layer: refresh alt-roots patch for nvidia-container-toolkit
to cover the symlink creation hooks as well as the passthrough mounts.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-16 13:47:35 -07:00
Matt Madison
b9f1c32608 external: clean up patch headers
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
ec308c582f external/virtualization-layer: nvidia-container-toolkit: install config.toml symlink
With the updated toolkit/runtime setup, the toolkit is run at boot time to generate the
configuration file used by the container runtime.  To allow for a read-only rootfs setup,
we place the generated config.toml under /run. We need to install a symlink in the
normal /etc/nvidia-container-runtime directory to point to that generated config, so the
container runtime can find it.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:57:00 -07:00
Matt Madison
992db32b98 external/virtualization-layer: drop obsolete linux-tegra bbappend
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:57:00 -07:00
Matt Madison
79cf38de27 external/virtualization-layer: update nvidia-container-toolkit to 1.14.5
* Added patch to support location of files in the container-passthrough tree
* Added systemd service to generate the config.toml file for the container
  runtime during boot, so we can add the location of the passthrough tree.

Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:56:26 -07:00
Matt Madison
b562d4db27 external/virtualization-layer: update libnvidia-container to 1.14.2 and refresh patch
* Dropped libnvidia-container-jetson recipe, which is now obsoloete

Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:56:26 -07:00
Matt Madison
427c8002a8 external/openembedded-layer: libusbgx: update runtime dependencies
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
2e5eb0a18d external/openembedded-layer: drop obsolete patch for v4l-utils
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:03 -07:00
Matt Madison
614c2510a9 meta: update all recipes for the UNPACKDIR transition
* No more 'S = "${WORKDIR}"', which is not permitted
* All ${WORKDIR} references for local files updated to ${UNPACKDIR}
* Custom do_unpack for the recipes that are in the public_sources
  archive in the BSP adjusted for the new unpacking approach
* Some SRC_URIs updated with 'destsuffix=' parameters where needed

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:53:54 -07:00
Matt Madison
c8ed092367 external/virtualization-layer: drop obsolete libtirpc126 recipe
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-14 04:59:16 -07:00
Matt Madison
9d87bb125d external/virtualization-layer: drop libtirpc126 from libnvidia-container-jetson
The original problem with compatibility with newer version of libtirpc was
resolved, so we don't need the workaround any longer.

Also drop runtime dependencies that have been moved to the main libnvidia-container
recipe.  This package can't be used on its own, anyway, as it's called on
by the nvidia-container-cli tool built in the libnvidia-container recipe.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-14 04:59:16 -07:00
Matt Madison
4881dfa417 external/virtualization-layer: have libnvidia-container support nvcgo
* Refresh the build patch to have nvcgo built, so the library can be used
  with cgroupsv2 (for 'auto' and 'csv' modes)
* Move some runtime dependencies from libnvidia-container-jetson to
  this recipe, as they're needed here
2024-05-14 04:59:16 -07:00
Matt Madison
9bd391e23d external/virtualization-layer: patch nvidia-container-toolkit CSV mode
* Patch the toolkit to implement 'alternate roots' for locating files to be
  passed through from the host, to support our tegra-container-passthrough tree
* Provide our own config file, rather than modifying the one from the source tree
  on the fly

This enables us to support 'csv' mode in the toolkit for our builds, instead
of requring 'legacy' mode.  With 'csv' mode, host passthrough mounts are injected
into the container when it is created, rather than using the legacy method of
adding a prestart hook to run nvidia-container-cli to set them up.

The 'legacy' mode can still be used, if needed, as long as your target system
is configured to support cgroupsv1.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-14 04:59:16 -07:00
Kurt Kiefer
a15bc835e5 external/openembedded-layer: tensorrt-plugins: use CMAKE_CXX_STANDARD 17
Previously the 17 standard was needed just for some plugins, and leaving
14 was fine for the rest of the project. With recent changes to absl, now
we need the 17 standard for other parts as well.

This change builds on the do_configure:prepend sed fixup to include the
CMakeLists.txt CMAKE_CXX_STANDARD being forced in a couple more places.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-04-29 13:30:42 -07:00
Timo Schuster
52db02b4aa Fix override syntax error in libglvnd_%.bbappend
Signed-off-by: Timo Schuster <timo.schuster@leica-microsystems.com>
2024-03-21 07:27:50 -05:00
Matt Madison
5282a09e3c external/virtualization-layer: nvidia-container-toolkit: add patch for go 1.21+ compatibility
Signed-off-by: Matt Madison <matt@madison.systems>
2024-03-17 09:52:22 -07:00
Matt Madison
dab7e5b155 external/openembedded-layer: update opencv bbappend to 4.9
* Refresh build patches
* Drop backported patches for Python bindings that are now in 4.9

Signed-off-by: Matt Madison <matt@madison.systems>
2024-02-14 03:20:46 -08:00
Daniel Chaves
d9c20d1eb5 nvidia-container-toolkit: Add version and gitCommit to nvidia-container-runtime --version
Signed-off-by: Daniel Chaves <dchvs11@gmail.com>
2024-02-13 08:58:58 -05:00
Matt Madison
7833745672 external/openembedded-layer: update v4l-utils bbappend and patches
for the v4l-utils switch to meson that came in with the latest update
in meta-oe.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-01-20 06:18:12 -08:00
Jose Quaresma
ff9c416d1a edk2-firmware-tegra: add ostree only for sota
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2024-01-20 04:46:57 -08:00
Jose Quaresma
53c1166f0b libnvidia-container: rdepend on tegra-libraries-cuda
Fixes:

| root@jetson-agx-xavier-devkit:~# nvidia-container-cli -d log info
| nvidia-container-cli: initialization error: driver error: failed to process request
|
| root@jetson-agx-xavier-devkit:~# cat log
|
| -- WARNING, the following logs are for debugging purposes only --
|
| I0116 15:56:51.761083 1362 nvc.c:281] initializing library context (version=0.11.0+jetpack, build=1b60893021cd00c87f201d11eb207215afa3ab11)
| I0116 15:56:51.761474 1362 nvc.c:255] using root /
| I0116 15:56:51.761547 1362 nvc.c:256] using ldcache /etc/ld.so.cache
| I0116 15:56:51.761618 1362 nvc.c:257] using unprivileged user 65534:65534
| I0116 15:56:51.762404 1363 driver.c:134] starting driver service
| E0116 15:56:51.763612 1363 driver.c:196] could not start driver service: load library failed: libcuda.so.1: cannot open shared object file: no such file or directory
| I0116 15:56:51.764073 1362 driver.c:231] driver service terminated successfully

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2024-01-20 04:46:49 -08:00
Kurt Kiefer
563552ce02 external/openembedded-layer: tensorrt-plugins: fixes for new protobuf
Due to updates to protobuf and gcc, make some updates to the build. Namely,
this means using C++17 as required by protobuf and making sure we link to
the system protobuf.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-01-08 09:53:44 -08:00
Matt Madison
971f01409b external/virtualization-layer: update container support recipes
This brings container support recipes up to the versions used in
L4T R35.4.1/JetPack 5.1.2.

* Rename libnvidia-container-tools recipe to the more accurate 'libnvidia-container', and
  update to v1.10.0 (with patch consolidiation and refresh)
* Fix the makefiles for libnvidia-container and libnvidia-container-jetson to eliminate
  the build paths that were getting embedded in the RPC files
* Include the full set of DEBUG_PREFIX_MAP flags when building libnvidia-container, which fixes
  more embedded build paths
* Update nvidia-container-toolkit to v1.11.0
* Switch to static linking for nvidia-container-toolkit to work around panic on startup
  in nvidia-ctk
* Hard-code the toolkit configuration to "legacy" mode, which uses the older prestart hook
  method for mapping the paths in the CSV file, until our hacks for the passthrough tree
  and for mapping the Debian/Ubuntu multi-arch library paths to the normal host paths
  get migrated to the Go code in nvidia-container-toolkit.
* Update nvidia-docker to v2.11.0

Signed-off-by: Matt Madison <matt@madison.systems>
2023-12-26 05:36:18 -08:00
Khem Raj
45bf0e8e98 v4l-utils: Use RTLD_DI_ORIGIN when its available
Musl does not provide it. Therefore ensure its only used when its found
by configure

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-17 08:01:45 -08:00
Ricardo Salveti
ed9c1d25f5 libnvidia-container-tools: rdepend on ldconfig
nvidia-container-cli requires access to the host ldconfig at runtime, so
have it as a runtime dependency explicitly.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2023-12-01 06:44:45 -08:00
Samuli Piippo
cf7832e74f Add support for Qt 6
Add separate bbappends for Qt 6 (https://code.qt.io/cgit/yocto/meta-qt6.git).
Enabled EGLFS EglDevice backend plugin to be used with tegra libraries
and add extra CMake arguments to select the preferred backend plugin
based on the preferred gbm provider.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2023-10-24 10:24:18 -07:00
Matt Madison
524bf0c79c Revert "external/openembedded-layer: opencv: disable dnn module"
This reverts commit 35dab0f604.

Commit 225ce6a14a8110ab6b573b4dc9f5297a03d17e0f in meta-oe added in
a patch for opencv that fixes the C++11/C++17 protobuf issue for the
dnn module, so we can put dnn back in the PACKAGECONFIG.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-10-16 08:35:14 -07:00
Matt Madison
35dab0f604 external/openembedded-layer: opencv: disable dnn module
OpenCV requires C++11 standard.  The dnn module adds
protobuf as a dependency, and the version currently
in meta-oe needs C++14.

See https://github.com/opencv/opencv/issues/23466
and https://github.com/opencv/opencv/issues/23791
for more information.

Disabling dnn for now.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-10-06 13:40:22 -07:00
Jose Quaresma
94d8bf088f external/sota: edk2-firmware-tegra: adds ostree support
This group of patches is only applied when the
meta-updater [1] layer are available.

[1] https://github.com/uptane/meta-updater

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2023-09-04 07:57:24 -07:00
Matt Madison
92d6da7c14 external/openembedded-layer: tensorrt-plugins: drop CUDA_NVCC_FLAGS
from the EXTRA_OECMAKE setting, as the cmake build there uses CUDA
language support instead of the obsolete FindCUDA module.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-23 11:14:14 -07:00
Matt Madison
64eef7ae62 external/virtualization-layer: rename docker bbappend
docker-ce is deprecated, with docker-moby now set as the default
docker recipe, so switch over the bbappend to fix up the kernel
module dependencies for that recipe.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 08:39:55 -07:00
Matt Madison
b4f3d87bb3 haveged: update systemd service unit
systemd's random-seed service units/targets have changed with
recent updates, and the haveged service was causing a dependency
loop.  Disable the default dependencies, and change the WantedBy
to sysinit.target to fix this.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 08:37:34 -07:00
Matt Madison
7cac95de84 external/openembedded-layer: backport opencv upstream patches for CUDA
to fix issues with python interface generation for opencv cuda modules.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-07-22 09:33:23 -07:00
Jose Quaresma
8d8eee9e62 external/openembedded-layer: opencv: 4.7 -> 4.8
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2023-07-13 08:35:51 -07:00
Matt Madison
c53edc6321 external/openembedded-layer: more fixes for opencv 4.7 build
* Update OpenCVDetectCUDA.cmake patch to prevent insertion of
  build paths into the generated opencv4.pc file
* Disable cmake build checks/regeneration so the build isn't
  regenerated during the install step, which is causing
  incorrect recompilations

Signed-off-by: Matt Madison <matt@madison.systems>
2023-03-17 12:11:30 -07:00
Matt Madison
c2c2c920ff external/openembedded-layer: update bbappend for opencv 4.7
with an additional patch to fix breakage in OpenCVDetectCUDA.cmake.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-03-17 07:05:38 -07:00
Ilies CHERGUI
ce6755e485 nvidia-container-toolkit: update branch name
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-03-17 05:53:18 -07:00
Matt Madison
033ed4ef41 external/virtualization-layer: update libnvidia-container-jetson
to add a patch that supports the use of tree of files to be directly
exported to containers, overriding any files that reside in the normal
host rootfs.  This allows us to export NVIDIA's prebuilt binary userland
libraries to NVIDIA's containers, to ensure compatibility with the library
versions (notably glibc's) that are inside the container.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-03-06 10:59:23 -08:00