2723 Commits

Author SHA1 Message Date
Alon Bar-Lev
b57e183d66 nvidia-kernel-oot: support module symbol reuse
The module media and other modules are reusable for other modules, the package
should expose symbols to other packages.

The module.bbclass expects kernel-module- prefix package name and matching
include directory to trigger the dependency mechanism.

    python __anonymous () {
        depends = d.getVar('DEPENDS')
        extra_symbols = []
        for dep in depends.split():
            if dep.startswith("kernel-module-"):
                extra_symbols.append("${STAGING_INCDIR}/" + dep + "/Module.symvers")
        d.setVar('KBUILD_EXTRA_SYMBOLS', " ".join(extra_symbols))
    }

Add:
1. kernel-module-nvidia-kernel-oot PROVIDES alias.
2. Symlink of /usr/include/kernel-module-nvidia-kernel-oot -> /usr/include/nvidia-kernel-oot

A module that requires these modules can use the standard dependency such as:

  DEPENDS += "kernel-module-nvidia-kernel-oot"

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2025-05-10 07:04:39 -07:00
Khem Raj
4cca24d6b0 nvidia-kernel-oot: Disable header-guard GCC15 warning
Warnings are treated as errors and this warning is triggered when
compiling git version of nvidia-kernel-oot module. Ignore the
warning as error for now.

Fixes errors like

nvidia-oot/drivers/net/wireless/realtek/rtl8852ce/phl/hal_g6/phy/rf/halrf_8852c/../halrf_8852c/halrf_ops_rtl8852c.h:25: error: header guard '__HALRF_OPS_RTL8852C_H__' followed by '#define' of a different macro [-Werror=header-guard]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-09 03:56:13 -07:00
Matt Madison
d0e716d5a2 optee: update for gcc 15 and DEBUG_PREFIX_MAP changes
* pass -std=gnu17 and disable errors for unterminated string
  initialization warnings in the test programs
* update the sed filter to catch -ffile-prefix-map for the
  TA development kit

Signed-off-by: Matt Madison <matt@madison.systems>
2025-05-01 10:04:27 -07:00
Matt Madison
28343e3837 nvidia-kernel-oot: make buildable with gcc 15
by adding -std=gnu17 to the compilation flags.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-05-01 10:03:40 -07:00
Matt Madison
21623405ce l4t-graphics-demos: make buildable with gcc 15
via adding -std=gnu17 to the compiler flags.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-05-01 09:12:28 -07:00
Matt Madison
7608aaf47a tegra-common: fix typo in variable name
which is TEGRA_DCE_OVERLAY, singular, rather than
the plural.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-05-01 07:21:15 -07:00
Matt Madison
96b1919200 tegra-helper-scripts: fix typo in variable name
which might affect builds that have a DCE overlay dtb.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-05-01 07:21:15 -07:00
Matt Madison
0b583424b9 gcc-for-nvcc: update DEBUG_PREFIX_MAP
The default prefix map settings have switched to using -ffile-prefix-map,
but the gcc 10 compiler we're building here needs the old -fmacro-prefix-map
and -fdebug-prefix-map settings, so add them back in for these recipes.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-05-01 07:02:11 -07:00
Kurt Kiefer
ba4e5cfbb9 tegra-udrm-gbm: update for compatibility with egl-gbm 1.1.1+
This version emits a different internal name so it passes a check
added to egl-gbm at version 1.1.1. This does not alter functionality
in any way.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2025-04-30 06:52:14 -07:00
Matt Madison
2b51abd5b3 README.md: update for L4T R36.4.3
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
b961e65fd8 conf/layer.conf: drop styhead from LAYERSERIES_COMPAT
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
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
Dan Walkes
d6b52eafcc tegra-uefi-capsules: add minimal UEFI dependency
With [1] the image_types_tegra class was modifed to add
the minimal uefi image, uefi_jetson_minimal, to the tegraflash
package and added edk2-firmware-tegra-minimal:do_deploy
to the do_image_tegraflash_tar[depends]

