Commit Graph

2323 Commits

Author SHA1 Message Date
Matt Madison
f86a68bf5a image_types_tegra.bbclass: correct typo in copy_dtbs function
When copying out of ${DEPLOY_DIR_IMAGE}, use the basename of the
DTB file.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-05 13:26:20 -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
Jose Quaresma
1473438861 gstreamer1.0-plugins-nvvideo4linux2-1.14.0-r35.4.1: restore patch headers
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2023-09-04 04:17:24 -07:00
Ilies CHERGUI
a5740160e8 README.md: update for L4T R35.4.1
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Jose Quaresma
9885ee77db edk2-firmware-tegra: refresh patches
Split the patches in groups and apply on the corresponding directory.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2023-09-02 05:04:12 -07:00
Matt Madison
fe701c2a12 conf/machine: fix DTB overlay settings for p3768 carrier
There is a DTB overlay for the p3768 carrier, which should be
included for Orin NX/Nano targets that use it.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
97c5b1d940 tegra-redundant-boot-rollback: drop TNSPEC_MACHINE length check
The maximum TNSPEC length was raised from 64 to 128 characters with
the L4T R35.x series, so there should be plenty of room for longer
TNSPEC_MACHINE names.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Ilies CHERGUI
81092d743f conf/machine: add Jetson Orin AGX Industrial support
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Matt Madison
b5b3ae2a5a libnvvpi2: update from version 2.2.6 -> 2.3.9
- add cupva to the dependency list
- update vpi2_pva_auth_allowlist file
- rename vpi2_pva_auth_allowlist firmware

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Ilies CHERGUI
9f4f7d200e cupva: add recipe
to install cupva_host libraries

Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Ilies CHERGUI
0924501b2e gstreamer: update plugins recipes for L4T R35.4.1
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
381a6ed8d0 libgstnvcustomhelper: add recipe
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Ilies CHERGUI
b9f39959c7 tegra-mmapi-samples: fix build issues
- refresh patch
- update License
- add vulkan as dependency

Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Matt Madison
0be6e2b4c3 edk2-firmware-tegra: update to r35.4.1
removing the patch that has made it upstream.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
c0e618acc6 image_types_tegra.bbclass: updates for L4T R35.4.1
* Stock L4T external flash layouts now use a rewrite
  for inserting the size, in sectors of the external
  device
* Adjust the boot control overlays when UEFI signing
  is enabled so that BUP payloads use the update keys
  instead of the default keys
* Add rewrites for flash layout fields added for Orin
  industrial modules
* Add firmware new for Orin industrial modules to the
  BOOTFILES list

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
2d3936fd8e tegra-bootfiles: updates for L4T R35.4.1
* Add badpage file creation for Orin industrial modules,
  and add the new firmware for it to the list of boot files
* Remove the resizing of kernel/kernel-dtb partitions in
  external flash layouts; the layouts in R35.4.1 have been
  updated
* Add support for using the generic flash_l4t_external layout
  on t23x platforms by renaming the kernel/kernel-dtb partitions

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
8ae10e65bd tegra-uefi-keys: add support for update keys
new to R35.4.1, and used in BUP payloads.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
661de20078 tegra-helper-scripts: updates for L4T R35.4.1
* Drop all --user_key references, which are obsolete
* Add partition renaming function to nvflashxmlparse, so
  external flash layouts that use the t19x naming for
  kernel and kernel-dtb partitions can be used with t23x
  platforms
* Drop --boot_chain option from tegraflash.py invocations
* Add support for inserting new firmware in the boot binaries
  for the industrial Orin module

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
6b38a3a0bb tegra-flashvars: update Orin NX flashvars files
In L4T R35.4.1, the BPMP firmware for the Orin NX is
different.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
758db969f8 conf/machine: update KERNEL_ARGS for all machines
adding 'nospectre_bhb', to align with L4T R35.4.1 settings.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
8a9ba2aa69 l4t-graphics-demos: update R35.3.1 -> R35.4.1
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Matt Madison
ab1aea7359 tegra-mmapi: update R35.3.1 -> R35.4.1
removing the header for the obsolete nvbuf_utils library.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
bf5a944dfe tegra-configs: update l4t.csv for R35.4.1
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Dan Walkes <danwalkes@trellis-logic.com>
2023-09-02 05:04:12 -07:00
Matt Madison
d46dac4757 optee: update NVIDIA optee recipes 3.19.0 -> 3.21.0 for L4T R35.4.1
Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 05:04:12 -07:00
Matt Madison
d90c9aea71 meta: update BSP recipes from L4T R35.3.1 -> R35.4.1
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-09-02 05:04:12 -07:00
Matt Madison
a2c46d742c gcc-for-nvcc-cross-canadian: fix install name for sdk build
Fix name conflicts for the cross-canadian gcc and g++ compilers by
adding the version number suffix to the binary name.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2023-09-02 04:26:13 -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
ec47fbe6ac cuda.bbclass: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
That's the variable that includes it, while DEBUG_FLAGS gets it
indirectly.  So do other variables that might get used with the
older compiler, so removing it from the original source variable
will fix those cases, too.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-23 10:52:27 -07:00
Matt Madison
b6f194a761 cuda.bbclass: update EXTRA_OECMAKE setting
to define CUDA_NVCC_FLAGS as a list, since the old-school FindCUDA
module treats that variable as a list.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-23 10:51:17 -07:00
Matt Madison
01bfce30c3 p3768-0000-p3767-0004: set TNSPEC_BOOTDEV for Orin Nano 4GB
rather than setting TNSPEC_BOOTDEV_DEFAULT. Otherwise, we won't
make use of the external flash layout.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-23 05:13:46 -07:00
Matt Madison
58e27cb8e9 nvdisp-init: refresh patch with update from L4T R35.3.1
Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-22 05:20:29 -07:00
Samuli Piippo
4c55df8dc6 libdrm-nvdc: set DEBIAN_NOAUTONAME also for source package
This is needed to avoid spdx from failing during sdk build with:
  Exception: FileNotFoundError: [Errno 2] No such file or directory: 'tmp/deploy/spdx/by-hash/sstate:libdrm-nvdc:armv8a_tegra-poky-linux:35.3.1-20230319081403:r0:armv8a_tegra:11:/libdrm-src.spdx.json

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2023-08-22 04:08:58 -07:00
Samuli Piippo
29e13ae11c libdrm-nvdc: set DEBIAN_NOAUTONAME also for license package
This is needed to avoid spdx from failing with:

