2723 Commits

Author SHA1 Message Date
Atharva Nandanwar
e9fe765b56 arm-trusted-firmware: set DEBUG and LOG_LEVEL from bitbake
- this allows ability to modify these in other layers if needed

Signed-off-by: Atharva Nandanwar <atharva.nandanwar@colorado.edu>
2024-09-19 14:12:43 -07:00
Matt Madison
98e065a4d9 tegra-flash-init: quote configuration state when testing
The configuration state could be 'not attached', which confuses
the shell unless we quote it.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-09-14 06:37:26 -07:00
Matt Madison
fa83834fdc tegra-flash-init: update variable name
With 2ba2294c45, we
now use 'configured' instead of 'suspended', but
missed updating the declaration of the variable
within the functions that use it.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-09-14 05:27:15 -07:00
Matt Madison
239d429089 setup-nv-boot-control: fix compat spec for P3701 SKUs
The logic for generating the compatibility spec for P3701
SKUs changed in L4T R35.4.1, but we missed it.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-09-14 05:20:57 -07:00
Matt Madison
e3ed33a319 tegra-eeprom-tool: update v2.0.1 -> v2.0.2
Signed-off-by: Matt Madison <matt@madison.systems>
2024-09-14 04:40:47 -07:00
Igor Opaniuk
9de11ba168 tegra-uefi-capsules: remove ESP image dependency for BUP
Remove ESP image dependency for BUP generation. The BUP generation
script doesn't use it, and the only mention of ESP partition is in the list
of boot artifacts to be included into BUP image (bup_type=bl), where
the ESP image is explicitly marked to be skipped.

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
2024-09-14 03:31:03 -07:00
Khem Raj
a378e7eddb layer.conf: Switch to 'styhead' release series
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-10 04:00:31 -07:00
Kurt Kiefer
2ba2294c45 tegra-flash-init: use usb configuration state for connection status
When a device is enumerated by the host, its usb configuration state
changes to positively identify that it is ready to go. Conversely,
when it is powered down, its configuration state indicates that it
is no longer in that ready ('configured') state.

A side effect of the power saving for the USB peripheral would change
the device into a suspended state if it is not configured, but this
mechanism does not work reliably on the Orin AGX devkit.

Additionally, the gadget device sysfs node changed from a single
/UDC/device/gadget function to /UDC/device/gadget.# in kernels newer
than the current L4T 5.15, breaking the previous method for newer
kernels.

Use this more direct method of determining if the usb host is using
the device so it will work across various platforms as well as kernel
versions.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-09-05 06:30:55 -07:00
Dan Walkes
a0a0005b15 tegra-storage-layout-base: fix typo on external layout
Fix typo and missing 'T' character in variable reference
for `PARTITION_LAYOUT_EXTERNAL`.

The current typo means if the name of the file referenced
by PARTITION_FILE_EXTERNAL was different than the name
PARTITION_LAYOUT_EXTERNAL, the wrong filename would be used
in the l4t-storage-layout dir.

Relates to #1

1: https://github.com/OE4T/meta-tegra/pull/1684

Signed-off-by: Dan Walkes <danwalkes@trellis-logic.com>
2024-08-31 02:50:58 -07:00
Matt Madison
ba9e09c980 egl-gbm: correct capitalization of Pending in Upstream-Status in patch
Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-30 08:40:33 -07:00
Matt Madison
725a447d82 egl-gbm: correct capitalization of Status in Upstream-Status tag in patch
Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-30 07:40:38 -07:00
Kurt Kiefer
1e0eb5a43c nvidia-kernel-oot: remove nvidia-drm + tegra-drm ordering patch
This workaround is no longer needed with commit:
'egl-gbm: fix for kms display-only rendering'

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-08-30 06:16:28 -07:00
Kurt Kiefer
bbc0362ea3 egl-gbm: fix for kms display-only rendering
The tegra-drm + nvidia-drm setup on r36 is tenuous with respect
to egl-gbm (and particularly calls to eglGetPlatformDisplayEXT with
EGL_PLATFORM_GBM_KHR). It was only working somewhat by chance due
to the order that devices are probed and then made available to
readdir().