Since tegra-uefi-capsules also references tegraflash_populate_package
it also needs the same dependency to avoid this build error:

```
| DEBUG: Executing shell function do_compile
| cp: cannot stat '/home/dan/trellis/oe4t/tegra-demo-distro/build-r36.4.3/tmp/deploy/images/jetson-orin-nano-devkit-nvme/uefi_jetson_minimal.bin': No such file or directory
| WARNING: exit code 1 from a shell command.
```

1: 9b6a113255

Signed-off-by: Dan Walkes <danwalkes@trellis-logic.com>
2025-04-19 04:26:13 -07:00
Matt Madison
d1900bba99 nvidia-kernel-oot: refactor the recipes, add wifi driver
to move the common parts for the two recipes into a shared include
file.

Also add the rtl8852ce driver to the wifi drivers list.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
3a4ceaafa8 tegra-helper-scripts: update BPFDTB rewrite for p3767 modules
to rewrite the entire file name for the (probably pre-production)
versions of the modules.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
d886d9a737 conf/machine: update Orin NX/Nano BPFDTB settings
The BPMP's device tree also needs updating to enable
'super' mode.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
6a9475bc9d conf/machine: update Orin NX and Nano configs for R36.4.3
with the new "super" device trees and nvpmodel configuration
files.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
f0d568631b image_types_tegra: include minimal UEFI in tegraflash package
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
27e6aa8398 tegra-helper-scripts: update for R36.4.3
* New argument added to tegraflash.py script
* Minimal UEFI now used for RCM booting

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
407283fe46 tegra-uefi-prebuilt: stage the minimal UEFI binary
needed for R36.4.3 RCM booting.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
56a38007fb edk2-firmware-tegra-minimal: add recipe
with R36.4.3, RCM booting requires the JetsonMinimal build of UEFI.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-19 04:26:13 -07:00
Matt Madison
d2d4ccfbba nvidia-kernel-oot_git: bump SRCREV for R36.4.3 updates
Signed-off-by: Matt Madison <matt@madison.systems>
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
Ilies CHERGUI
8ba317e68e uefi: update to r36.4.3
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2025-04-19 04:26:13 -07:00
Ilies CHERGUI
820100bd70 meta: update recipes R36.4.0/JetPack 6.1 -> 36.4.3/JetPack 6.2
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2025-04-19 04:26:13 -07:00
Matt Madison
6d1dc9997b nvidia-kernel-oot: update branch and SRCREV
- switch to patches-r36.4.0 branch
- update SRCREV with patch additions for the v6.12 kernel

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-18 07:12:32 -07:00
Matt Madison
11b8eeb2e7 libglvnd-tegra: upgrade v1.5.0 -> v1.7.0
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-18 07:07:40 -07:00
Matt Madison
6036255215 egl-gbm: upgrade 1.1.0 -> 1.1.2.1
This version provides the ICD JSON file, so we can remove the
additions we had for providing it.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-18 06:45:31 -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
0b0a278cf1 libv4l2-minimal: fix whitespace in SRC_URI setting
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-18 06:38:33 -07:00
Matt Madison
9672b51026 optee-l4t: fix whitespace in OPENSSL_MODULES setting
Signed-off-by: Matt Madison <matt@madison.systems>
2025-04-18 06:33:39 -07:00
S. Lockwood-Childs
bf56a8470b nvidia-kernel-oot: support external device-tree recipes
When device-tree builds moved to nvidia-kernel-oot, the dtb files built from
the platform dts files were getting stashed into the sysroot area for future
use during image build, but the dts files themselves were *not* saved anywhere.
This broke external device-tree recipes that wanted to include the platform dts
and add modifications.

