Commit Graph

2479 Commits

Author SHA1 Message Date
Matt Madison
f8633daf75 conf/machine: add missing TEGRA_BOARDSKU settings
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:57:00 -07:00
Pavel Löbl
3e76d865a5 p3768-0000-p3767-0001: set correct SKU for Orin NX 8Gb
Set SKU to 0001 as otherwise 0000 is used from included
16Gb Orin NX variant config.

Signed-off-by: Pavel Löbl <pavel@loebl.cz>
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
41db12cc55 tegra-configs: update the container CSV files for R36.3.0
l4t.csv has been split in two.  Only the drivers.csv file
needs modification for our builds.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:56:26 -07:00
Matt Madison
3b763e9a41 setup-nv-boot-control: updates for R36.3.0
* Drop Xavier references
* Drop eMMC hack which was only needed for AGX Xavier platforms

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-31 09:56:26 -07:00
Matt Madison
87ff11686d tegra-storage-layout: update for L4T R36.3
* Add PVA firmware partition
* Populate TSEC firmware partition

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
57a87f318e tegra-helper-scripts: updates for L4T R36.3
tegra-flash-helper:
     - DCE overlay DTB handling
     - secondary_gpt_backup has been dropped
     - EEPROM custinfo command changed to 'try_custinfo'
     - PVA firmware
     - remove SCE firmware
     - drop odmsign.func check, as it is now included in the BSP
     - add readfuses command on initial contact with device
     - fix handling of custinfo data
     - set up FLASHARGS variable for processing by odmsign

initrd-flash:
     - now using module serial number/asset ID instead of ECID for
       the unique identifier
     - normal helper/tegraflash invocation can now generate
       a signed RCM boot blob, so remove special hack for that
     - reorder helper invocations in signing steps - RCM first,
       then internal, then external

rewrite-tegraflash-args:
     - updated from latest tegraflash.py script

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
fc10506a18 uefi: update recipes for R36.3.0
* Handle some changes to NVIDIA's build configurator, and
  some path changes for scripts within the edk2-nvidia repo
* Move the rootfs A/B overlay to a separate recipe, so
  it can also be used with prebuilt UEFI

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
ff8f3de44e libusbgx-tegra-initrd-flash: add missing runtime depedency
on the tegra-xudc driver.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
14c20def2e tegra-minimal-initramfs: include some drivers
Just a minimal set, mainly to support booting off NVMe.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
218dfb2d9f tegra-initrd-flash-initramfs: add 'essential' machine packages
Drivers that are generally always needed are included in the
MACHINE_ESSENTIAL_EXTRA_* variables, so just include these in the
initrd-flash image.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
106d558853 initrdscripts: updates for L4T R36.3
* More drivers are now kernel modules
* Switch from ECID to module serial number for
  forming USB device ID when flashing

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
34408864ce Revert "tegra-common: set OLDEST_KERNEL so that glibc will restrict features"
This reverts commit 1eec81c883.

With L4T R36.x, we now have a 5.15 kernel as a base, so we no
longer need to do this.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
eb2d73cdf7 conf/machine: updates for L4T R36.3.0
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -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
81a4f98016 alsa-state: add runtime dependency on out-of-tree ALSA drivers
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
30b20fa605 nvidia-kernel-oot: add recipe
to build all of the NVIDIA out-of-tree modules and device trees.

This also removes the old nvidia-display-driver recipe, since the
source for the display drivers is coupled with the other out-of-tree
drivers.

Added patches for fixing:

* driver ordering between nvidia-drm and tegra-drm
* build compatibility with gcc 14

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
9a93922dbe python3-kconfiglib-tegra: add recipe
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
42c22a5791 optee: update recipes for L4T R36.3.0
- base OP-TEE version now 3.22
- refresh makefile patch
- optee-client now needs pkg-config and depends on libuuid

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
f68de0317d gstreamer: update recipes for R36.3.0
- public_sources archive layout change
- refresh patches where needed

Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
5459445460 arm-trusted-firmware, optee: update for new public_sources structure
The 'public' subdirectory has been removed.  Also bump ATF version
to 2.8, which is the version included with L4T R36.3.0.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
6b045aac99 recipes-kernel: update kernel recipe to linux-jammy-nvidia-tegra 5.15
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
617aa8c815 meta: update recipes R35.5.0/JetPack 5 -> R36.3.0/JetPack 6
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
26f6e9401d meta: remove all t194/xavier references
in preparation for the R36.x update, which drops support
for those platforms.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:38 -07:00
Kurt Kiefer
0aeecc729b tegra-uefi-capsules: add missing DTB_EXTRA_DEPS dependency
The collection of dtb overlays used during tegraflash package creation
can come from sources other than l4t or the kernel. Most commonly this
is the virtual/dtb package, but it can be overridden, and is specified
by the DTB_EXTRA_DEPS variable.

