Commit Graph

2654 Commits

Author SHA1 Message Date
Matt Madison
acb5907d2c Add SECURITY.md file
now required by yocto-checklayer.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-28 06:05:17 -08:00
Sid-Ali Teir
602a51557c nvidia-l4t-optee: update libteec version
Signed-off-by: Sid-Ali Teir <sidali.teir@wavelit.io>
2024-11-22 04:54:00 -08:00
Ming Liu
f3770ccd46 nvidia-kernel-oot: fix a wrong variable
Commit 9fa8701606dffc7153e7593f817e8ef8f56d335e:
[ nvidia-kernel-oot: fix a build issue ]

intended to pass ${STAGING_KERNEL_BUILDDIR} to make but mistakenly
passed ${STAGING_KERNEL_DIR} which still referring to kernel source but
not kernel builddir, fix that.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2024-11-12 04:32:50 -08:00
Matt Madison
2b64044bc8 linux-yocto_6.10: add config fragment for R8169
The OOT R8168 driver does not get built for 6.10 kernels,
so add the R8169 driver (which also covers the 8168) to
to the kernel build, so we have a driver available for
the Ethernet interface on the Orin Nano dev kit carrier.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 10:01:23 -08:00
Matt Madison
e1b28ba995 nvidia-kernel-oot: fix build failure with 6.10 kernel
Add a patch for the conftest script so it correctly detects one
of the 6.10 changes even when 'linux' appears in the directory path
during a build, as ours usually do.

Also renumber the patches so the order of application is clearer.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 09:02:14 -08:00
Matt Madison
a42af820e4 image_types_tegra: make the ESP partition optional
With the Jetson minimal UEFI, no application is loaded from the
ESP partition by the bootloader, so allow for the possibility
that someone has removed the ESP from the storage layout.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 07:06:40 -08:00
Matt Madison
2b18e164e9 tegra-common: add TEGRA_UEFI_MINIMAL support
- Default to off
- Add the needed boot control overlay when enabled

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 07:06:40 -08:00
Matt Madison
70f85df34b edk2-firmware-tegra: add support for JetsonMinimal builds
The AGX Orin platform supports a minimal UEFI for booting
off its internal eMMC. Add support for a TEGRA_UEFI_MINIMAL
variable, which when set to a boolean true value, builds
this minimal configuration instead of the normal UEFI.

See the "miniUEFI Support" section in the Jetson Linux developer
guide for more information about support, restrictions, etc.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 07:06:40 -08:00
Matt Madison
b26b6ff09b setup-nv-boot-control: remove ESP mount dependency
The ESP partition is no longer required for setting up the
boot control configuration, so we can remove that dependency.
We may also want to remove the esp.mount unit, or move that
to an optional fstab addition, at some point in the future.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 07:06:40 -08:00
Matt Madison
0a367f0b53 tegra-helper-scripts: use 'sparse update' of SPI flash by default
The tegraflash.py script takes a '--sparseupdate' option that causes
it to update only changed partitions in the SPI flash. Enable that
by default in the flash helper script, and add an --erase-spi option
to force full erasure of the SPI flash, in case that's needed.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-11 07:06:40 -08:00
Ming Liu
cfe0220947 nvidia-kernel-oot: fix a build issue
A build issue was observed as follows:
| .../kernel-source/Makefile:672: include/config/auto.conf: No such file or directory
| make[1]: *** [Makefile:226: __sub-make] Error 2
| make[1]: Leaving directory '.../kernel-source'
| make: *** [Makefile:63: hwpm] Error 2

it's not always reproduced, but occasionally happens when we add
patches to nvidia-kernel-oot.

The root cause of this problem is in nvidia-kernel-oot's Makefile, it
goes into ${KERNEL_SRC} instead of ${STAGING_KERNEL_DIR} to build,
which is wrong when building modules/dtbs, because there are no config
files generated in kernel source.

Let's change ${KERNEL_SRC} to ${STAGING_KERNEL_DIR}.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2024-11-11 06:36:05 -08:00
Chad McQuillen
67637b4a0d tegra-kernel: fix sign_bootimg
- This matches the behavior in classes/image_types_cboot.bbclass
  whereby the signed kernel image is copied over the top of the
  original unsigned kernel image.

Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:29:34 -08:00
Matt Madison
4910dd248b tegra-common: add TEGRA_FLASH_CHECK variables
Starting with the BOARDID and BOARDSKU variables.
For our purposes, they need to be fixed at build time,
and if they don't match the actual target machine, we'll
get difficult-to-diagnose boot failures.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Matt Madison
ffd3942f6b tegra-flashvars: add support for TEGRA_FLASH_CHECK variables
which we can use to prevent mis-flashing when the selected
machine configuration doesn't match the actual target hardware.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Matt Madison
3e0d4933d6 tegra-helper-scripts: add board ID and SKU checks to flash helper
Have the helper script cross-check the build-time board ID and SKU
settings, if available, against the actuals read from the CVM EEPROM,
and error out, rather than flashing the wrong boot firmware.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Matt Madison
c7fc26f983 tegra-helper-scripts: do not set default chip SKU in tegra-flash-helper
The default chip SKU should now be getting passed via the
TEGRA_FLASHVAR_CHIP_SKU setting in the machine configuration,
so do not supply a probably-incorrect default  in the helper
script. Instead, report an error and exit.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Matt Madison
de2553df58 conf/machine: refactor and add CHIP_SKU defaults
* Move the mostly-common Orin NX settings to a new orin-nx.inc file
* Set TEGRA_FLASHVAR_CHIP_SKU for machines that differ from the
  common default, derived from the chip SKU referenced in the
  TEGRA_BUPGEN_SPECS setting