Add export of dts files into nvidia-kernel-oot sysroot area,
under usr/src/device-tree subdir.

Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
2025-04-12 07:37:54 -07:00
Ilies CHERGUI
b029c54549 optee: add CVE_PRODUCT
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2025-04-07 07:55:04 -07:00
Ilies CHERGUI
9b85f79273 uefi: add CVE_PRODUCT
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2025-04-07 07:55:04 -07:00
Khem Raj
cb3227f5ff edk2-firmware-tegra-36.4.0: Fix build with GCC15/C23
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-01 12:28:29 -07:00
Chad McQuillen
7400e5ef9b tegra-uefi-capsules: fix signing with external server
- 'mv generate_bup_payload.sh doflash.sh' should be
   conditional on TEGRA_SIGNING_EXCLUDE_TOOLS.  Those who
   use external signing servers will set this to "1" which
   skips the generation of generate_bup_payload.sh.  See
   invocations of tegraflash_generate_bupgen_script in
   image_types_tegra.bbclass.

Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
2025-03-17 10:45:58 -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
Matt Madison
2bbc15ae8b p3737-0000-p3701-0004: fix KERNEL_DEVICETREE setting
which missed getting updated for the OOT device trees
that were switched to in L4T R36.x.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-02-21 03:25:04 -08:00
Matt Madison
4d827691dd cuda-cudart: fix runtime dependency for -dev package
which needs to be cuda-crt-dev, not the cuda-crt runtime.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-02-17 06:19:28 -08:00
Matt Madison
90cd8ce87a cuda-nvcc: add runtime dependency on cuda-nvvm for nativesdk
nvcc needs the cicc binary provided in the cuda-nvvm package, so
make sure that gets installed with the host-side SDK tools.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-02-17 06:19:28 -08:00
Khem Raj
3eda822867 linux-yocto-6.6: Delete bbappend
6.6 recipes are gone from core layer

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-12 16:21:30 -08:00
Austin Schuh
0c07ff6ac8 Support zstd compressed tegraflash images
zstd is a lot faster when compressing and decompressing, which helps
with iteration speed.

Use the CONVERSIONTYPES machinery builtin rather than re-implementing it
ourselves here.

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2025-02-08 05:41:00 -08: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
Austin Schuh
0a2689bde3 conf/machine: add configuration for Orin Nano SKU 0003
Note, this is different than the SOM in the orin nano developer kit.

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
2025-01-22 06:29:28 -08:00
Matt Madison
30217c6fc3 meta: switch from virtual/XXX-gcc to virtual/cross-XXX
OE-Core master has udpated how the toolchain virtual providers
are handled, so update the layer accordingly.

This affects the gcc-for-nvcc extra toolchain build we have for
CUDA builds, and a few other recipes that have some explicit
references to the old toolchain virtual/<something> names.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-01-22 06:05:38 -08:00
Matt Madison
afce451aaa tegra-helper-scripts: disable initrd-flash USB instance check
USB instances might not be consistent between the Jetson boot ROM
and the mass storage USB gadget in the running OS, so make the
cross-check of the instance ID optional, and off by default.

This means that when flashing secureboot-enabled devices using
pre-signed binaries, only one target can be flashed at a time
from a given host.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-01-21 04:04:46 -08:00
Matt Madison
65b8d6e0d5 sbsigntool: update from 0.9.4 to 0.9.5
* Drop OpenSSL 3 support patch now included upstream
* Rework OE build integration to be a bit cleaner
* Update to use BBCLASSEXTEND for native, instead of
  having a direct -native recipe

Signed-off-by: Matt Madison <matt@madison.systems>
2025-01-20 07:32:45 -08:00
Pavel Löbl
e65f3be370 espimage: make image size configurable
Signed-off-by: Pavel Löbl <pavel@loebl.cz>
2025-01-19 07:41:42 -08:00
Matt Madison
9083cca978 optee-os: fix buildpaths warning
Fix the change introduced in ff0795338b
to use a relative path, rather than an absolute path, so the full
build path doesn't get embedded in any of OP-TEE packages.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-01-19 07:01:43 -08:00
Matt Madison
18d621753f tegra-helper-scripts: let initrd-flash use USB instance for storage check
Since we can't get the target's serial number out of the CVM EEPROM when
using pre-signed binaries, look for the USB instance in the device path
as a way of cross-checking that a storage device matches the target we're
trying to flash.

Signed-off-by: Matt Madison <matt@madison.systems>
2025-01-19 07:01:43 -08:00