The migration from creating bup payloads to creating only capsules
inadvertantly dropped this dependency, so this change adds it back.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-05-30 10:36:08 -07:00
Igor Opaniuk
3b28f68df6 tegra-uefi-capsules: include all logic for BUP generation
Drop BUP-specific recipes and move all logic to UEFI capsule
generation recipe, as suggested in [1].

[1] https://github.com/OE4T/meta-tegra/discussions/1492
Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-05-29 12:49:04 -07:00
Igor Opaniuk
ca2f725732 tegra-uefi-capsule-signing.bbclass: use build dir for capsules
Use ${B} for storing generated capsules instead of hacking
with ${DEPLOY_DIR_IMAGE}.

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-05-29 12:49:04 -07:00
Igor Opaniuk
d239384ba0 image_types_tegra.bbclass: drop bup-payload CONVERSION_CMD
Drop bup-payload image type CONVERSION_CMD, as it's planned to generate
BUP image inside UEFI capsule generation recipes, as suggested in
[1].

[1] https://github.com/OE4T/meta-tegra/discussions/1492
Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-05-29 12:49:04 -07:00
Igor Opaniuk
669ccd241e tegra-common: drop bup-payload image_type
Drop bup-payload image type from TEGRA_INITRAMFS_FSTYPES, as it's
planned to generate BUP image inside UEFI capsule generation
recipes.

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-05-29 12:49:04 -07:00
Igor Opaniuk
cea5f835f7 tegra-uefi-capsules: weak default value for capsule install dir
Rename variable holding Capsule install dir in the final rootfs,
so it's more generic TEGRA_UEFI_CAPSULE_INSTALL_DIR and set
a weak default value, so it can be adjusted if needed.

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-05-29 12:49:04 -07:00
Igor Opaniuk
90256a7871 tegra-uefi-capsules: fix indentation issues
Fix indentation in task definitions (use spaces instead of tabs).

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-05-29 12:49:04 -07:00
Matt Madison
742f465849 meta: fix unpack warnings from recipes with only in-tree files
There is now a check that ${S} exists after running do_unpack.
The convention for recipes with only local in-tree files is
to define S and point UNPACKDIR at the same directory.  All
such recipes are updated to use this convention.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-29 06:15:10 -07:00
Matt Madison
cae3b11804 cuda-samples: move debian unpacking into do_unpack task
There is now a check that ${S} exists after running do_unpack, so
append the extraction of the sources from the debian package to
the do_unpack task, instead of breaking it out as a separate
task.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-29 06:12:28 -07:00
Matt Madison
b097a5a48f gstreamer1.0-plugins-nveglgles: fix build error with gcc-14
gcc 14 has promoted the int-conversion warning to the default -Werror
list, so update CFLAGS to prevent the error.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:28 -07:00
Matt Madison
9d4c380c46 xwayland: update bbappend for version 24.1
The new version drops eglstream support, so that's removed from
the tegra-specific configuration.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:23 -07:00
Matt Madison
3ded37039d gcc-for-nvcc: fix DEBUG_PREFIX_MAP handling for the runtime recipes
Like the upstream gcc recipes, we can use the global DEBUG_PREFIX_MAP
setting, but for this older compiler we have to remove '-fcanon-prefix-map'.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:19 -07:00
Matt Madison
3c086eca21 nvidia-display-driver: fix conftest issue with gcc-14
The function-finding compilation tests were getting a false positive because gcc 14
promoted the implicit-function-declaration warning to the -Werror defaults.  Work
around this by disabling this error in the CC setting we pass to make.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:13 -07:00
Matt Madison
8d85d426b6 libv4l2-minimal: drop obsolete patch
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:09 -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
Ilies CHERGUI
929d03d4a4 gcc-for-nvcc: fix build and package issue
Fixes building and packaging gcc-for-nvcc for installing on target systems.

Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2024-05-15 12:37:10 -07:00
Matt Madison
672decafea tegra-configs: fix glvnd config file name in l4t.csv
We use a hyphen in the file name, rather than an underscore.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-14 04:59:16 -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
irodriguez-veridas
a58994178c l4t-launcher-extlinux: append DTBFILE to list of files to sign
Signed-off-by: Iban Rodriguez <irodriguez@veridas.com>
2024-05-14 03:26:49 -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
mci
a59987982d initrd-flash: Add custom extra init
This makes it possible for extra custom steps to take before the final reboot step of the initrd flashing process.
A new recipe can use the TEGRA_INITRD_FLASH_INSTALL variable in the distro config, to add the new package(s) that provides the custom extra init steps.
Note that these scripts needs to be installed with execution permition, in the /init_extra.d folder of the tegraflash initrd image.

Signed-off-by: Michael Christensen <msc95@hotmail.dk>
2024-04-27 03:19:44 -07:00