* Convert jetson-agx-orin-devkit-industrial config to using the
  agx-orin.inc include file

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Matt Madison
20da6a250b tegra-common: add CHIP_SKU to TEGRA_FLASHVARS
so we can add a default setting for this variable into
machine configuration files.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Matt Madison
009e202587 tegra-common: fix TEGRA_FLASHVARS setting
* Drop obsolete (t19x-specific) entries
* Add missing RAMCODE entry

Signed-off-by: Matt Madison <matt@madison.systems>
2024-11-10 06:16:36 -08:00
Martin Jansa
11772a0f60 tegra-uefi-capsules: add dependency on lz4-native
* HOSTTOOLS is now using lz4 instead of lz4c since:
  https://git.openembedded.org/openembedded-core/commit/?id=fe167e082cbde1c6d186ecdda531abef610ac2ac
  and tegra-uefi-capsules do_compile is failing with:
  tegra-uefi-capsules/35.6.0/recipe-sysroot-native/usr/lib/python3.13/subprocess.py", line 1966, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'lz4c'
  tegra-uefi-capsules/35.6.0/temp/run.do_compile.2229307:369 exit 1 from './doflash.sh'

* I've seen this only with scarthgap-l4t-r35.x branch modified to build
  for walnascar (master), but it looks like the same is needed in master
  branch (which has surprisingly to me older version 36.4.0 while
  scarthgap-l4t-r35.x has 36.6.0, but I don't really use any nvidia
  MACHINEs, only sometimes building world for them, so maybe it's
  expected)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2024-11-09 06:25:05 -08:00
Martin Jansa
76bc8e302b sbsigntool: Fix Upstream-Status format
* drop the one which says 'Inappropriate [Backport]'
  as it's either Backport or Inappropriate, but cannot be both

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2024-11-06 06:16:01 -08:00
William Cheng
605e62d288 Fix device tree file check in nvidia-kernel-oot-dtb
Signed-off-by: William Cheng <shihuac@amazon.com>
2024-11-02 05:34:40 -07:00
Kurt Kiefer
87a914b530 linux-yocto: add tegra support for version 6.10
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Kurt Kiefer
48dd43b15c linux: linux-yocto: move patches into version-specific directory
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Kurt Kiefer
3a38168363 linux: move tegra-specific kernel functions to include file
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Kurt Kiefer
944504cd13 linux: linux-yocto: add rtw88 support
This change removes rtl8822 from nvidia-kernel-oot to switch to the
driver and firmware from linux-yocto and linux firmware. It includes
updates to tegra-wifi to pull in the needed packages to the image.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Kurt Kiefer
9ba6b25333 linux: linux-yocto: add support as a provider for the tegra kernel
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Kurt Kiefer
280460dca8 nvidia-kernel-oot: support linux-yocto as virtual/kernel provider
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07: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
Ilies CHERGUI
74fdc57c67 libnpp: update DEVSUM for x86_64 platform
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2024-10-29 03:10:56 -07:00
Ilies CHERGUI
5f4c73da8f libcublas: update DEVSUM for x86_64 platform
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2024-10-29 03:10:56 -07:00
Ilies CHERGUI
c5f53f099c tegra-helper-scripts: bring back FSIFW to the BINSARGS variable
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2024-10-28 10:17:22 -07:00
William Cheng
e1be4231f1 Replace deprecated CVE_CHECK_IGNORE with CVE_STATUS
Signed-off-by: William Cheng <shihuac@amazon.com>
2024-10-28 08:15:31 -07:00
Matt Madison
3182a28114 README.md: update for L4T R36.4.0/JetPack 6.1
Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
3d76e5a0c0 gstreamer1.0-plugins-tegra: add nvipcpipeline, nvunixfd
now that we build those from sources.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
1a240d32e7 gstreamer1.0-plugins-tegra-binaryonly: update source-built exclusions
We now have recipes for the nvipcpipeline and nvunixfd plugins, so remove
them from the binary-only package.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
a0db541b63 gstreamer1.0-plugins-nvunixfd: add recipe
This is an NVIDIA-modified version of the upstream unixfd
plugin, added in L4T R36.4.0.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
0c79e86307 gstreamer1.0-plugins-nvipcpipeline: add recipe
This is an NVIDIA-modified version of the upstream ipcpipeline
plugin, added in L4T R36.4.0.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
LANGLOIS Florian
6bea45a632 tegra-cuda-utils: add recipe
Signed-off-by: LANGLOIS Florian <chamois94@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
a39908e635 nvidia-drm-loadconf: add fbdev=1 to nvidia-drm options
to align with what's in the corresponding config file in
stock L4T.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
610ff567a0 libnvvpi3: add libnpp to runtime dependencies
Looks like VPI is dynamically loading one of the libnpp libraries
at runtime, rather than linking against it, so make sure it gets
pulled in.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
c82cd088f6 tensorrt-plugins-prebuilt: move cudnn, libcublas to RDEPENDS
The plugins now dynamically load symbols from those libraries at
runtime.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -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
ae11269456 tegra-helper-scripts: fixes for initrd flashing
* Update subdirectory name for the RCM boot blob
* Set variable now expected by odmsign.func

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Ilies CHERGUI
0a1354b7d8 nsight-systems: update to 2024.5.4.34-245434855735v0
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
2024-10-26 08:15:33 -07:00
Matt Madison
40bca8a928 tegra-configs: update container drivers.csv file
Driver library names updated from 540.3 to 540.4.

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
78a1abfd5a l4t-graphics-demos: refresh build patches for L4T R36.4.0
* Updates for wayland-related changes
* Drop NV12 blocklinear support in weston-dmabuf-formats due to missing
  source file

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
1d7352e011 gstreamer1.0-plugins-nvvideosinks: drop obsolete patch
Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00