This change adds a patch to egl-gbm to provide a fallback in the
case where eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_KHR) might have
otherwise failed for no good reason, thus eliminating the need for
workarounds to enforce ordering of the modules loading.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-08-30 06:16:28 -07:00
Khem Raj
63ef5b0faf mesa,mesa-gl: Rename bbappend to match oe-core
OE-core has dropped the version number from these recipe names

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-23 06:31:29 -07:00
Matt Madison
1247115ba4 cuda-sanitizer: remove 32-bit x86 binaries
CUDA 12 added 32-bit x86 tools and libraries to the cuda-sanitizer
package. They're not likely needed in our builds or SDKs, so just
remove them to avoid packaging issues.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-18 05:33:01 -07:00
Matt Madison
18f8c776a3 l4t-launcher-extlinux: inherit python3native
to ensure that there's a usable python3 environment for
running the scripts from tegra-flashtools-native.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-18 05:21:25 -07:00
Matt Madison
1d91fcff73 linux-jammy-nvidia-tegra: inherit python3native
The deploy task uses the tegra-flashtools python scripts, so
inherit python3native to ensure we've got a suitable python
environment to run them.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-18 05:20:14 -07:00
Sid-Ali Teir
db40c73e8d tegra-flashtools: add dependency on python3-pyyaml
The tegrasign_v3 Python scripts depend on this package.

Signed-off-by: Sid-Ali Teir <sidali.teir@wavelit.io>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-18 04:45:23 -07:00
Zachary T Welch
69145eb661 linux-jammy-nvidia-tegra, image_types_cboot: fix KERNEL_ARGS quoting
This change permits passing kernel command line arguments that include
quoted strings, including dyndbg.  Without single quotes, these
invocations of `mkbootimg` will silently produce incorrect results.

Signed-off-by: Zachary T Welch <zach@aquabyte.ai>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-18 04:27:12 -07:00
Stefan Schorr
716714ae34 initrd-flash: Add custom extra-pre-wipe
This introduces a hook to the initrd-flash script which makes it
possible to run custom scripts before erasing the storage disk
via "erase-nvme" or overwriting it via "export-devices".

Note: There exists already an "extra" hock to run future scripts
before the final reboot step. Similar to that, any future recipe
intended to add custom extra pre-wipe scripts can use the
TEGRA_INITRD_FLASH_INSTALL variable in the distro config to add
the new package(s).

Furthermore, note that these custom scripts will need to be
installed with executable permission set in the
/init_extra-pre-wipe.d folder of the tegraflash initrd image.

Signed-off-by: Stefan Schorr <stefan.schorr@cognex.com>
2024-08-16 13:09:01 -07:00
Matt Madison
814a256f34 l4t_version: move L4T_VERSION to global scope
The global tegra-mender-setup.bbclass from the meta-mender-community
layer uses the L4T_VERSION variable to define a `l4t-mender-<version>`
machine override, so that variable also needs to be available globally.

Signed-off-by: Zachary T Welch <zach@aquabyte.ai>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-08-16 13:02:37 -07:00
Sid-Ali Teir
064152c354 nvidia-l4t-optee: add 'bash' as RDEPENDS
Signed-off-by: Sid-Ali Teir <sidali.teir@wavelit.io>
2024-08-14 09:24:37 -07:00
Sid-Ali Teir
1135764567 nvidia-l4t-optee: install missing tee-supplicant script
Signed-off-by: Sid-Ali Teir <sidali.teir@wavelit.io>
2024-08-08 13:08:04 -07:00
Matt Madison
b20cff753f libconfig-tegra, libusbgx-tegra-initrd-flash: meta-oe compatibility
These recipes are included to allow the initrd used for flashing
to be built without relying on the meta-oe layer.  Clean them
up so that if meta-oe is part of the build, they don't conflict
with the real recipes for things like SDK builds.

For libconfig-tegra, exclude it completely when meta-oe is present,
since we can use the normal libconfig recipe instead.

The libusbgx build is customized for the initrd flash initramfs,
so for now, at least, just empty the -dev package for it.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-07-27 07:06:06 -07:00
Khem Raj
28471e11ae cuda-samples: Build all samples under 0_Introduction
Add needed dependencies and linker flags as well as copy the data files
to target, needed to run c++11_cuda sample, in order to run this the
limitation is that one must be in /usr/bin/cuda-samples subdir when
executing this sample, so it can find warandpeace.txt under ./data dir

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-26 05:16:41 -07:00
Khem Raj
62748c693d tegra-libraries-eglcore: Force hardlink creation in postinstall
otherwise O_P_M update does not work and fails like below