ERROR: libdrm-nvdc-35.3.1-20230319081403-r0 do_create_spdx: The recipe libdrm-nvdc is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
  /home/qt/work/build/build/tmp/deploy/spdx/armv8a_tegra/packages/libdrm-lic.spdx.json
    (matched in manifest-armv8a_tegra-libdrm.create_spdx)
Please verify which recipe should provide the above files.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2023-08-21 06:28:19 -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
7bd22255e5 systemd: drop bbappend
The latest systemd's EFI support assumes you're using the systemd EFI stub
when booting, which we aren't, so drop the bbappend that turns it on.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 08:35:43 -07:00
Matt Madison
8a7579608c Revert "cuda-samples: remove UnifiedMemoryStreams sample from build"
This reverts commit 1e62f9ac56.

Now that a workaround is in place for glibc header compatibility problem,
we can put back the problematic sample.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 05:43:14 -07:00
Matt Madison
35e0cb940b tegra-mmapi-samples: fix flags passed to nvcc
* Add CUDA_NVCC_PATH_FLAGS to the NVCCFLAGS make variable, to pick
  up flags for the compatibility/workaround header
* Fix a long-standing typo in the GENCODE_FLAGS setting

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 05:43:14 -07:00
Matt Madison
52f994fbb3 classes: update cuda bbclasses for nvcc/glibc 2.38 workaround
* Add flags for pointing to the compatibility/workaround header tree
  to CUDA_NVCC_PATH_FLAGS in cuda.bbclass
* Add the dependency on cuda-compatibility-workaround in cuda-gcc.bbclass

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 05:43:14 -07:00
Matt Madison
981245c8bf cuda-compatibility-workarounds: add recipe
to install a header file that makes nvcc compilations compatible with
the glibc 2.38 for aarch64 targets. The path to this header is added
as an -isystem option passed via -Xcompiler on nvcc invocations, so
it overrides the glibc default, bypassing references to gcc
built-in SIMD types that the cicc compiler doesn't define.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 05:43:14 -07:00
Matt Madison
1e62f9ac56 cuda-samples: remove UnifiedMemoryStreams sample from build
With the introduction of glibc 2.38 in OE-Core, the glibc header
files have been updated to assume the existence of some additional
built-in types for SIMD on aarch64 systems, such as __Float32x4_t.
While gcc has these types built in, the CUDA cicc compiler does not,
and this causes compilation failures of the UnifiedMemoryStreams
sample.

For now, just remove it from the build, until a suitable fix or
workaround can be found.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-19 08:40:47 -07:00
Matt Madison
db98637327 jetson-orin-nano-devkit-nvme: set TNSPEC_BOOTDEV instead of TNSPEC_BOOTDEV_DEFAULT
so that the external flash layout gets populated in the tegraflash package.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-19 04:57:51 -07:00
Joe Kale
eee96b8a26 Adds deploy task for capsules
Deploys capsules to DEPLOY_DIR_IMAGE

Signed-off-by: Joe Kale <jkale@precisionplanting.com>
2023-08-19 03:44:14 -07:00
Chad McQuillen
bed1b494c1 uefi_common.func.in: fix efi variable existence check
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
2023-08-19 03:43:26 -07:00
Matt Madison
6b32272a2d Revert "systemd: update bbappend to fix dependency for efi"
This reverts commit b70f2c34e2.
No longer needed since the upstream recipe has been fixed.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-18 10:34:55 -07:00
Matt Madison
b70f2c34e2 systemd: update bbappend to fix dependency for efi
A temporary workaround until the systemd recipe in OE-Core
is fixed to correct the build-time dependency in PACKAGECONFIG[efi].

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-04 06:11:15 -07:00
Matt Madison
e793dc2151 tegra-uefi-capsules: add skip 'buildpaths' package_qa check
Anything that embeds UEFI binaries has to do this, until the
UEFI build can be fixed.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-04 05:06:26 -07:00
Chad McQuillen
eb8684b80a jetson-xavier-nx-devkit-emmc: update TEGRA_BUPGEN_SPECS
to match L4T's specs.

Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
2023-08-04 04:56:17 -07:00
Chad McQuillen
11e7e78bdf setup-nv-boot-control_1.0.bb: add script to set OsIndications
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
2023-08-04 04:56:17 -07:00
Chad McQuillen
a3f04cc7d6 tools/setup-nv-boot-control: factor out common logic
from setup-nv-boot-control.sh into uefi_common.func.in for other
scripts that will need to set uefi variables.

- Changed interface to set_ufi_var to require guid and
  added an optional parameter to control 'write once'
  behavior for static variables.

Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
2023-08-04 04:56:17 -07:00