Configuring tegra-libraries-eglcore.
ln: failed to create hard link '/usr/lib/aarch64-linux-gnu/tegra-egl/libEGL_nvidia.so.0': File exists
error: pkg_run_script: package "tegra-libraries-eglcore" postinst script returned status 1.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-18 13:32:43 -07:00
Matt Madison
76e5fb3546 l4t-launcher-rootfs-ab-config: add S setting
so we don't get the warning about S being undefined during
the build.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-07-15 12:13: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
Khem Raj
5da2520145 tar-l4t-workaround-native: Switch away from S = WORKDIR
Fixes
WARNING: tar-l4t-workaround-native-1.0-r0 do_unpack: tar-l4t-workaround-native: the directory ${WORKDIR}/${BP} (/mnt/b/yoe/master/build/tmp/work/x86_64-linux/tar-l4t-workaround-native/1.0/tar-l4t-workaround-1.0) pointed to by the S variable doesn't exist - please set S within the recipe to point to where the source has been unpacked to

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-15 12:12:52 -07:00
Matt Madison
cc1c28f05f nsight-systems: update LIC_FILES_CHKSUM
Date stamp change in the EULA.txt file.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-07-13 04:32:19 -07:00
Khem Raj
9094f97b1f nvidia-kernel-oot: Fix buildpaths QA messages
buildpaths is a QA warning up until now, but there are patches
in oe-core/master-next which will elevate it to an error, therefore
fix the error by helping makefile to not add extra leading '/', other
fix would be to add another expression to -fdebug-prefix-map option
in CFLAGS, but this if ok, is a better way to handle it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-13 03:40:00 -07:00
Kurt Kiefer
2f05663341 nvidia-kernel-oot: don't sign dtbs that aren't built here
In the case of a custom provider of virtual/dtb, the devicetrees won't
all be built by nvidia-kernel-oot, so it shouldn't die if an item in
the KERNEL_DEVICETREE list isn't found here.

Note that previously, DTBFILE was overwritten for the custom devicetrees,
but due to changes elsewhere, this is no longer possible. The choice was
between patching those other places, or this change, which now allows a
dtb to be built by more intuitively updating the KERNEL_DEVICETREE variable.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-07-12 03:03:29 -07:00
Kurt Kiefer
411b175fd4 nvidia-kernel-oot: deploy virtual/dtb in separate recipe
Custom boards wishing to provide their own devicetree sources will
want to be a provider of virtual/dtb. If this happens, then other
providers of virtual/dtb will not be built. That's a problem, because
the nvidia-kernel-oot recipe also contains device drivers and overlay
devicetree sources that are required.

To solve this, the deployment step of nvidia-kernel-oot is broken
out into a special provider for virtual/dtb. That way, it can easily
be skipped by creating a new virtual/dtb provider and the rest of
nvidia-kernel-oot can still be built and used.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-07-12 03:03:29 -07:00
Khem Raj
bf87a76208 cuda-gcc: Pin runtime type to GCC runtime
When using clang, one could use llvm runtime to provide C/C++ runtime libs
instead, here, since it uses gcc, also use relevant runtime settings

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-12 02:51:06 -07:00
Khem Raj
893dfad75e cuda-gcc.bbclass: Define TOOLCHAIN variable
TOOLCHAIN variable is indicative of which compiler toolchain
should be used and for cuda-gcc class its GCC obviously, therefore
make it clear here, this helps in builds when default toolchain is
clang/llvm ( using meta-clang ) and defaulting TOOLCHAIN = "clang"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-12 02:51:06 -07:00
Timo Schuster
2c972e80d9 p3737-0000-p3701-0005: set correct TEGRA_FLASHVARs, KERNEL_DEVICETREE and EMMC_BCT
Signed-off-by: Timo Schuster <timo.schuster@leica-microsystems.com>
2024-06-29 07:06:43 -07:00
Matt Madison
fcf16f0e48 tegra-uefi-capsules: add missing dependencies and setup
* Add missing dependency on virtual/bootloader:do_deploy,
  needed for all platforms
* Add missing dependency, and staging, for the ESP image,
  needed for the AGX Orin platform using internal storage,
  to satisfy the NVIDIA flashing tools while generating the
  BUP/capsule contents.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-26 04:22:53 -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
7c81cf2c9d image_types_tegra.bbclass: use --external-device in doexternal.sh script
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-16 13:47:30 -07:00
Matt Madison
6e8eab779e tegra-helper-scripts: don't require --serial-number with --external-device
to allow for programming a locally-attached drive that will then be plugged
into the target.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-16 13:47:27 -07:00
Matt Madison
8df401bd44 tegra-minimal-initramfs: add ucsi-ccg module to initramfs
needed for booting from at least some types of USB storage devices.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-16 13:47:18 -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
f975e2022f tensorrt-samples: clean up patch header
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
82077fcbf2 argus: clean up patch headers
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
5baa85da06 sbsigntool: clean up patch headers
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
2691f00067 gstreamer: update patches to add missing headers
all patches now require Upstream-Status and Signed-off-by
lines.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
b6737601ba kern-tools-tegra-native: drop recipe
The L4T R36.x kernel tree no longer includes the
NVIDIA-specific source overlays, so we can drop
this tool.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
1b060501ff gcc-for-nvcc: clean up Upstream-Status lines in patches
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Khem Raj
4d6e2ffb75 recipes: Add missing Patch-Status
Its now mandatory field to have in patch header with latest oe-core [1]

[1] https://git.openembedded.org/openembedded-core/commit/?id=b7fb91c797ab37a029b8dd1eb7277a7468bc97ed

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-13 04:24:22 -07:00