meta: update recipes R35.5.0/JetPack 5 -> R36.3.0/JetPack 6

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2024-05-03 08:38:13 -07:00
parent 26f6e9401d
commit 617aa8c815
227 changed files with 1379 additions and 1855 deletions

View File

@@ -55,7 +55,8 @@ LNXFILE ?= "boot.img"
LNXSIZE ?= "83886080"
TEGRA_RECOVERY_KERNEL_PART_SIZE ??= "83886080"
RECROOTFSSIZE ?= "314572800"
TEGRA_EXTERNAL_DEVICE_SECTORS ??= "122159104"
TEGRA_EXTERNAL_DEVICE_SECTORS ??= "119537664"
TEGRA_INTERNAL_DEVICE_SECTORS ??= "119537664"
IMAGE_TEGRAFLASH_FS_TYPE ??= "ext4"
IMAGE_TEGRAFLASH_ROOTFS ?= "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${IMAGE_TEGRAFLASH_FS_TYPE}"
@@ -200,11 +201,13 @@ tegraflash_create_flash_config() {
-e"s,EKSFILE,eks.img," \
-e"s,RECNAME,recovery," -e"s,RECSIZE,${TEGRA_RECOVERY_KERNEL_PART_SIZE}," -e"s,RECDTB-NAME,recovery-dtb," \
-e"/RECFILE/d" -e"/RECDTB-FILE/d" -e"/BOOTCTRL-FILE/d" \
-e"/IST_UCODE/d" -e"/IST_BPMPFW/d" -e"/IST_ICTBIN/d" -e"/IST_TESTIMG/d" -e"/IST_RTINFO/d" \
-e"s,APPSIZE,${ROOTFSPART_SIZE}," \
-e"s,RECROOTFSSIZE,${RECROOTFSSIZE}," \
-e"s,APPUUID_b,," -e"s,APPUUID,," \
-e"s,ESP_FILE,esp.img," -e"/VARSTORE_FILE/d" \
-e"s,NUM_SECTORS,${TEGRA_EXTERNAL_DEVICE_SECTORS}," \
-e"s,EXT_NUM_SECTORS,${TEGRA_EXTERNAL_DEVICE_SECTORS}," \
-e"s,INT_NUM_SECTORS,${TEGRA_INTERNAL_DEVICE_SECTORS}," \
"$infile" \
> "$destfile"
}
@@ -212,20 +215,13 @@ tegraflash_create_flash_config() {
copy_dtbs() {
local destination=$1
local dtb dtbf
for dtb in ${KERNEL_DEVICETREE}; do
dtbf=`basename $dtb`
if [ -e $destination/$dtbf ]; then
bbnote "Overwriting $destination/$dtbf with KERNEL_DEVICETREE content"
rm -f $destination/$dtbf $destination/$dtbf.signed
fi
bbnote "Copying KERNEL_DEVICETREE entry $dtbf to $destination"
cp -L "${DEPLOY_DIR_IMAGE}/$dtbf" $destination/$dtbf
if ${TEGRA_UEFI_USE_SIGNED_FILES}; then
cp -L "${DEPLOY_DIR_IMAGE}/$dtbf.signed" $destination/$dtbf.signed
fi
done
if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then
for dtb in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' \) -printf '%P\n' | sort); do
for dtbcand in ${KERNEL_DEVICETREE}; do
dtb=$(find "${EXTERNAL_KERNEL_DEVICETREE}" -name "$(basename $dtbcand)" -printf '%P' 2>/dev/null)
if [ -z "$dtb" ]; then
bbwarn "Not found in ${EXTERNAL_KERNEL_DEVICETREE}: $dtbcand"
continue
fi
dtbf=`basename $dtb`
if [ -e $destination/$dtbf ]; then
bbnote "Overwriting $destination/$dtbf with EXTERNAL_KERNEL_DEVICETREE content"
@@ -237,13 +233,26 @@ copy_dtbs() {
cp -L "${DEPLOY_DIR_IMAGE}/$dtb.signed" $destination/$dtbf.signed
fi
done
else
for dtb in ${KERNEL_DEVICETREE}; do
dtbf=`basename $dtb`
if [ -e $destination/$dtbf ]; then
bbnote "Overwriting $destination/$dtbf with KERNEL_DEVICETREE content"
rm -f $destination/$dtbf $destination/$dtbf.signed
fi
bbnote "Copying KERNEL_DEVICETREE entry $dtbf to $destination"
cp -L "${DEPLOY_DIR_IMAGE}/$dtbf" $destination/$dtbf
if ${TEGRA_UEFI_USE_SIGNED_FILES}; then
cp -L "${DEPLOY_DIR_IMAGE}/$dtbf.signed" $destination/$dtbf.signed
fi
done
fi
}
copy_dtb_overlays() {
local destination=$1
local dtb dtbf extdtb
local extraoverlays="${@d.getVar('OVERLAY_DTB_FILE').replace(',', ' ')}"
local extraoverlays="${TEGRA_DCE_OVERLAY} ${@d.getVar('OVERLAY_DTB_FILE').replace(',', ' ')}"
shift
if [ -n "${IMAGE_TEGRAFLASH_INITRD_FLASHER}" ]; then
extraoverlays="$extraoverlays L4TConfiguration-rcmboot.dtbo"
@@ -294,6 +303,7 @@ tegraflash_populate_package() {
if [ "${SOC_FAMILY}" = "tegra234" ]; then
cp ${STAGING_DATADIR}/tegraflash/bpmp_t234-*.bin .
cp ${STAGING_DATADIR}/tegraflash/tegra234-*.dts* .
cp ${STAGING_DATADIR}/tegraflash/fuse_t234.xml .
cp ${STAGING_DATADIR}/tegraflash/tegra234-bpmp-*.dtb .
fi
@@ -434,7 +444,7 @@ EOF
buptype_arg=""
fi
cat <<EOF >> $outfile
MACHINE=${TNSPEC_MACHINE} FAB="$fab" BOARDSKU="$boardsku" BOARDREV="$boardrev" CHIP_SKU="$chipsku" ./tegra-flash-helper.sh --bup $buptype_arg ./flash-stripped.xml.in ${DTBFILE} ${EMMC_BCTS} ${ODMDATA} "\$@"
MACHINE=${TNSPEC_MACHINE} FAB="$fab" BOARDSKU="$boardsku" BOARDREV="$boardrev" CHIP_SKU="$chipsku" ./tegra-flash-helper.sh --sign --bup $buptype_arg ./flash-stripped.xml.in ${DTBFILE} ${EMMC_BCTS} ${ODMDATA} "\$@"
EOF
done
chmod +x $outfile

View File

@@ -3,11 +3,12 @@ L4T_BSP_NAME ??= "release"
L4T_SRCS_NAME ??= "sources"
L4T_BSP_PREFIX ??= "Jetson"
L4T_VERSION ?= "35.5.0"
L4T_VERSION ?= "36.3.0"
L4T_LIB_VERSION ?= "540.3.0"
# Version (date-time stamp) suffixes for nvidia-l4t-* packages
# in the package feeds.
L4T_BSP_DEB_DEFAULT_VERSION = "20240219203809"
L4T_BSP_DEB_DEFAULT_VERSION = "20240424200557"
L4T_BSP_DEB_VERSION ?= "${L4T_BSP_DEB_DEFAULT_VERSION}"
L4T_BSP_DEB_ORIG_VERSION = ""
L4T_BSP_DEB_PACKAGES_USING_ORIG_VERSION = ""
@@ -27,3 +28,5 @@ def l4t_release_dir(d):
L4T_URI_BASE ?= "https://developer.download.nvidia.com/embedded/L4T/${@l4t_release_dir(d)}/${L4T_BSP_NAME}"
L4T_OVERLAY_URI_BASE ?= "https://developer.download.nvidia.com/embedded/L4T/${@l4t_release_dir(d)}"
L4T_BSP_SHARED_SOURCE_DIR = "${TMPDIR}/work-shared/L4T-${L4T_BSP_ARCH}-${PV}-${PR}/Linux_for_Tegra"

View File

@@ -6,7 +6,7 @@ inherit l4t_bsp
L4T_DEB_COMP_DEFAULT = "main"
L4T_DEB_COMP ?= "${L4T_DEB_COMP_DEFAULT}"
L4T_X86_DEB_CLASS ??= "x86_64/focal"
L4T_X86_DEB_CLASS ??= "x86_64/jammy"
def l4t_deb_src_uri(d):
def generate_uris(d, debclass, deblist):

View File

@@ -92,7 +92,7 @@ PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
XSERVER ?= "xserver-xorg xf86-input-evdev xserver-xorg-video-nvidia xserver-xorg-module-libwfb"
CUDA_VERSION ?= "11.4"
CUDA_VERSION ?= "12.2"
CUDA_ARCHITECTURES ?= "${TEGRA_CUDA_ARCHITECTURE}"
CUDA_NVCC_ARCH_FLAGS ?= "--gpu-architecture=compute_${TEGRA_CUDA_ARCHITECTURE} --gpu-code=sm_${TEGRA_CUDA_ARCHITECTURE}"

View File

@@ -8,7 +8,7 @@ require conf/machine/include/arm/arch-armv8-2a.inc
SERIAL_CONSOLES ?= "115200;ttyTCU0"
KERNEL_MODULE_AUTOLOAD ?= "nvmap nvgpu pwm-fan ina3221 nvidia-drm"
KERNEL_MODULE_AUTOLOAD ?= "nvmap nvgpu pwm-fan ina3221"
NVIDIA_CHIP = "0x23"

View File

@@ -6,7 +6,7 @@ LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde"
TEGRA_SRC_SUBARCHIVE = "Linux_for_Tegra/source/public/atf_src.tbz2"
require recipes-bsp/tegra-sources/tegra-sources-35.5.0.inc
require recipes-bsp/tegra-sources/tegra-sources-36.3.0.inc
SRC_URI += "file://0001-workaround-to-fix-ld.bfd-warning-binutils-version-2..patch"

View File

@@ -1,4 +1,4 @@
From 98915ba48a31a528ea24636604981c3d521cc75b Mon Sep 17 00:00:00 2001
From 4efea9629f2fa8eeed1ff804ea255c1e914dbff8 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Tue, 3 Jan 2023 10:20:22 -0800
Subject: [PATCH] Convert BUP_generator.py to Python3
@@ -6,15 +6,17 @@ Subject: [PATCH] Convert BUP_generator.py to Python3
Ran it through 2to3 for the conversion, then
made some additional fixes not caught by the tool.
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Matt Madison <matt@madison.systems>
---
bootloader/BUP_generator.py | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
bootloader/BUP_generator.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
Index: Linux_for_Tegra/bootloader/BUP_generator.py
===================================================================
--- Linux_for_Tegra.orig/bootloader/BUP_generator.py
+++ Linux_for_Tegra/bootloader/BUP_generator.py
diff --git a/bootloader/BUP_generator.py b/bootloader/BUP_generator.py
index fde0752..0e2efb0 100755
--- a/bootloader/BUP_generator.py
+++ b/bootloader/BUP_generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
@@ -30,7 +32,7 @@ Index: Linux_for_Tegra/bootloader/BUP_generator.py
import copy
import sys
@@ -450,7 +450,7 @@ class inspect_update_payload(update_payl
@@ -450,7 +450,7 @@ class inspect_update_payload(update_payload):
self.raw_extract_bin_list = arg.inspect_extract_bin_list
self.blob_header_tuple = struct.unpack(self.header_packing, self.blob_file.read(struct.calcsize(self.header_packing)))
@@ -39,7 +41,7 @@ Index: Linux_for_Tegra/bootloader/BUP_generator.py
# # Detect if optional accessory field (8 bytes) is present
if self.blob_header_dict['header_size'] > struct.calcsize(self.header_packing):
@@ -493,7 +493,7 @@ class inspect_update_payload(update_payl
@@ -493,7 +493,7 @@ class inspect_update_payload(update_payload):
for idx, blob_entry in enumerate(self.blob_entry_list):
try:
blob_entry_tuple = struct.unpack(self.entry_packing, self.blob_file.read(struct.calcsize(self.entry_packing)))
@@ -48,7 +50,7 @@ Index: Linux_for_Tegra/bootloader/BUP_generator.py
self.blob_entry_list[idx] = blob_entry_dict
for n in range(len(self.blob_entry_max_width_list)):
@@ -578,8 +578,8 @@ class inspect_update_payload(update_payl
@@ -578,8 +578,8 @@ class inspect_update_payload(update_payload):
part_name_list = list()
spec_info_list = list()
for blob_entry in self.blob_entry_list:
@@ -59,7 +61,7 @@ Index: Linux_for_Tegra/bootloader/BUP_generator.py
if tnspec == "":
continue
@@ -609,16 +609,16 @@ class inspect_update_payload(update_payl
@@ -609,16 +609,16 @@ class inspect_update_payload(update_payload):
# Verify every entry in spec_info_list must have an entry in part_name_list
valid = True
for part in part_name_list:
@@ -79,7 +81,7 @@ Index: Linux_for_Tegra/bootloader/BUP_generator.py
break
if (found == False):
valid = False
@@ -639,7 +639,7 @@ class inspect_update_payload(update_payl
@@ -639,7 +639,7 @@ class inspect_update_payload(update_payload):
print ("Saving partitions to \"" + out_path + "\"")
print ("File names are of format \"<part_name>[" + out_delim + "<op_str>][" + out_delim + "<tnspec>]" + out_ext + "\"")
@@ -88,7 +90,7 @@ Index: Linux_for_Tegra/bootloader/BUP_generator.py
for blob_entry in self.blob_entry_list:
part_name = str(blob_entry['part_name'].decode('utf-8')).strip(' \t\n\0')
@@ -660,7 +660,7 @@ class inspect_update_payload(update_payl
@@ -660,7 +660,7 @@ class inspect_update_payload(update_payload):
if (part_name in extract_bin_set) or ("all" in extract_bin_set):
# Binary will be saved to <OUT>/<part_name>[_<op_str>][_<tnspec>].raw.bin

View File

@@ -1,17 +1,20 @@
From 83e9fa94ea79bc00d0ac9bfc8e003c5335a29aef Mon Sep 17 00:00:00 2001
From 3762e9e52304748a9a2d5617f58f259235149e24 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Wed, 22 Jan 2020 06:35:59 -0800
Subject: [PATCH 4/4] Convert gen_tos_part_img.py to Python3
Subject: [PATCH] Convert gen_tos_part_img.py to Python3
Upstream-Status: Inapproprate [OE specific]
Signed-off-by: Matt Madison <matt@madison.systems>
%% original patch: 0004-Convert-gen_tos_part_img.py-to-Python3.patch
---
nv_tegra/tos-scripts/gen_tos_part_img.py | 42 +++++++++++++-----------
1 file changed, 23 insertions(+), 19 deletions(-)
nv_tegra/tos-scripts/gen_tos_part_img.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Index: Linux_for_Tegra/nv_tegra/tos-scripts/gen_tos_part_img.py
===================================================================
--- Linux_for_Tegra.orig/nv_tegra/tos-scripts/gen_tos_part_img.py
+++ Linux_for_Tegra/nv_tegra/tos-scripts/gen_tos_part_img.py
diff --git a/nv_tegra/tos-scripts/gen_tos_part_img.py b/nv_tegra/tos-scripts/gen_tos_part_img.py
index 2bc5113..350c910 100755
--- a/nv_tegra/tos-scripts/gen_tos_part_img.py
+++ b/nv_tegra/tos-scripts/gen_tos_part_img.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3

View File

@@ -1,16 +1,18 @@
From db2149be6f91e529104a695924e520af9f8831aa Mon Sep 17 00:00:00 2001
From 5f10694000eac2e8110a50a162c7f26639ac0b3f Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Thu, 29 Feb 2024 13:03:50 +0000
Subject: [PATCH] Update tegra python scripts for Python3
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
---
...ate-tegra-python-scripts-for-Python3.patch | 126 ++++++++++++++++++
bootloader/tegraflash_impl_t234.py | 7 +-
bootloader/tegraflash_internal.py | 13 +-
bootloader/tegrasign_v3_internal.py | 5 +-
4 files changed, 139 insertions(+), 12 deletions(-)
bootloader/tegrasign_v3_internal.py | 7 +-
4 files changed, 140 insertions(+), 13 deletions(-)
create mode 100644 0001-Update-tegra-python-scripts-for-Python3.patch
diff --git a/0001-Update-tegra-python-scripts-for-Python3.patch b/0001-Update-tegra-python-scripts-for-Python3.patch
@@ -146,15 +148,15 @@ index 0000000..609099d
+2.34.1
+
diff --git a/bootloader/tegraflash_impl_t234.py b/bootloader/tegraflash_impl_t234.py
index ed0cb64..bcf5977 100644
index 7668f51..edee191 100644
--- a/bootloader/tegraflash_impl_t234.py
+++ b/bootloader/tegraflash_impl_t234.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
#
# Copyright (c) 2014-2023, NVIDIA Corporation. All Rights Reserved.
# Copyright (c) 2014-2024, NVIDIA Corporation. All Rights Reserved.
#
@@ -1383,7 +1384,7 @@ class TFlashT23x_Base(object):
@@ -1477,7 +1478,7 @@ class TFlashT23x_Base(object):
bpmp_dtb_in_layout = get_partition_filename('bpmp_fw_dtb', 'type')
if (values['--bins']):
@@ -163,7 +165,7 @@ index ed0cb64..bcf5977 100644
if m:
bpmp_dtb = m.group(1)
if bpmp_dtb == None and bpmp_dtb_in_layout == None:
@@ -2710,7 +2711,7 @@ class TFlashT23x_Base(object):
@@ -2939,7 +2940,7 @@ class TFlashT23x_Base(object):
command.extend(['--generategpt', '--pt', self.tegraparser_values['--pt']])
run_command(command)
@@ -172,8 +174,8 @@ index ed0cb64..bcf5977 100644
contents = os.listdir('.')
for f in contents:
if patt.match(f):
@@ -2761,7 +2762,7 @@ class TFlashT23x_Base(object):
binaries.extend(["cpu-bootloader", values['--bl']])
@@ -3001,7 +3002,7 @@ class TFlashT23x_Base(object):
binaries.extend([values['--bl']])
if values['--cfg'] is not None :
- info_print("Copying enc\/signed file in " + output_dir)
@@ -182,15 +184,15 @@ index ed0cb64..bcf5977 100644
if self.tegrabct_values['--bct'] is None and not values['--external_device']:
raise tegraflash_exception("Unable to find bct file")
diff --git a/bootloader/tegraflash_internal.py b/bootloader/tegraflash_internal.py
index b0ecf7d..211d842 100755
index a13f93a..eebcf24 100755
--- a/bootloader/tegraflash_internal.py
+++ b/bootloader/tegraflash_internal.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
#
# SPDX-FileCopyrightText: Copyright (c) 2014-2023, NVIDIA Corporation. All Rights Reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
@@ -1195,8 +1196,7 @@ def tegraflash_encrypt_and_sign(exports):
# Copyright (c) 2014-2023, NVIDIA Corporation. All Rights Reserved.
#
@@ -1268,8 +1269,7 @@ def tegraflash_encrypt_and_sign(exports):
command = exec_file('tegraparser')
command.extend(['--generategpt', '--pt', tegraparser_values['--pt']])
run_command(command)
@@ -200,7 +202,7 @@ index b0ecf7d..211d842 100755
contents = os.listdir('.')
for f in contents:
if patt.match(f):
@@ -1311,8 +1311,7 @@ def tegraflash_sign(exports):
@@ -1384,8 +1384,7 @@ def tegraflash_sign(exports):
command = exec_file('tegraparser')
command.extend(['--generategpt', '--pt', tegraparser_values['--pt']])
run_command(command)
@@ -210,7 +212,7 @@ index b0ecf7d..211d842 100755
contents = os.listdir('.')
for f in contents:
if patt.match(f):
@@ -3983,7 +3982,7 @@ def tegraflash_bpmp_update_valid_entries(ramcode, lines, dtb_start_pos,
@@ -4054,7 +4053,7 @@ def tegraflash_bpmp_update_valid_entries(ramcode, lines, dtb_start_pos,
for i in range(0, len(dtb_start_pos)):
for line_num in range(dtb_start_pos[i], dtb_end_pos[i]):
if "phandle" in lines[line_num] and not "linux" in lines[line_num]:
@@ -219,7 +221,7 @@ index b0ecf7d..211d842 100755
if cur_strap_id == strap_ids_ph_str[ramcode]:
valid_entry.append(True)
else:
@@ -4052,7 +4051,7 @@ def tegraflash_bpmp_get_strap_handles(ramcode, test_dts):
@@ -4123,7 +4122,7 @@ def tegraflash_bpmp_get_strap_handles(ramcode, test_dts):
# emc-strap {
# select = <0xa 0x0 0x0 0x0>;
# };
@@ -228,7 +230,7 @@ index b0ecf7d..211d842 100755
strap_ids_ph_str = strap_ids_ph_str.split(' ')
break
@@ -4518,7 +4517,7 @@ def tegraflash_update_t194_bpmp_dtb(bpmp_uphy_config):
@@ -4584,7 +4583,7 @@ def tegraflash_update_t194_bpmp_dtb(bpmp_uphy_config):
bpmp_dtb = get_partition_filename('bpmp_fw_dtb', 'type')
if (values['--bins']):
@@ -238,15 +240,15 @@ index b0ecf7d..211d842 100755
bpmp_dtb = m.group(1)
if bpmp_dtb == None:
diff --git a/bootloader/tegrasign_v3_internal.py b/bootloader/tegrasign_v3_internal.py
index 5cdb06a..e8bcb07 100755
index bd8671b..53ca1a9 100755
--- a/bootloader/tegrasign_v3_internal.py
+++ b/bootloader/tegrasign_v3_internal.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
#
# Copyright (c) 2018-2023, NVIDIA Corporation. All Rights Reserved.
# Copyright (c) 2018-2024, NVIDIA Corporation. All Rights Reserved.
#
@@ -1033,7 +1034,7 @@ def is_PKC_key(keyfilename, p_key, pkh, mont):
@@ -1121,7 +1122,7 @@ def is_PKC_key(keyfilename, p_key, pkh, mont):
return False
# scan the return string for decimal value
@@ -255,15 +257,21 @@ index 5cdb06a..e8bcb07 100755
if m:
p_key.keysize = int(m.group(1))
if (p_key.keysize > 0) and (p_key.keysize < NV_RSA_MAX_KEY_SIZE):
@@ -1504,7 +1505,7 @@ def do_kdf_oem_enc(kdf_list, p_key, blockSize):
src = bytearray(f.read())
@@ -1166,7 +1167,7 @@ def is_PKC_pubkey(keyfilename, p_key, pkh, mont):
return False
patt = 'kdf_args_' + temp_stem + '.yaml'
- pattd = re.compile('kdf_args_' + temp_stem + '(\d).yaml')
+ pattd = re.compile('kdf_args_' + temp_stem + r'(\d).yaml')
contents = os.listdir('.')
# scan the return string for decimal value
- m = re.search('Key size is (\d+)', ret_str)
+ m = re.search(r'Key size is (\d+)', ret_str)
if m:
p_key.keysize = int(m.group(1))
if (p_key.keysize > 0) and (p_key.keysize < NV_RSA_MAX_KEY_SIZE):
@@ -1524,7 +1525,7 @@ def do_kdf_oem_enc(kdf_list, p_key, blockSize):
# Replace '+' with '_' in patt
patt = patt.replace('+', '_')
for f in contents:
--
2.34.1
- re_string = 'kdf_args_' + temp_stem + '(\d).yaml'
+ re_string = 'kdf_args_' + temp_stem + r'(\d).yaml'
# Replace '+' with '_' in re_string
re_string = re_string.replace('+', '_')
pattd = re.compile(re_string)

View File

@@ -1,19 +1,21 @@
From 2287cb39236f850acd94ac5fd628c8985e3495c1 Mon Sep 17 00:00:00 2001
From 9853c667dad5330fd5516ac232234141f7e5a678 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Mon, 26 Apr 2021 07:52:31 -0700
Subject: [PATCH] Remove xxd dependency from l4t_sign_image.sh
since it's not necessarily available in the build environment.
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Matt Madison <matt@madison.systems>
---
l4t_sign_image.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: Linux_for_Tegra/l4t_sign_image.sh
===================================================================
--- Linux_for_Tegra.orig/l4t_sign_image.sh
+++ Linux_for_Tegra/l4t_sign_image.sh
diff --git a/l4t_sign_image.sh b/l4t_sign_image.sh
index 21d7ef8..e75bac1 100755
--- a/l4t_sign_image.sh
+++ b/l4t_sign_image.sh
@@ -110,8 +110,7 @@ function write_size_to_sig
echo "${SCRIPT_NAME}: chip ${chip}: add $(printf "0x%x" "${size}") to offset "\
"$(printf "0x%x" "${offset}") in sig file" >&5

View File

@@ -1,4 +1,4 @@
From 6d609566d40d203425d68d79d0105323e20e3d98 Mon Sep 17 00:00:00 2001
From d0aa71084a824059808d45804211b1fbf2f0d152 Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Wed, 28 Feb 2024 19:55:34 +0000
Subject: [PATCH] Rework logging in l4t_sign_image.sh
@@ -7,16 +7,27 @@ to be more compatible with the pseudo environment during
builds, which wasn't happy about the output redirection
cloning that the script was using.
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Matt Madison <matt@madison.systems>
---
l4t_sign_image.sh | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
l4t_sign_image.sh | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/l4t_sign_image.sh b/l4t_sign_image.sh
index a684289..1ddbe4c 100755
index e75bac1..085f50f 100755
--- a/l4t_sign_image.sh
+++ b/l4t_sign_image.sh
@@ -112,8 +112,8 @@ function write_size_to_sig
@@ -91,7 +91,7 @@ function write_size_to_sig
local sig_file="${1}"
local size="${2}"
if [ "${chip}" != "0x19" ]; then
- echo "${SCRIPT_NAME}: chip ${chip}: Don't need to do anything" >&5
+ [ $quiet -eq 1 ] || echo "${SCRIPT_NAME}: chip ${chip}: Don't need to do anything"
return 0
fi
local offset=${FILE_SIZE_OFFSET_T19x}
@@ -107,8 +107,8 @@ function write_size_to_sig
fi
local tempfile
tempfile=$(mktemp)
@@ -27,32 +38,7 @@ index a684289..1ddbe4c 100755
# Convert size to bytes in little endian
python3 -c "f = open(\"${tempfile}\",'wb'); f.write(int(${size}).to_bytes(8,'little')); f.close()"
# write to header at position 0x8
@@ -138,8 +138,9 @@ function set_params_using_chipid
function sign_file
{
local sig_file="${1}"
- echo "${CMD} --chip ${chip} ${options[*]} --cmd sign ${sig_file} ${ftype}" >&5
- output="$("${CMD}" --chip "${chip}" "${options[@]}" --cmd "sign \"${sig_file}\" \"${ftype}\"" | tee >(cat - >&5))"
+ [ $quiet -eq 1 ] || echo "${CMD} --chip ${chip} ${options[*]} --cmd sign ${sig_file} ${ftype}"
+ output="$("${CMD}" --chip "${chip}" "${options[@]}" --cmd "sign \"${sig_file}\" \"${ftype}\"")"
+ [ $quiet -eq 1 ] || echo $output
if [ -n "${encryptkey}" ]; then
signedfile="$(echo "${output}" | grep "Signed and encrypted file:" | \
sed -n "s/.*Signed and encrypted file: //p")"
@@ -150,10 +151,10 @@ function sign_file
echo "${SCRIPT_NAME}: Error: Unable to find the signed file generated by tegraflash.py" >&2
exit 6;
fi
- echo "${SCRIPT_NAME}: Generate header for $(basename "${signedfile}")" >&5
+ [ $quiet -eq 1 ] || echo "${SCRIPT_NAME}: Generate header for $(basename "${signedfile}")"
dd if="${signedfile}" of="${sig_file}.sig" bs="${offset}" count=1 > /dev/null 2>&1;
write_size_to_sig "${sig_file}.sig" "${file_size}"
- echo "${SCRIPT_NAME}: Generate 16-byte-size-aligned base file for $(basename "${signedfile}")" >&5
+ [ $quiet -eq 1 ] || echo "${SCRIPT_NAME}: Generate 16-byte-size-aligned base file for $(basename "${signedfile}")"
dd if="${signedfile}" of="${sig_file}" bs="${offset}" skip="1" > /dev/null 2>&1;
if [[ "${signedfile}" = *_sigheader.encrypt.signed ]]; then
filename=$(basename -- "$file")
@@ -310,13 +311,6 @@ elif [ "${enable_user_kdk}" != "False" ]; then
@@ -240,13 +240,6 @@ elif [ "${enable_user_kdk}" != "False" ]; then
exit 1
fi
@@ -66,6 +52,28 @@ index a684289..1ddbe4c 100755
set_params_using_chipid
CMD="${L4T_BOOTLOADER_DIR}/tegraflash.py"
--
2.34.1
@@ -261,8 +254,9 @@ if [ "${enable_user_kdk}" == "True" ]; then
options+=("--enable_user_kdk")
fi
-echo "${CMD} --chip ${chip} ${options[*]} --cmd sign ${file} ${ftype}" >&5
-output="$("${CMD}" --chip "${chip}" "${options[@]}" --cmd "sign \"${file}\" \"${ftype}\"" | tee >(cat - >&5))"
+[ $quiet -eq 1 ] || "${CMD} --chip ${chip} ${options[*]} --cmd sign ${file} ${ftype}"
+output="$("${CMD}" --chip "${chip}" "${options[@]}" --cmd "sign \"${file}\" \"${ftype}\"")"
+[ $quiet -eq 1 ] || echo $output
if [ -n "${encryptkey}" ]; then
signedfile="$(echo "${output}" | grep "Signed and encrypted file:" | \
sed -n "s/.*Signed and encrypted file: //p")"
@@ -273,10 +267,10 @@ if ! [ -f "${signedfile}" ]; then
echo "${SCRIPT_NAME}: Error: Unable to find the signed file generated by tegraflash.py" >&2
exit 6;
fi
-echo "${SCRIPT_NAME}: Generate header for $(basename "${signedfile}")" >&5
+[ $quiet -eq 1 ] || echo "${SCRIPT_NAME}: Generate header for $(basename "${signedfile}")"
dd if="${signedfile}" of="${file}.sig" bs="${offset}" count=1 > /dev/null 2>&1;
write_size_to_sig "${file}.sig" "${file_size}"
-echo "${SCRIPT_NAME}: Generate 16-byte-size-aligned base file for $(basename "${signedfile}")" >&5
+[ $quiet -eq 1 ] || echo "${SCRIPT_NAME}: Generate 16-byte-size-aligned base file for $(basename "${signedfile}")"
dd if="${signedfile}" of="${file}" bs="${offset}" skip="1" > /dev/null 2>&1;
if [[ "${signedfile}" = *_sigheader.encrypt.signed ]]; then
filename=$(basename -- "$file")

View File

@@ -1,17 +1,20 @@
From 19c06da4f95f9c7caf1bd3719d7125336d05dfe3 Mon Sep 17 00:00:00 2001
From 86bceea19f6463b94c3005d78f626ecf8cc15c0b Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Mon, 7 Jun 2021 04:22:40 -0700
Subject: [PATCH] Fix location of bsp_version file in l4t_bup_gen.func
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Matt Madison <matt@madison.systems>
---
bootloader/l4t_bup_gen.func | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: Linux_for_Tegra/bootloader/l4t_bup_gen.func
===================================================================
--- Linux_for_Tegra.orig/bootloader/l4t_bup_gen.func
+++ Linux_for_Tegra/bootloader/l4t_bup_gen.func
@@ -704,13 +704,13 @@ function l4t_bup_gen()
diff --git a/bootloader/l4t_bup_gen.func b/bootloader/l4t_bup_gen.func
index 6c7e176..1e820c7 100644
--- a/bootloader/l4t_bup_gen.func
+++ b/bootloader/l4t_bup_gen.func
@@ -648,13 +648,13 @@ function l4t_bup_gen()
export OUT=$(pwd);
# get the bsp version to fill the entry list version.

View File

@@ -1,27 +0,0 @@
From 87f83a8b1289e2364a840a8d03063627972f53e4 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Sun, 4 Sep 2022 08:26:26 -0700
Subject: [PATCH] odmsign.func: fix ODMDATA and overlay DTB handling for Xavier
tegraflash.py expects the caller to pass --bldtb with the base
bootloader DTB so it can incorporate the ODMDATA and any DTB
overlays into the signed bootloader DTB.
Signed-off-by: Matt Madison <matt@madison.systems>
---
bootloader/odmsign.func | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bootloader/odmsign.func b/bootloader/odmsign.func
index 9d2082a..f81c616 100644
--- a/bootloader/odmsign.func
+++ b/bootloader/odmsign.func
@@ -577,7 +577,7 @@ odmsign_ext_sign ()
SIGNARGS+=" --cust_info ${custinfofilename} "
fi
else
- SIGNARGS+="--bl ${flashername} ${BCT} ${bctfilename}";
+ SIGNARGS+="--bl ${flashername} --bldtb ${tbcdtbfilename} ${BCT} ${bctfilename}";
fi
if [ "${CHIPID}" = "0x19" ]; then
SIGNARGS+=",${bctfile1name} ";

View File

@@ -1,26 +0,0 @@
From 761b541dbd62558b51174be52655658add742ddc Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Wed, 28 Feb 2024 20:00:08 +0000
Subject: [PATCH] Update tegraflash_impl_t234.py
Signed-off-by: Matt Madison <matt@madison.systems>
---
bootloader/tegraflash_impl_t234.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bootloader/tegraflash_impl_t234.py b/bootloader/tegraflash_impl_t234.py
index ed0cb64..1b7c5ee 100644
--- a/bootloader/tegraflash_impl_t234.py
+++ b/bootloader/tegraflash_impl_t234.py
@@ -1943,7 +1943,7 @@ class TFlashT23x_Base(object):
xml_tree = ElementTree.parse(file)
mode = xml_tree.getroot().get('mode')
- for file_nodes in xml_tree.getiterator('file'):
+ for file_nodes in xml_tree.iter('file'):
filename = file_nodes.get('name')
meta_blob_sz = int(file_nodes.get('meta_blob_size'))
enc_file = self.tegraflash_oem_enc(filename, bct_flag, meta_blob_sz)
--
2.34.1

View File

@@ -13,7 +13,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-gstreamer"
require tegra-debian-libraries-common.inc
MAINSUM = "1bca7270934650a3884b934c4bdb5695730a6de8e10cf961968012af13eccb03"
MAINSUM = "444765a7319a66cc9359afeca2f1939772342f698cb6e62cd8b9c23d38a96659"
TEGRA_LIBRARIES_TO_INSTALL = "\
libgstnvegl-1.0.so.0 \

View File

@@ -1,31 +0,0 @@
DESCRIPTION = "NVIDIA DRM compatibility library"
L4T_DEB_COPYRIGHT_MD5 = "8dc9729e1dc38aac4adb4bd6f6e3b370"
DEPENDS = "tegra-libraries-core"
L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-core"
require tegra-debian-libraries-common.inc
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'weston')};subdir=${BP};name=weston"
MAINSUM = "e32ade8d9abebedaffdc922c513152ea9686aa965d9e10514647dfccb17ebdf1"
SRC_URI[weston.sha256sum] = "111fcc07130ed003f3fd3e5133704f7ca1c2d274ce160786e17808241e090f48"
do_compile() {
echo "${libdir}/tegra" > ${B}/tegra.conf
}
do_install() {
install -d ${D}${libdir}/tegra
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/libdrm.so.2 ${D}${libdir}/tegra/
ln -sf tegra/libdrm.so.2 ${D}${libdir}/libdrm_nvdc.so
install -Dpm 644 ${B}/tegra.conf ${D}${sysconfdir}/ld.so.conf.d/tegra.conf
}
DEBIAN_NOAUTONAME:${PN} = "1"
DEBIAN_NOAUTONAME:${PN}-dev = "1"
DEBIAN_NOAUTONAME:${PN}-dbg = "1"
DEBIAN_NOAUTONAME:${PN}-lic = "1"
DEBIAN_NOAUTONAME:${PN}-src = "1"
FILES:${PN} = "${libdir} ${sysconfdir}/ld.so.conf.d"
FILES:${PN}-dev = "${includedir}/libdrm/nvidia"
PRIVATE_LIBS = "libdrm.so.2"

View File

@@ -5,7 +5,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-core"
require tegra-debian-libraries-common.inc
MAINSUM = "e32ade8d9abebedaffdc922c513152ea9686aa965d9e10514647dfccb17ebdf1"
MAINSUM = "b7c76d1082f467b0a2ecd57bf3da343c1ef2331e1072223c33419be084cc8b72"
INHIBIT_DEFAULT_DEPS = "1"

View File

@@ -1,21 +1,23 @@
L4T_DEB_COPYRIGHT_MD5 = "38ef63b8f3232378d9f652f640ee0a3f"
L4T_DEB_COPYRIGHT_MD5 = "76b3130e18f6d6dc3236584f2c985e43"
require tegra-debian-libraries-common.inc
DESCRIPTION = "Prebuilt OPTEE normal-world binaries"
MAINSUM = "7f7c120849696957b432f9c280a905d957dc634bffac22444469d583f21e393d"
MAINSUM = "2025068c7334bb4eb5809db711c889db2ca80b8d1e2c1ddb76010303fb1ce3a0"
inherit systemd
LIC_FILES_CHKSUM += " \
file://usr/share/doc/nvidia-tegra/LICENSE.optee_test;md5=daa2bcccc666345ab8940aab1315a4fa \
file://usr/share/doc/nvidia-tegra/LICENSE.optee_client;md5=69663ab153298557a59c67a60a743e5b \
file://usr/share/doc/nvidia-tegra/LICENSE.libteeacl.libuuid;md5=58dcd8452651fc8b07d1f65ce07ca8af \
file://usr/share/doc/nvidia-tegra/LICENSE.libuuid;md5=58dcd8452651fc8b07d1f65ce07ca8af \
file://usr/share/doc/nvidia-tegra/LICENSE.nvhwkey-app;md5=6938d70d5e5d49d31049419e85bb82f8 \
file://usr/share/doc/nvidia-tegra/LICENSE.nvluks-srv-app;md5=6938d70d5e5d49d31049419e85bb82f8 \
file://usr/share/doc/nvidia-tegra/LICENSE.82154947-c1bc-4bdf-b89d-04f93c0ea97c.ta;md5=6938d70d5e5d49d31049419e85bb82f8 \
"
LICENSE += "& BSD-2-Clause & GPL-2.0-only"
LICENSE:${PN} = "BSD-2-Clause"
LICENSE += "& BSD-2-Clause & BSD-3-Clause & GPL-2.0-only"
LICENSE:${PN} = "BSD-2-Clause & BSD-3-Clause"
LICENSE:${PN}-base-tas = "BSD-2-Clause"
LICENSE:${PN}-test = "GPL-2.0-only & BSD-2-Clause"
LICENSE:${PN}-nvsamples = "BSD-2-Clause"
@@ -26,12 +28,16 @@ do_install() {
install -d ${D}${libdir} ${D}${libdir}/tee-supplicant/plugins
install -m 0644 ${S}/usr/lib/libckteec.so.0.1.0 ${D}${libdir}
install -m 0644 ${S}/usr/lib/libteec.so.1.0.0 ${D}${libdir}
install -m 0644 ${S}/usr/lib/libteeacl.so.0.1.0 ${D}${libdir}
ln -s libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1
ln -s libckteec.so.0.1 ${D}${libdir}/libckteec.so.0
ln -s libckteec.so.0 ${D}${libdir}/libckteec.so
ln -s libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0
ln -s libteec.so.1.0 ${D}${libdir}/libteec.so.1
ln -s libteec.so.1.0.0 ${D}${libdir}/libteec.so.1
ln -s libteec.so.1 ${D}${libdir}/libteec.so
ln -s libteeacl.so.0.1.0 ${D}${libdir}/libteeacl.so.0.1
ln -s libteeacl.so.0.1 ${D}${libdir}/libteeacl.so.0
ln -s libteeacl.so.0 ${D}${libdir}/libteeacl.so
install -m 0755 ${S}/usr/lib/tee-supplicant/plugins/f07bfc66-958c-4a15-99c0-260e4e7375dd.plugin ${D}${libdir}/tee-supplicant/plugins
install -d ${D}${sbindir}

View File

@@ -27,19 +27,4 @@ REQUIRED_DISTRO_FEATURES = "opengl"
INITSCRIPT_NAME = "nvargus-daemon"
INITSCRIPT_PARAMS = "defaults"
SYSTEMD_SERVICE:${PN} = "nvargus-daemon.service"
RDEPENDS:${PN} = "tegra-libraries-argus-daemon-base"
RRECOMMENDS:${PN} = "\
kernel-module-nv-ar0234 \
kernel-module-nv-imx185 \
kernel-module-nv-imx185-v1 \
kernel-module-nv-imx219 \
kernel-module-nv-imx268 \
kernel-module-nv-imx274 \
kernel-module-nv-imx318 \
kernel-module-nv-imx477 \
kernel-module-nv-lc898212 \
kernel-module-nv-ov10823 \
kernel-module-nv-ov23850 \
kernel-module-nv-ov5693 \
kernel-module-nv-ov9281 \
"
RDEPENDS:${PN} = "tegra-libraries-argus-daemon-base nvidia-kernel-oot-cameras"

View File

@@ -6,16 +6,17 @@ SRC_URI = "\
${L4T_URI_BASE}/${L4T_BSP_PREFIX}_Linux_R${L4T_VERSION}_aarch64.tbz2 \
"
SRC_URI[sha256sum] = "8cde3bd937d3eedb640a1c58d108c109f7cb904c38a03101dc17904b7d185ddf"
SRC_URI[sha256sum] = "47692375f4d1f9e1b2df8bb48b3b55546e0bfe1610551bdaafe2c62d44a46052"
inherit l4t_bsp dos2unix
# Override convert_crlf_to_lf task to only convert "*.cfg", "*.dts*" files
# Override convert_crlf_to_lf task to only convert "*.dts*" files
do_convert_crlf_to_lf () {
find ${S} -type f "-(" -name "*.cfg" -o -name "*.dts*" "-)" -exec dos2unix {} \;
find ${S} -type f -name "*.dts*" -exec dos2unix {} \;
}
S = "${TMPDIR}/work-shared/L4T-${L4T_BSP_ARCH}-${PV}-${PR}/Linux_for_Tegra"
S = "${L4T_BSP_SHARED_SOURCE_DIR}"
B = "${WORKDIR}/build"
INHIBIT_PACKAGE_STRIP = "1"

View File

@@ -55,6 +55,7 @@ install_other_boot_firmware_files() {
case "${SOC_FAMILY}" in
tegra234)
install -m 0644 ${S}/bootloader/tegra234-*.dts* ${D}${datadir}/tegraflash/
install -m 0644 ${S}/bootloader/fuse_t234.xml ${D}${datadir}/tegraflash/
install -m 0644 ${S}/bootloader/${NVIDIA_BOARD}/tegra234-bpmp-*.dtb ${D}${datadir}/tegraflash/
install -m 0644 ${S}/bootloader/${NVIDIA_BOARD}/BCT/tegra234* ${D}${datadir}/tegraflash/
install -m 0644 ${S}/bootloader/bpmp_t234-*.bin ${D}${datadir}/tegraflash/

View File

@@ -8,7 +8,7 @@ require tegra-debian-libraries-common.inc
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://usr/share/doc/nvidia-tegra/LICENSE.brcm_patchram_plus.gz;md5=56c49a020a7573ba8a805f8df531b806"
MAINSUM = "917eabedf603d94f0d840673d300db92eaacb82a8a23a243030665ede5a8f367"
MAINSUM = "8b414561d137d84a1b446728ae854e418f25df8bc18232ac8cd2819e3199432a"
do_install() {
install -d ${D}${sbindir}

View File

@@ -5,7 +5,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-init"
require tegra-debian-libraries-common.inc
MAINSUM = "9d9e5d2c912e9432ba189e6702e0135a72db725a8ee22db3f8475d9c9374b77d"
MAINSUM = "3688e38dec23024098f969f5a46108a1f3daa86f48e904a14edcbe71b734324d"
SRC_URI += "file://asound.conf.tegra-hda-p3767-p3509"
@@ -16,6 +16,9 @@ do_install() {
install -m 0644 ${UNPACKDIR}/asound.conf.${TEGRA_AUDIO_DEVICE} ${D}${sysconfdir}/asound.conf
else
install -m 0644 ${S}/etc/asound.conf.${TEGRA_AUDIO_DEVICE} ${D}${sysconfdir}/asound.conf
if [ "${TEGRA_AUDIO_DEVICE}" = "tegra-hda-jetson-agx" ]; then
sed -i -e's!HDA,8!HDA,3!' ${D}${sysconfdir}/asound.conf
fi
fi
fi

View File

@@ -1,17 +1,18 @@
From 843ca0b598d1346f3eb87aa624821051afaaafba Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Wed, 28 Feb 2024 23:08:26 +0000
Subject: [PATCH 1/2] Patch udev rules for OE use
From a6483bf9114ca761a0ffeedeedb387ca0531a74d Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Tue, 16 Nov 2021 09:08:15 -0800
Subject: [PATCH] Patch udev rules for OE use
Signed-off-by: Matt Madison <matt@madison.systems>
---
etc/udev/rules.d/99-tegra-devices.rules | 5 -----
1 file changed, 5 deletions(-)
diff --git a/etc/udev/rules.d/99-tegra-devices.rules b/etc/udev/rules.d/99-tegra-devices.rules
index a655804..2b16bfd 100644
--- a/etc/udev/rules.d/99-tegra-devices.rules
+++ b/etc/udev/rules.d/99-tegra-devices.rules
Index: tegra-configs-36.3.0-20240424200557/etc/udev/rules.d/99-tegra-devices.rules
===================================================================
--- tegra-configs-36.3.0-20240424200557.orig/etc/udev/rules.d/99-tegra-devices.rules
+++ tegra-configs-36.3.0-20240424200557/etc/udev/rules.d/99-tegra-devices.rules
@@ -9,7 +9,6 @@
# its affiliates is strictly prohibited.
@@ -20,15 +21,3 @@ index a655804..2b16bfd 100644
# root only devices
KERNEL=="knvrm" OWNER="root" GROUP="root" MODE="0660"
@@ -73,8 +72,4 @@ KERNEL=="camchar*" OWNER="root" GROUP="video" MODE="0660"
KERNEL=="capture-*" OWNER="root" GROUP="video" MODE="0660"
KERNEL=="cdi_tsc" OWNER="root" GROUP="video" MODE="0660"
-# security related devices
-KERNEL=="tegra-crypto" OWNER="root" GROUP="crypto" MODE="0660"
-KERNEL=="trusty-ipc-dev*" OWNER="root" GROUP="trusty" MODE="0660"
-
LABEL="nvidia_end"
--
2.34.1

View File

@@ -1,32 +1,31 @@
From b1a650c065b101083dcac9e8d885c26b0d15686f Mon Sep 17 00:00:00 2001
From a5634a1e294bf8bd76542af5848c2750805906d5 Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Wed, 28 Feb 2024 23:12:36 +0000
Subject: [PATCH 2/2] Patch nv.sh script for OE use
Date: Sun, 10 Dec 2023 18:04:47 +0000
Subject: [PATCH] Patch nv.sh script for OE use
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
---
etc/systemd/nv.sh | 264 ----------------------------------------------
1 file changed, 264 deletions(-)
etc/systemd/nv.sh | 219 ----------------------------------------------
1 file changed, 219 deletions(-)
diff --git a/etc/systemd/nv.sh b/etc/systemd/nv.sh
index 6fddc2c..a8da38f 100755
index 8044f43..007ddc3 100755
--- a/etc/systemd/nv.sh
+++ b/etc/systemd/nv.sh
@@ -105,12 +105,6 @@ if [ -e "/proc/device-tree/compatible" ]; then
@@ -92,10 +92,6 @@ if [ -e "/proc/device-tree/compatible" ]; then
fi
fi
-if [ "$SOCFAMILY" = "tegra194" ]; then
- sudo bash -c "ln -sf /etc/X11/xorg.conf.t194_ref /etc/X11/xorg.conf"
-elif [ "$machine" = "jetson_tx1" ] || [ "$machine" = "jetson_e" ]; then
- sudo bash -c "ln -sf /etc/X11/xorg.conf.jetson_e /etc/X11/xorg.conf"
-fi
-
if [ "$SOCFAMILY" = "Tegra13" ] &&
[ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ]; then
bash \
@@ -133,11 +127,6 @@ if [ "$SOCFAMILY" != "tegra210" ]; then
fi
@@ -115,11 +111,6 @@ elif [ -w /sys/module/cpu_tegra3/parameters/auto_hotplug ]; then
echo 1 > /sys/module/cpu_tegra3/parameters/auto_hotplug
fi
-# Remove the spawning of ondemand service
@@ -37,265 +36,225 @@ index 6fddc2c..a8da38f 100755
# mmc read ahead size
if [ -e /sys/block/mmcblk0/queue/read_ahead_kb ]; then
echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb
@@ -153,260 +142,7 @@ if [ "$SOCFAMILY" = "tegra186" ] || [ "$SOCFAMILY" = "tegra210" ] || [ "$SOCFAMI
@@ -135,13 +126,6 @@ if [ "${SOCFAMILY}" = "tegra194" ]; then
fi
fi
-# Ensure libglx.so is not overwritten by a distribution update of Xorg
-# Alternatively, package management tools could be used to prevent updates
-ARCH=$(/usr/bin/dpkg --print-architecture)
-if [ "x${ARCH}" = "xarm64" ]; then
-if [ "${ARCH}" = "arm64" ]; then
- LIB_DIR="/usr/lib/aarch64-linux-gnu"
-fi
-
# Disable lazy vfree pages
if [ -e "/proc/sys/vm/lazy_vfree_pages" ]; then
echo 0 > "/proc/sys/vm/lazy_vfree_pages"
@@ -189,206 +173,3 @@ fi
if [ -e "/var/lib/lightdm" ]; then
sudo chown lightdm:lightdm /var/lib/lightdm -R
fi
-
-# WAR for https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1776499
-# and https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1946621
-# These issues are fixed from MESA version 21.2 and so detect the MESA
-# version and apply the workaround if needed.
-# When DISABLE_MESA_EGL="1" glvnd will not load mesa EGL library.
-# When DISABLE_MESA_EGL="0" glvnd will load mesa EGL library.
-# nvidia EGL library is prioritized over mesa even if DISABLE_MESA_EGL="0".
-MESA_VERSION="$(dpkg -s libegl-mesa0 | sed -nr 's/^Version: ([0-9]+\.[0-9]+)\.[0-9]+-.*+ubuntu.*/\1/p')"
-DISABLE_MESA_EGL="0"
-
-if [ "${MESA_VERSION}" != "" ]; then
- DISABLE_MESA_EGL="$(echo "${MESA_VERSION} < 21.2" | bc)"
-fi
-
-if [ -f "/usr/share/glvnd/egl_vendor.d/50_mesa.json" ]; then
- if [ "${DISABLE_MESA_EGL}" -eq "1" ]; then
- sed -i "s/\"library_path\" : .*/\"library_path\" : \"\"/g" \
- "/usr/share/glvnd/egl_vendor.d/50_mesa.json"
- else
- sed -i "s/\"library_path\" : .*/\"library_path\" : \"libEGL_mesa.so.0\"/g" \
- "/usr/share/glvnd/egl_vendor.d/50_mesa.json"
- fi
-fi
-
-# Add gdm in video group
-getent passwd gdm > /dev/null
-if [ $? -eq 0 ]; then
- adduser gdm video
-fi
-
-# Add lightdm in video group
-grep "lightdm" "/etc/group" > /dev/null
-if [ $? -eq 0 ]; then
- groups "lightdm" | grep "video" > /dev/null
- if [ $? -eq 1 ]; then
- addgroup "lightdm" "video"
- fi
-fi
-
-if [ -e "/var/lib/lightdm" ]; then
- sudo chown lightdm:lightdm /var/lib/lightdm -R
-fi
-
-# Set INSTALL_DOWNSTREAM_WESTON="1" to install downstream weston. This will
-# overwrite weston binaries in standard weston installation path with downstream
-# weston binaries which are present in ${LIB_DIR}/tegra. This is default.
-# weston binaries which are present in "/usr/lib/aarch64-linux-gnu/nvidia. This is default.
-#
-# Set INSTALL_DOWNSTREAM_WESTON="0" to avoid overwriting weston binaries in standard
-# weston installation path with downstream weston binaries which are present in
-# ${LIB_DIR}/tegra.
-# /usr/lib/aarch64-linux-gnu/nvidia.
-INSTALL_DOWNSTREAM_WESTON="1"
-if [ "${INSTALL_DOWNSTREAM_WESTON}" -eq "1" ]; then
- if [ -e "${LIB_DIR}/tegra/weston/desktop-shell.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/desktop-shell.so" "${LIB_DIR}/weston/desktop-shell.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/desktop-shell.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/desktop-shell.so" "${LIB_DIR}/weston/desktop-shell.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/drm-backend.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/drm-backend.so" "${LIB_DIR}/weston/drm-backend.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/drm-backend.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/drm-backend.so" "${LIB_DIR}/weston/drm-backend.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/fullscreen-shell.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/fullscreen-shell.so" "${LIB_DIR}/weston/fullscreen-shell.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/fullscreen-shell.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/fullscreen-shell.so" "${LIB_DIR}/weston/fullscreen-shell.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/gl-renderer.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/gl-renderer.so" "${LIB_DIR}/weston/gl-renderer.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/gl-renderer.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/gl-renderer.so" "${LIB_DIR}/weston/gl-renderer.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/hmi-controller.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/hmi-controller.so" "${LIB_DIR}/weston/hmi-controller.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/hmi-controller.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/hmi-controller.so" "${LIB_DIR}/weston/hmi-controller.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/ivi-controller.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/ivi-controller.so" "${LIB_DIR}/weston/ivi-controller.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-controller.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-controller.so" "${LIB_DIR}/weston/ivi-controller.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/ivi-shell.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/ivi-shell.so" "${LIB_DIR}/weston/ivi-shell.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-shell.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-shell.so" "${LIB_DIR}/weston/ivi-shell.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/libweston-6.so.0" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/libweston-6.so.0" "${LIB_DIR}/libweston-6.so.0"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-6.so.0" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-6.so.0" "${LIB_DIR}/libweston-6.so.0"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/libweston-desktop-6.so.0" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/libweston-desktop-6.so.0" "${LIB_DIR}/libweston-desktop-6.so.0"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-desktop-6.so.0" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-desktop-6.so.0" "${LIB_DIR}/libweston-desktop-6.so.0"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/wayland-backend.so" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/wayland-backend.so" "${LIB_DIR}/weston/wayland-backend.so"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/wayland-backend.so" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/wayland-backend.so" "${LIB_DIR}/weston/wayland-backend.so"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/libilmClient.so.2.2.0" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/libilmClient.so.2.2.0" "${LIB_DIR}/libilmClient.so.2.2.0"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmClient.so.2.2.0" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmClient.so.2.2.0" "${LIB_DIR}/libilmClient.so.2.2.0"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/libilmCommon.so.2.2.0" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/libilmCommon.so.2.2.0" "${LIB_DIR}/libilmCommon.so.2.2.0"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmCommon.so.2.2.0" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmCommon.so.2.2.0" "${LIB_DIR}/libilmCommon.so.2.2.0"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/libilmControl.so.2.2.0" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/libilmControl.so.2.2.0" "${LIB_DIR}/libilmControl.so.2.2.0"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmControl.so.2.2.0" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmControl.so.2.2.0" "${LIB_DIR}/libilmControl.so.2.2.0"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/libilmInput.so.2.2.0" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/libilmInput.so.2.2.0" "${LIB_DIR}/libilmInput.so.2.2.0"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmInput.so.2.2.0" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmInput.so.2.2.0" "${LIB_DIR}/libilmInput.so.2.2.0"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-desktop-shell" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-desktop-shell" "/usr/lib/weston/weston-desktop-shell"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-desktop-shell" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-desktop-shell" "/usr/lib/weston/weston-desktop-shell"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-keyboard" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-keyboard" "/usr/lib/weston/weston-keyboard"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-keyboard" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-keyboard" "/usr/lib/weston/weston-keyboard"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-screenshooter" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-screenshooter" "/usr/lib/westonweston-screenshooter"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-screenshooter" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-screenshooter" "/usr/lib/westonweston-screenshooter"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/EGLWLInputEventExample" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/EGLWLInputEventExample" "/usr/bin/EGLWLInputEventExample"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLInputEventExample" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLInputEventExample" "/usr/bin/EGLWLInputEventExample"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/EGLWLMockNavigation" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/EGLWLMockNavigation" "/usr/bin/EGLWLMockNavigation"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLMockNavigation" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLMockNavigation" "/usr/bin/EGLWLMockNavigation"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/LayerManagerControl" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/LayerManagerControl" "/usr/bin/LayerManagerControl"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/LayerManagerControl" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/LayerManagerControl" "/usr/bin/LayerManagerControl"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/simple-weston-client" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/simple-weston-client" "/usr/bin/simple-weston-client"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/simple-weston-client" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/simple-weston-client" "/usr/bin/simple-weston-client"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/spring-tool" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/spring-tool" "/usr/bin/spring-tool"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/spring-tool" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/spring-tool" "/usr/bin/spring-tool"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston" "/usr/bin/weston"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston" "/usr/bin/weston"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-calibrator" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-calibrator" "/usr/bin/weston-calibrator"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-calibrator" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-calibrator" "/usr/bin/weston-calibrator"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-clickdot" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-clickdot" "/usr/bin/weston-clickdot"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-clickdot" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-clickdot" "/usr/bin/weston-clickdot"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-cliptest" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-cliptest" "/usr/bin/weston-cliptest"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-cliptest" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-cliptest" "/usr/bin/weston-cliptest"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-content-protection" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-content-protection" "/usr/bin/weston-content-protection"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-content-protection" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-content-protection" "/usr/bin/weston-content-protection"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-debug" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-debug" "/usr/bin/weston-debug"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-debug" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-debug" "/usr/bin/weston-debug"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-dnd" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-dnd" "/usr/bin/weston-dnd"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-dnd" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-dnd" "/usr/bin/weston-dnd"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-eventdemo" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-eventdemo" "/usr/bin/weston-eventdemo"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-eventdemo" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-eventdemo" "/usr/bin/weston-eventdemo"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-flower" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-flower" "/usr/bin/weston-flower"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-flower" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-flower" "/usr/bin/weston-flower"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-fullscreen" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-fullscreen" "/usr/bin/weston-fullscreen"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-fullscreen" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-fullscreen" "/usr/bin/weston-fullscreen"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-image" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-image" "/usr/bin/weston-image"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-image" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-image" "/usr/bin/weston-image"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-info" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-info" "/usr/bin/weston-info"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-info" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-info" "/usr/bin/weston-info"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-ivi-shell-user-interface" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-ivi-shell-user-interface" "/usr/bin/weston-ivi-shell-user-interface"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-ivi-shell-user-interface" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-ivi-shell-user-interface" "/usr/bin/weston-ivi-shell-user-interface"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-launch" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-launch" "/usr/bin/weston-launch"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-launch" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-launch" "/usr/bin/weston-launch"
- chmod "+s" "/usr/bin/weston-launch"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-multi-resource" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-multi-resource" "/usr/bin/weston-multi-resource"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-multi-resource" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-multi-resource" "/usr/bin/weston-multi-resource"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-output-mode" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-output-mode" "/usr/bin/weston-output-mode"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-output-mode" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-output-mode" "/usr/bin/weston-output-mode"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-resizor" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-resizor" "/usr/bin/weston-resizor"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-resizor" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-resizor" "/usr/bin/weston-resizor"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-scaler" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-scaler" "/usr/bin/weston-scaler"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-scaler" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-scaler" "/usr/bin/weston-scaler"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-simple-egl" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-simple-egl" "/usr/bin/weston-simple-egl"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-egl" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-egl" "/usr/bin/weston-simple-egl"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-simple-shm" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-simple-shm" "/usr/bin/weston-simple-shm"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-shm" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-shm" "/usr/bin/weston-simple-shm"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-simple-touch" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-simple-touch" "/usr/bin/weston-simple-touch"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-touch" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-touch" "/usr/bin/weston-simple-touch"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-smoke" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-smoke" "/usr/bin/weston-smoke"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-smoke" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-smoke" "/usr/bin/weston-smoke"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-stacking" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-stacking" "/usr/bin/weston-stacking"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-stacking" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-stacking" "/usr/bin/weston-stacking"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-subsurfaces" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-subsurfaces" "/usr/bin/weston-subsurfaces"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-subsurfaces" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-subsurfaces" "/usr/bin/weston-subsurfaces"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-terminal" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-terminal" "/usr/bin/weston-terminal"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-terminal" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-terminal" "/usr/bin/weston-terminal"
- fi
-
- if [ -e "${LIB_DIR}/tegra/weston/weston-transformed" ]; then
- ln -sf "${LIB_DIR}/tegra/weston/weston-transformed" "/usr/bin/weston-transformed"
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-transformed" ]; then
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-transformed" "/usr/bin/weston-transformed"
- fi
-fi
--

View File

@@ -10,9 +10,9 @@ SRC_SOC_DEBS += "\
${@l4t_deb_pkgname(d, 'x11')};subdir=${BP};name=x11 \
"
MAINSUM = "ebd0dc5b8a8ae74ee882ecd398ab11ea4604cb3d9a1d183d84336a3fb59e6e16"
INITSUM = "9d9e5d2c912e9432ba189e6702e0135a72db725a8ee22db3f8475d9c9374b77d"
X11SUM = "d44320a4435a490ec5b3948f0c643ac68cc9302681bfd68fb5dcf2a1c7985866"
MAINSUM = "d29a08765d1ea1fda04a6ef9ed0879456b1873100f6945937610d380f2d08918"
INITSUM = "3688e38dec23024098f969f5a46108a1f3daa86f48e904a14edcbe71b734324d"
X11SUM = "285abd2a7e4a498e1b21c251910eda7c20c10bd2a0293c3cc6502252f5102200"
SRC_URI[init.sha256sum] = "${INITSUM}"
SRC_URI[x11.sha256sum] = "${X11SUM}"
@@ -41,6 +41,9 @@ do_install() {
install -d ${D}${sysconfdir}/sysctl.d
install -m 0644 ${S}/etc/sysctl.d/60-nvsciipc.conf ${D}${sysconfdir}/sysctl.d/
install -d ${D}${sysconfdir}/modprobe.d
install -m 0644 ${S}/etc/modprobe.d/denylist*.conf ${D}${sysconfdir}/modprobe.d/
# We use a statically generated file by using
# https://gist.github.com/dwalkes/0e2dea422f2df93bcc9badc0512a6855
# and oe-pkgdata-util file-path <libname> for oe4t-missing.csv
@@ -59,7 +62,7 @@ do_install:append:tegra234() {
}
PACKAGES = "${PN}-udev ${PN}-omx-tegra ${PN}-xorg ${PN}-nvstartup ${PN}-container-csv ${PN}-bootloader"
FILES:${PN}-udev = "${sysconfdir}/udev/rules.d"
FILES:${PN}-udev = "${sysconfdir}/udev/rules.d ${sysconfdir}/modprobe.d"
FILES:${PN}-xorg = "${sysconfdir}/X11"
FILES:${PN}-omx-tegra = "${sysconfdir}/enctune.conf"
FILES:${PN}-nvstartup = "${sbindir} ${sysconfdir}/sysctl.d"

View File

@@ -9,14 +9,12 @@ SRC_SOC_DEBS += "\
${@l4t_deb_pkgname(d, 'gstreamer')};subdir=${BP}/full;name=gstreamer \
${@l4t_deb_pkgname(d, 'wayland')};subdir=${BP}/full;name=wayland \
${@l4t_deb_pkgname(d, 'weston')};subdir=${BP}/full;name=weston \
${@l4t_deb_pkgname(d, 'libvulkan')};subdir=${BP}/full;name=libvulkan \
"
MAINSUM = "6bcecffe065e4be945d88e0312f31a1802eaf2d1afcf5e9822e934085fe7354a"
SRC_URI[camera.sha256sum] = "7aebbee250f68886d6fe6959c3c0c9efa52c24c1c76178f9f6a74dc53c180faa"
SRC_URI[gstreamer.sha256sum] = "1bca7270934650a3884b934c4bdb5695730a6de8e10cf961968012af13eccb03"
SRC_URI[wayland.sha256sum] = "a95bebe29b89d587da4f6e9ecf40b654ae6f504a265b8953755c87f59a54718f"
SRC_URI[weston.sha256sum] = "111fcc07130ed003f3fd3e5133704f7ca1c2d274ce160786e17808241e090f48"
SRC_URI[libvulkan.sha256sum] = "4393c9b9808ada4fc68dc697268885b102be6790329712dfdc3b6018b20bd173"
MAINSUM = "cf2222be0fa337c2d0404ced0418befe87d5aace999c0bad175fb339f1ac4d48"
SRC_URI[camera.sha256sum] = "a61f87e7602a14acb06a05e37687d55d6991b22ca5adb76ceb2858a2a32b3d07"
SRC_URI[gstreamer.sha256sum] = "444765a7319a66cc9359afeca2f1939772342f698cb6e62cd8b9c23d38a96659"
SRC_URI[wayland.sha256sum] = "11e2541017d9a055385d23385c055b3afe2a8486f75310a7da96b39ba8e5de53"
SRC_URI[weston.sha256sum] = "d31dfb94fefb37abec42ad2284a85f599614382c4ba6fa63239e72e7a250fdba"
PASSTHRU_ROOT = "${datadir}/nvidia-container-passthrough"
@@ -27,13 +25,13 @@ do_install() {
# Just the V4L2 files for the multimedia package
cp -R --preserve=mode,links,timestamps ${S}/usr/lib/aarch64-linux-gnu/libv4l ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/
for f in libnvv4l2.so libnvv4lconvert.so libv4l2_nvvideocodec.so libv4l2_nvcuvidvideocodec.so libv4l2_nvargus.so; do
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/$f ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/tegra/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/$f ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/nvidia/
done
ln -sf libnvv4l2.so ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/tegra/libv4l2.so.0
ln -sf libnvv4lconvert.so ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/tegra/libv4lconvert.so.0
ln -sf tegra/libv4l2.so.0 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libv4l2.so.0.0.999999
ln -sf libnvv4l2.so ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/nvidia/libv4l2.so.0
ln -sf libnvv4lconvert.so ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/nvidia/libv4lconvert.so.0
ln -sf nvidia/libv4l2.so.0 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libv4l2.so.0.0.999999
ln -sf libv4l2.so.0.0.999999 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libv4l2.so.0
ln -sf tegra/libv4lconvert.so.0 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libv4lconvert.so.0.0.999999
ln -sf nvidia/libv4lconvert.so.0 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libv4lconvert.so.0.0.999999
ln -sf libv4lconvert.so.0.0.999999 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libv4lconvert.so.0
ln -sf libgstreamer-1.0.so.0.1603.99999 ${D}${PASSTHRU_ROOT}/usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
}

View File

@@ -6,8 +6,8 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-firmware"
require tegra-debian-libraries-common.inc
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'xusb-firmware')};subdir=${BP};name=xusb"
MAINSUM = "917eabedf603d94f0d840673d300db92eaacb82a8a23a243030665ede5a8f367"
XUSBSUM = "4b076e828f4f76ec35a973e80bca349c95d8fcf8876d0986d914aa63ade08aed"
MAINSUM = "8b414561d137d84a1b446728ae854e418f25df8bc18232ac8cd2819e3199432a"
XUSBSUM = "c5d245ef010b721372330d01b444ad43feaf58c1968b798ec9e413ba1f4f8581"
SRC_URI[xusb.sha256sum] = "${XUSBSUM}"
do_install() {
@@ -15,13 +15,27 @@ do_install() {
cp -R -f ${S}/lib/firmware ${D}${nonarch_base_libdir}
}
PACKAGES = "${PN}-rtl8822 ${PN}-brcm ${PN}-tegra194-xusb ${PN}-tegra234 ${PN}-xusb ${PN}-vic ${PN}"
PACKAGES = "${PN}-rtl8822 ${PN}-brcm ${PN}-tegra234 ${PN}-xusb ${PN}-vic ${PN}"
FILES:${PN}-brcm = "${nonarch_base_libdir}/firmware/brcm ${nonarch_base_libdir}/firmware/bcm4354.hcd ${nonarch_base_libdir}/firmware/nv-*-Version \
${nonarch_base_libdir}/firmware/cypress ${nonarch_base_libdir}/firmware/bcm4359.hcd"
FILES:${PN}-rtl8822 = "${nonarch_base_libdir}/firmware/rtl8822*"
FILES:${PN}-tegra194-xusb = "${nonarch_base_libdir}/firmware/tegra19x_xusb_firmware ${nonarch_base_libdir}/firmware/nvidia/tegra194/xusb.bin"
FILES:${PN}-tegra234 = "${nonarch_base_libdir}/firmware/tegra23x ${nonarch_base_libdir}/firmware/ga10b ${nonarch_base_libdir}/firmware/nvpva_020.fw ${nonarch_base_libdir}/firmware/dce.bin ${nonarch_base_libdir}/firmware/nvhost_nvdla020.fw \
${nonarch_base_libdir}/firmware/nvhost_ofa012.fw ${nonarch_base_libdir}/firmware/display-t234-dce.bin"
FILES:${PN}-tegra234 = " \
${nonarch_base_libdir}/firmware/tegra23x \
${nonarch_base_libdir}/firmware/nvidia/tegra234 \
${nonarch_base_libdir}/firmware/nvidia/ga10b \
${nonarch_base_libdir}/firmware/nvpva_020.fw \
${nonarch_base_libdir}/firmware/dce.bin \
${nonarch_base_libdir}/firmware/nvpva_010.fw \
${nonarch_base_libdir}/firmware/nvhost_nvdla020.fw \
${nonarch_base_libdir}/firmware/nvhost_nvdla030.fw \
${nonarch_base_libdir}/firmware/nvhost_nvdla010.fw \
${nonarch_base_libdir}/firmware/nvhost_ofa012.fw \
${nonarch_base_libdir}/firmware/display-t234-dce.bin \
${nonarch_base_libdir}/firmware/nvidia/gv11b \
${nonarch_base_libdir}/firmware/nvidia/tegra194 \
${nonarch_base_libdir}/firmware/tegra19x_xusb_firmware \
${nonarch_base_libdir}/firmware/tegra19x \
"
FILES:${PN}-xusb = ""
ALLOW_EMPTY:${PN}-xusb = "1"
FILES:${PN}-vic = "${nonarch_base_libdir}/firmware/nvhost_vic042.fw"

View File

@@ -12,8 +12,6 @@ SRC_URI += "\
file://0009-Remove-xxd-dependency-from-l4t_sign_image.sh.patch \
file://0010-Rework-logging-in-l4t_sign_image.sh.patch \
file://0013-Fix-location-of-bsp_version-file-in-l4t_bup_gen.func.patch \
file://0014-odmsign.func-fix-ODMDATA-and-overlay-DTB-handling-fo.patch \
file://0016-Update-tegraflash_impl_t234.py.patch \
"
S = "${WORKDIR}/Linux_for_Tegra"
B = "${WORKDIR}/build"
@@ -46,6 +44,7 @@ do_install() {
install -m 0644 ${S}/bootloader/pyfdt/*.py ${D}${BINDIR}/pyfdt/
install -m 0755 ${S}/bootloader/tegraflash*.py ${D}${BINDIR}
install -m 0755 ${S}/bootloader/ed25519.py ${D}${BINDIR}
install -m 0644 ${S}/bootloader/t194.py ${D}${BINDIR}
install -m 0644 ${S}/bootloader/t234.py ${D}${BINDIR}
install -m 0755 ${S}/bootloader/dtbcheck.py ${D}${BINDIR}
install -m 0755 ${S}/bootloader/sw_memcfg_overlay.pl ${D}${BINDIR}

View File

@@ -652,6 +652,15 @@ if [ $have_odmsign_func -eq 1 -a $want_signing -eq 1 ]; then
BCTARGS="$bctargs --bct_backup"
L4T_CONF_DTBO="L4TConfiguration.dtbo"
rootfs_ab=0
FLASHARGS="--chip 0x23 --bl uefi_jetson_with_dtb.bin \
--sdram_config $sdramcfg_files \
--odmdata $odmdata \
--applet mb1_t234_prod.bin \
--cmd \"$tfcmd\" $skipuid \
--cfg flash.xml \
--bct_backup \
$bctargs $extdevargs $BINSARGS"
FBARGS="--cmd \"$tfcmd\""
. "$here/odmsign.func"
(odmsign_ext_sign_and_flash) || exit 1
if [ "$CHIPID" = "0x23" ]; then
@@ -680,9 +689,8 @@ if [ $have_odmsign_func -eq 1 -a $want_signing -eq 1 ]; then
exit 0
fi
touch odmsign.func
fi
if [ "$CHIPID" = "0x23" ]; then
flashcmd="python3 $flashappname ${inst_args} $FLASHARGS"
else
flashcmd="python3 $flashappname ${inst_args} --chip 0x23 --bl uefi_jetson_with_dtb.bin \
--sdram_config $sdramcfg_files \
--odmdata $odmdata \

View File

@@ -9,12 +9,12 @@ LIC_FILES_CHKSUM += "\
file://usr/share/doc/nvidia-tegra/LICENSE.libnvcam_imageencoder;md5=059e39d33711ff9e6a76760cffcf0811 \
"
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'gstreamer')};subdir=${BP};name=gstreamer"
SRC_COMMON_DEBS += "${@l4t_deb_pkgname(d, 'gstreamer')};subdir=${BP};name=gstreamer"
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'core')};subdir=${BP};name=core"
MAINSUM = "7aebbee250f68886d6fe6959c3c0c9efa52c24c1c76178f9f6a74dc53c180faa"
GSTSUM = "1bca7270934650a3884b934c4bdb5695730a6de8e10cf961968012af13eccb03"
CORESUM = "e32ade8d9abebedaffdc922c513152ea9686aa965d9e10514647dfccb17ebdf1"
MAINSUM = "a61f87e7602a14acb06a05e37687d55d6991b22ca5adb76ceb2858a2a32b3d07"
GSTSUM = "444765a7319a66cc9359afeca2f1939772342f698cb6e62cd8b9c23d38a96659"
CORESUM = "b7c76d1082f467b0a2ecd57bf3da343c1ef2331e1072223c33419be084cc8b72"
SRC_URI[gstreamer.sha256sum] = "${GSTSUM}"
SRC_URI[core.sha256sum] = "${CORESUM}"
@@ -27,26 +27,26 @@ PACKAGECONFIG[x11] = ",,gtk+3 libx11 glib-2.0 cairo"
TEGRA_LIBRARIES_EXTRACT += "usr/sbin var/nvidia"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvargus.so \
tegra/libnvargus_socketclient.so \
tegra/libnvargus_socketserver.so \
tegra/libnvcam_imageencoder.so \
tegra/libnvcameratools.so \
tegra/libnvcamerautils.so \
tegra/libnvcamlog.so \
tegra/libnvcamv4l2.so \
tegra/libnvcapture.so \
tegra/libnveglstreamproducer.so \
tegra/libnvfusacapinterface.so \
tegra/libnvfusacap.so \
tegra/libnvisp.so \
tegra/libnvisppg.so \
tegra/libnvmedia_isp_ext.so \
tegra/libnvfnet.so \
tegra/libnvfnetstoredefog.so \
tegra/libnvfnetstorehdfx.so \
tegra/libnvodm_imager.so \
tegra/libnvscf.so \
nvidia/libnvargus.so \
nvidia/libnvargus_socketclient.so \
nvidia/libnvargus_socketserver.so \
nvidia/libnvcam_imageencoder.so \
nvidia/libnvcameratools.so \
nvidia/libnvcamerautils.so \
nvidia/libnvcamlog.so \
nvidia/libnvcamv4l2.so \
nvidia/libnvcapture.so \
nvidia/libnveglstreamproducer.so \
nvidia/libnvfusacapinterface.so \
nvidia/libnvfusacap.so \
nvidia/libnvisp.so \
nvidia/libnvisppg.so \
nvidia/libnvmedia_isp_ext.so \
nvidia/libnvfnet.so \
nvidia/libnvfnetstoredefog.so \
nvidia/libnvfnetstorehdfx.so \
nvidia/libnvodm_imager.so \
nvidia/libnvscf.so \
"
do_install() {
@@ -55,7 +55,7 @@ do_install() {
cp -R ${B}/var/nvidia ${D}${localstatedir}/
if ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'true', 'false', d)}; then
install -d ${D}${libdir}/libv4l/plugins/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so ${D}${libdir}/libv4l/plugins/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/libv4l2_nvargus.so ${D}${libdir}/libv4l/plugins/
fi
install -d ${D}${sbindir}
install -m755 ${B}/usr/sbin/nvargus-daemon ${D}${sbindir}/

View File

@@ -1,43 +0,0 @@
L4T_DEB_COPYRIGHT_MD5 = "8dc9729e1dc38aac4adb4bd6f6e3b370"
require tegra-debian-libraries-common.inc
LICENSE += "& Apache-2.0"
LIC_FILES_CHKSUM += "file://usr/share/doc/nvidia-tegra/LICENSE.tegra_sensors;md5=e7fe81c64aaee40b3d9e5b11c3e0ea58"
MAINSUM = "e32ade8d9abebedaffdc922c513152ea9686aa965d9e10514647dfccb17ebdf1"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvcolorutil.so \
tegra/libnvdc.so \
tegra/libnvddk_2d_v2.so \
tegra/libnvddk_vic.so \
tegra/libnvdla_compiler.so \
tegra/libnvdla_runtime.so \
tegra/libnvidia-tls.so.${L4T_VERSION} \
tegra/libnvimp.so \
tegra/libnvll.so \
tegra/libnvos.so \
tegra/libnvphs.so \
tegra/libnvrm_chip.so \
tegra/libnvrm_gpu.so \
tegra/libnvrm_host1x.so \
tegra/libnvrm_mem.so \
tegra/libnvrm_stream.so \
tegra/libnvrm_surface.so \
tegra/libnvrm_sync.so \
tegra/libnvsciipc.so \
tegra/libnvsocsys.so \
tegra/libnvvic.so \
tegra/libsensors.hal-client.nvs.so \
tegra/libsensors.l4t.no_fusion.nvs.so \
tegra/libsensors_hal.nvs.so \
tegra/libnvisp_utils.so \
tegra/libnvpva.so \
tegra/libnvpvaumd.so \
tegra/libnvpva_algorithms.so \
"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
RRECOMMENDS:${PN} = "kernel-module-nvgpu"

View File

@@ -0,0 +1,43 @@
L4T_DEB_COPYRIGHT_MD5 = "8dc9729e1dc38aac4adb4bd6f6e3b370"
require tegra-debian-libraries-common.inc
LICENSE += "& Apache-2.0"
LIC_FILES_CHKSUM += "file://usr/share/doc/nvidia-tegra/LICENSE.tegra_sensors;md5=e7fe81c64aaee40b3d9e5b11c3e0ea58"
MAINSUM = "b7c76d1082f467b0a2ecd57bf3da343c1ef2331e1072223c33419be084cc8b72"
TEGRA_LIBRARIES_TO_INSTALL = "\
nvidia/libnvcolorutil.so \
nvidia/libnvdc.so \
nvidia/libnvddk_2d_v2.so \
nvidia/libnvddk_vic.so \
nvidia/libnvdla_runtime.so \
nvidia/libnvidia-rmapi-tegra.so.${L4T_LIB_VERSION} \
nvidia/libnvidia-tls.so.${L4T_LIB_VERSION} \
nvidia/libnvimp.so \
nvidia/libnvisp_utils.so \
nvidia/libnvos.so \
nvidia/libnvphs.so \
nvidia/libnvpva.so \
nvidia/libnvpva_algorithms.so \
nvidia/libnvpvaumd.so \
nvidia/libnvrm_chip.so \
nvidia/libnvrm_gpu.so \
nvidia/libnvrm_host1x.so \
nvidia/libnvrm_mem.so \
nvidia/libnvrm_stream.so \
nvidia/libnvrm_surface.so \
nvidia/libnvrm_sync.so \
nvidia/libnvsciipc.so \
nvidia/libnvsocsys.so \
nvidia/libnvtegrahv.so \
nvidia/libnvvic.so \
nvidia/libsensors.hal-client.nvs.so \
nvidia/libsensors.l4t.no_fusion.nvs.so \
nvidia/libsensors_hal.nvs.so \
"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
RRECOMMENDS:${PN} = "kernel-module-nvgpu"

View File

@@ -4,31 +4,32 @@ DEPENDS = "tegra-libraries-core"
require tegra-debian-libraries-common.inc
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, '3d-core')};subdir=${BP};name=core3d"
MAINSUM = "536efdd1b67fee6491d311b640f4a6665700101b5818855897d2bed26f2dbab5"
CORE3DSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "f6ed51bdfc9e4ffb8f17c288413441b88a8a3dabd0b09bdec88089f19c4dc986"
CORE3DSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
SRC_URI[core3d.sha256sum] = "${CORE3DSUM}"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libcuda.so.1.1 \
tegra/libnvidia-ptxjitcompiler.so.${L4T_VERSION} \
tegra/libnvidia-nvvm.so.${L4T_VERSION} \
nvidia/libcuda.so.1.1 \
nvidia/libnvcudla.so \
nvidia/libnvidia-ptxjitcompiler.so.${L4T_LIB_VERSION} \
nvidia/libnvidia-nvvm.so.${L4T_LIB_VERSION} \
"
do_install() {
install_libraries
ln -sf libcuda.so.1.1 ${D}${libdir}/libcuda.so
ln -sf libcuda.so.1.1 ${D}${libdir}/libcuda.so.1
ln -sf libnvidia-ptxjitcompiler.so.${L4T_VERSION} ${D}${libdir}/libnvidia-ptxjitcompiler.so.1
ln -sf libnvidia-nvvm.so.${L4T_VERSION} ${D}${libdir}/libnvidia-nvvm.so.4
ln -sf libnvidia-nvvm.so.${L4T_VERSION} ${D}${libdir}/libnvidia-nvvm.so
ln -sf libnvidia-ptxjitcompiler.so.${L4T_LIB_VERSION} ${D}${libdir}/libnvidia-ptxjitcompiler.so.1
ln -sf libnvidia-nvvm.so.${L4T_LIB_VERSION} ${D}${libdir}/libnvidia-nvvm.so.4
ln -sf libnvidia-nvvm.so.${L4T_LIB_VERSION} ${D}${libdir}/libnvidia-nvvm.so
# This is done to fix docker passthroughs
# libnvcucompat.so is part of base passthrough and will get mounted to /usr/lib/aarch64-linux-gnu
# However, in nvidia stock containers this file is already populated with a symlink to tegra/libnvcucompat.so
# Hence, NVIDIA wants us to mount this file to `/usr/lib/aarch64-linux-gnu/tegra/`
# However, in nvidia stock containers this file is already populated with a symlink to nvidia/libnvcucompat.so
# Hence, NVIDIA wants us to mount this file to `/usr/lib/aarch64-linux-gnu/nvidia/`
# This fix is used for mounting the file at `/usr/lib/aarch64-linux-gnu` with different name
# and then overriding the symlink for the new file name
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/libnvcucompat.so ${D}${libdir}/libnvcucompat.so.${L4T_VERSION}
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/libnvcucompat.so ${D}${libdir}/libnvcucompat.so.${L4T_VERSION}
ln -sf libnvcucompat.so.${L4T_VERSION} ${D}${libdir}/libnvcucompat.so
}

View File

@@ -0,0 +1,38 @@
SUMMARY = "NVIDIA DLA Compiler"
HOMEPAGE = "http://developer.nvidia.com/jetson"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://usr/share/doc/nvidia-l4t-dla-compiler/copyright;md5=45d9a257d98fb290f71e4f5f87f805b4"
inherit l4t_deb_pkgfeed
SRC_COMMON_DEBS = "nvidia-l4t-dla-compiler_${PV}_arm64.deb;subdir=${BPN}"
PV .= "${@l4t_bsp_debian_version_suffix(d, pkgname='nvidia-l4t-dla-compiler')}"
SRC_URI[sha256sum] = "2af029d8ba70f1cbda62f1f8053c4590363a77754e26c5c043bf7d744f678530"
COMPATIBLE_MACHINE = "(tegra)"
PACKAGE_ARCH = "${TEGRA_PKGARCH}"
S = "${WORKDIR}/${BPN}"
B = "${S}"
COMPATIBLE_MACHINE = "(tegra)"
do_configure() {
:
}
do_compile() {
:
}
do_install() {
install -d ${D}${libdir}
install -m 0644 usr/lib/aarch64-linux-gnu/nvidia/libnvdla_compiler.so ${D}${libdir}
}
RDEPENDS:${PN} = "tegra-libraries-core"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
INSANE_SKIP:${PN} = "already-stripped"

View File

@@ -5,15 +5,14 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-3d-core"
require tegra-debian-libraries-common.inc
MAINSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra-egl/libEGL_nvidia.so.0 \
tegra/libnvidia-eglcore.so.${L4T_VERSION} \
tegra/libnvidia-glsi.so.${L4T_VERSION} \
tegra/libnvidia-glvkspirv.so.${L4T_VERSION} \
tegra/libnvidia-rmapi-tegra.so.${L4T_VERSION} \
tegra/libnvidia-rtcore.so.${L4T_VERSION} \
nvidia/libnvidia-eglcore.so.${L4T_LIB_VERSION} \
nvidia/libnvidia-glsi.so.${L4T_LIB_VERSION} \
nvidia/libnvidia-glvkspirv.so.${L4T_LIB_VERSION} \
nvidia/libnvidia-rtcore.so.${L4T_LIB_VERSION} \
"
do_install() {

View File

@@ -5,12 +5,12 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-gbm"
require tegra-debian-libraries-common.inc
MAINSUM = "4366f7c92eef83ed726dfc4476aec89de8e8db31eeea9be4c39a8b68f1fcb57b"
MAINSUM = "a1d9ca96034773b8740563863483b9256da485d604ee2935a2e932cebcf70ca3"
RPROVIDES:${PN} += "tegra-gbm-backend"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvidia-allocator.so.1 \
nvidia/libnvidia-allocator.so.1 \
"
do_install() {

View File

@@ -5,7 +5,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-3d-core"
require tegra-debian-libraries-common.inc
MAINSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra-egl/libGLESv1_CM_nvidia.so.1 \

View File

@@ -5,15 +5,15 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-3d-core"
require tegra-debian-libraries-common.inc
MAINSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
inherit features_check
REQUIRED_DISTRO_FEATURES = "x11"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libGLX_nvidia.so.0 \
tegra/libnvidia-glcore.so.${L4T_VERSION} \
nvidia/libGLX_nvidia.so.0 \
nvidia/libnvidia-glcore.so.${L4T_LIB_VERSION} \
"
RDEPENDS:${PN} = "libxcb-glx"

View File

@@ -7,14 +7,14 @@ require tegra-debian-libraries-common.inc
LICENSE += "& MIT & BSD-3-Clause"
MAINSUM = "6bcecffe065e4be945d88e0312f31a1802eaf2d1afcf5e9822e934085fe7354a"
MAINSUM = "cf2222be0fa337c2d0404ced0418befe87d5aace999c0bad175fb339f1ac4d48"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvdsbufferpool.so.1.0.0 \
nvidia/libnvdsbufferpool.so.1.0.0 \
"
do_install() {

View File

@@ -3,15 +3,15 @@ DEPENDS = "tegra-libraries-core virtual/egl"
require tegra-debian-libraries-common.inc
MAINSUM = "ad47d76227d8b4bfcd1f5c50305359b8f7fa9ce2358f90f68ced78cf554af077"
MAINSUM = "c3c78ebf8df9317cc3316b704d5fb3666053af50a695b80987f6ed9b9c5e8fe1"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvbuf_fdmap.so.1.0.0 \
tegra/libnvbufsurface.so.1.0.0 \
nvidia/libnvbuf_fdmap.so.1.0.0 \
nvidia/libnvbufsurface.so.1.0.0 \
"
do_install() {

View File

@@ -5,15 +5,15 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-multimedia"
require tegra-debian-libraries-common.inc
MAINSUM = "6bcecffe065e4be945d88e0312f31a1802eaf2d1afcf5e9822e934085fe7354a"
MAINSUM = "cf2222be0fa337c2d0404ced0418befe87d5aace999c0bad175fb339f1ac4d48"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libtegrav4l2.so \
tegra/libnvcuvidv4l2.so \
nvidia/libtegrav4l2.so \
nvidia/libnvcuvidv4l2.so \
"
TEGRA_PLUGINS = "\
@@ -25,7 +25,7 @@ do_install() {
install_libraries
install -d ${D}${libdir}/libv4l/plugins
for f in ${TEGRA_PLUGINS}; do
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/$f ${D}${libdir}/libv4l/plugins/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/$f ${D}${libdir}/libv4l/plugins/
done
}

View File

@@ -1,71 +0,0 @@
L4T_DEB_COPYRIGHT_MD5 = "770b0fc2a5cffa1d2b7eda7393e6b012"
DEPENDS = "tegra-libraries-core tegra-libraries-cuda tegra-libraries-multimedia-utils tegra-libraries-nvsci pango cairo glib-2.0 virtual/egl"
require tegra-debian-libraries-common.inc
LICENSE += "& MIT & BSD-3-Clause"
LIC_FILES_CHKSUM += "\
file://usr/share/doc/nvidia-tegra/LICENSE.libnveventlib;md5=42479ac5ddc96ba7997ecf0636e707d2 \
file://usr/share/doc/nvidia-tegra/LICENSE.libnvtracebuf;md5=42479ac5ddc96ba7997ecf0636e707d2 \
file://usr/share/doc/nvidia-tegra/LICENSE.libnvjpeg;md5=1b873f8976e4e3683c04133e3035be98 \
"
MAINSUM = "6bcecffe065e4be945d88e0312f31a1802eaf2d1afcf5e9822e934085fe7354a"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvbufsurftransform.so.1.0.0 \
tegra/libnvdecode2eglimage.so \
tegra/libnveventlib.so \
tegra/libnvexif.so \
tegra/libnvid_mapper.so.1.0.0 \
tegra/libnvjpeg.so \
tegra/libnvmedia.so \
tegra/libnvmedia2d.so \
tegra/libnvmedia_2d.so \
tegra/libnvmedia_dla.so \
tegra/libnvmedialdc.so \
tegra/libnvmedia_eglstream.so \
tegra/libnvmedia_ide_parser.so \
tegra/libnvmedia_ide_sci.so \
tegra/libnvmedia_iep_sci.so \
tegra/libnvmedia_ijpd_sci.so \
tegra/libnvmedia_ijpe_sci.so \
tegra/libnvmedia_iofa_sci.so \
tegra/libnvmedia_sci_overlay.so \
tegra/libnvmedia_tensor.so \
tegra/libnvmm.so \
tegra/libnvmm_contentpipe.so \
tegra/libnvmm_parser.so \
tegra/libnvmm_utils.so \
tegra/libnvmmlite.so \
tegra/libnvmmlite_image.so \
tegra/libnvmmlite_utils.so \
tegra/libnvmmlite_video.so \
tegra/libnvofsdk.so \
tegra/libnvoggopus.so \
tegra/libnvosd.so \
tegra/libnvparser.so \
tegra/libnvtracebuf.so \
tegra/libnvtvmr.so \
tegra/libnvtvmr_2d.so \
tegra/libnvvideo.so \
tegra/libnvvideoencode_ppe.so \
"
do_install() {
install_libraries
for libname in nvbufsurftransform nvid_mapper; do
ln -sf lib$libname.so.1.0.0 ${D}${libdir}/lib$libname.so.1
ln -sf lib$libname.so.1.0.0 ${D}${libdir}/lib$libname.so
done
}
PACKAGES =+ "${PN}-osd"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
FILES:${PN}-osd = "${libdir}/libnvosd*"
RDEPENDS:${PN}-osd = "liberation-fonts"

View File

@@ -0,0 +1,70 @@
L4T_DEB_COPYRIGHT_MD5 = "770b0fc2a5cffa1d2b7eda7393e6b012"
DEPENDS = "tegra-libraries-core tegra-libraries-cuda tegra-libraries-multimedia-utils tegra-libraries-nvsci pango cairo glib-2.0 virtual/egl"
require tegra-debian-libraries-common.inc
LICENSE += "& MIT & BSD-3-Clause"
LIC_FILES_CHKSUM += "\
file://usr/share/doc/nvidia-tegra/LICENSE.libnveventlib;md5=42479ac5ddc96ba7997ecf0636e707d2 \
file://usr/share/doc/nvidia-tegra/LICENSE.libnvtracebuf;md5=42479ac5ddc96ba7997ecf0636e707d2 \
file://usr/share/doc/nvidia-tegra/LICENSE.libnvjpeg;md5=1b873f8976e4e3683c04133e3035be98 \
"
MAINSUM = "cf2222be0fa337c2d0404ced0418befe87d5aace999c0bad175fb339f1ac4d48"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
nvidia/libnvbufsurftransform.so.1.0.0 \
nvidia/libnvdecode2eglimage.so \
nvidia/libnveventlib.so \
nvidia/libnvexif.so \
nvidia/libnvid_mapper.so.1.0.0 \
nvidia/libnvjpeg.so \
nvidia/libnvmedia.so \
nvidia/libnvmedia2d.so \
nvidia/libnvmedia_2d.so \
nvidia/libnvmedia_dla.so \
nvidia/libnvmedialdc.so \
nvidia/libnvmedia_eglstream.so \
nvidia/libnvmedia_ide_parser.so \
nvidia/libnvmedia_ide_sci.so \
nvidia/libnvmedia_iep_sci.so \
nvidia/libnvmedia_ijpd_sci.so \
nvidia/libnvmedia_ijpe_sci.so \
nvidia/libnvmedia_iofa_sci.so \
nvidia/libnvmedia_tensor.so \
nvidia/libnvmm.so \
nvidia/libnvmm_contentpipe.so \
nvidia/libnvmm_parser.so \
nvidia/libnvmm_utils.so \
nvidia/libnvmmlite.so \
nvidia/libnvmmlite_image.so \
nvidia/libnvmmlite_utils.so \
nvidia/libnvmmlite_video.so \
nvidia/libnvofsdk.so \
nvidia/libnvoggopus.so \
nvidia/libnvosd.so \
nvidia/libnvparser.so \
nvidia/libnvtracebuf.so \
nvidia/libnvtvmr.so \
nvidia/libnvtvmr_2d.so \
nvidia/libnvvideo.so \
nvidia/libnvvideoencode_ppe.so \
"
do_install() {
install_libraries
for libname in nvbufsurftransform nvid_mapper; do
ln -sf lib$libname.so.1.0.0 ${D}${libdir}/lib$libname.so.1
ln -sf lib$libname.so.1.0.0 ${D}${libdir}/lib$libname.so
done
}
PACKAGES =+ "${PN}-osd"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
FILES:${PN}-osd = "${libdir}/libnvosd*"
RDEPENDS:${PN}-osd = "liberation-fonts"

View File

@@ -7,10 +7,10 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-gstreamer"
require tegra-debian-libraries-common.inc
MAINSUM = "1bca7270934650a3884b934c4bdb5695730a6de8e10cf961968012af13eccb03"
MAINSUM = "444765a7319a66cc9359afeca2f1939772342f698cb6e62cd8b9c23d38a96659"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libgstnvdsseimeta.so.1.0.0 \
nvidia/libgstnvdsseimeta.so.1.0.0 \
"
do_install() {
install_libraries

View File

@@ -0,0 +1,21 @@
L4T_DEB_COPYRIGHT_MD5 = "91cf75b2c9b94ab2c5ee5b09aafb954e"
DEPENDS = "tegra-libraries-core"
require tegra-debian-libraries-common.inc
MAINSUM = "12fb19d767ae9093e60dd03f85b6e114e967ddda61538e0f62649f9ec536dc41"
TEGRA_LIBRARIES_TO_INSTALL = "\
nvidia/libnvidia-ml.so.1 \
"
do_install() {
install_libraries
for libname in nvidia-ml; do
ln -sf lib$libname.so.1 ${D}${libdir}/lib$libname.so
done
install -D -m 0755 ${S}/usr/sbin/nvidia-smi ${D}${sbindir}/nvidia-smi
}
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
RRECOMMENDS:${PN} = "kernel-module-nvgpu"

View File

@@ -6,14 +6,14 @@ require tegra-debian-libraries-common.inc
LICENSE += "& MIT"
LIC_FILES_CHKSUM += "file://usr/share/doc/nvidia-tegra/LICENSE.libnvscibuf;md5=0cd5a346aecd6451e0224bf024e84756"
MAINSUM = "eb57885948b104419157a6af65226f8ed8261a324c52ed4fd328a084c20a81ee"
MAINSUM = "9bfabd624076d55c6f649cb1d5d82cbecac9f5cefbe3e16c03005d179dc2bebe"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvscibuf.so.1 \
tegra/libnvscicommon.so.1 \
tegra/libnvscievent.so \
tegra/libnvscistream.so.1 \
tegra/libnvscisync.so.1 \
nvidia/libnvscibuf.so.1 \
nvidia/libnvscicommon.so.1 \
nvidia/libnvscievent.so \
nvidia/libnvscistream.so.1 \
nvidia/libnvscisync.so.1 \
"
do_install() {
install_libraries

View File

@@ -1,29 +0,0 @@
L4T_DEB_COPYRIGHT_MD5 = "8c84e973feeab684f7575379648f700c"
DEPENDS = "tegra-libraries-core tegra-libraries-multimedia alsa-lib"
L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-multimedia"
require tegra-debian-libraries-common.inc
MAINSUM = "6bcecffe065e4be945d88e0312f31a1802eaf2d1afcf5e9822e934085fe7354a"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvomx.so \
tegra/libnvomxilclient.so \
"
# XXX---
# Temporary for use with binary-only NVIDIA OpenMAX gstreamer plugin
do_install:append() {
install -d ${D}/usr/lib/aarch64-linux-gnu/tegra
ln -sf ${libdir}/libnvomx.so ${D}/usr/lib/aarch64-linux-gnu/tegra/libnvomx.so
}
FILES:${PN} += "/usr/lib/aarch64-linux-gnu/tegra"
# ---XXX
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"

View File

@@ -0,0 +1,20 @@
L4T_DEB_COPYRIGHT_MD5 = "8c84e973feeab684f7575379648f700c"
DEPENDS = "tegra-libraries-core tegra-libraries-multimedia alsa-lib"
L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-multimedia"
require tegra-debian-libraries-common.inc
MAINSUM = "cf2222be0fa337c2d0404ced0418befe87d5aace999c0bad175fb339f1ac4d48"
inherit features_check
REQUIRED_DISTRO_FEATURES = "opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
nvidia/libnvomx.so \
nvidia/libnvomxilclient.so \
"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"

View File

@@ -3,10 +3,10 @@ DEPENDS = "tegra-libraries-core tegra-libraries-nvsci tegra-libraries-cuda"
require tegra-debian-libraries-common.inc
MAINSUM = "371b956555d8869c2aba3f880cd1111378a347efea61896df0a1e0d4df8dcd90"
MAINSUM = "e7dd4714b2e886ab2f5aa8b884cb9ac5e12a88cafbad8f7bb02fb7df37e291e1"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvpvaintf.so \
nvidia/libnvpvaintf.so \
"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"

View File

@@ -5,23 +5,18 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-3d-core"
require tegra-debian-libraries-common.inc
MAINSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
inherit features_check
REQUIRED_DISTRO_FEATURES = "vulkan opengl"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvidia-vulkan-producer.so \
"
do_install() {
install_libraries
install -d ${D}/usr/lib/aarch64-linux-gnu/tegra
install -d ${D}/usr/lib/aarch64-linux-gnu/nvidia
if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then
install -m644 ${S}/usr/lib/aarch64-linux-gnu/tegra/nvidia_icd.json ${D}/usr/lib/aarch64-linux-gnu/tegra/
install -m644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/nvidia_icd.json ${D}/usr/lib/aarch64-linux-gnu/nvidia/
install -d ${D}${sysconfdir}/vulkan/icd.d
ln -sf /usr/lib/aarch64-linux-gnu/tegra/nvidia_icd.json ${D}${sysconfdir}/vulkan/icd.d/
ln -sf /usr/lib/aarch64-linux-gnu/nvidia/nvidia_icd.json ${D}${sysconfdir}/vulkan/icd.d/
fi
}

View File

@@ -4,10 +4,10 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-3d-core"
require tegra-debian-libraries-common.inc
MAINSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libnvwinsys.so \
nvidia/libnvwinsys.so \
"
FILES_SOLIBSDEV = ""

View File

@@ -6,7 +6,7 @@ DEPENDS = "tegra-nvpower"
require tegra-debian-libraries-common.inc
MAINSUM = "d3ec15bd85fd4733fef13e530fbd7f0436268e18399a580d9ab853ec7f939745"
MAINSUM = "6d8d0c59c7d29e462dc0e7aa258fcc8dc3254bc8b689b25249f5621ed5fc62c8"
SRC_URI += "\
file://nvfancontrol.init \

View File

@@ -8,16 +8,16 @@ require tegra-debian-libraries-common.inc
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'init')};subdir=${BP};name=init"
MAINSUM = "e32ade8d9abebedaffdc922c513152ea9686aa965d9e10514647dfccb17ebdf1"
INITSUM = "9d9e5d2c912e9432ba189e6702e0135a72db725a8ee22db3f8475d9c9374b77d"
MAINSUM = "b7c76d1082f467b0a2ecd57bf3da343c1ef2331e1072223c33419be084cc8b72"
INITSUM = "3688e38dec23024098f969f5a46108a1f3daa86f48e904a14edcbe71b734324d"
SRC_URI[init.sha256sum] = "${INITSUM}"
do_install() {
install -d ${D}${sbindir} ${D}${sysconfdir} ${D}${libdir}
install -m 0755 ${S}/usr/sbin/nvphs* ${S}/usr/sbin/nvsetprop ${D}${sbindir}/
install -m 0644 ${S}/etc/nvphsd_common.conf ${D}${sysconfdir}/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/libnvphsd* ${D}${libdir}/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/tegra/libnvgov* ${D}${libdir}/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/libnvphsd* ${D}${libdir}/
install -m 0644 ${S}/usr/lib/aarch64-linux-gnu/nvidia/libnvgov* ${D}${libdir}/
}
PACKAGES = "${PN}"

View File

@@ -5,7 +5,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-nvpmodel"
require tegra-debian-libraries-common.inc
MAINSUM = "cbf7b09a404bcd2adf33a0dad7eb977dde3914d0639984f2b046314efec55713"
MAINSUM = "242de3ae1dd16188c17d594ab9212434ff99dbcf8f0f825e918e219f20dab919"
DEPENDS = "tegra-libraries-core"

View File

@@ -1,18 +1,22 @@
From b2cdefaae658c9b55f29ae17ca2d0decd1bd79a9 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Fri, 25 Mar 2022 12:51:57 -0700
From dae2c99a22f25ed54e4eed69ca26066bdf88e8c2 Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Fri, 3 Nov 2023 23:44:46 +0000
Subject: [PATCH] Drop bc usage and remove symlink creation functions
Signed-off-by: Matt Madison <matt@madison.systems>
---
etc/systemd/nvpower.sh | 81 +-----------------------------------------
1 file changed, 1 insertion(+), 80 deletions(-)
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
Index: tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
Signed-off-by: Matt Madison <matt@madison.systems>
---
etc/systemd/nvpower.sh | 164 ++++-------------------------------------
1 file changed, 13 insertions(+), 151 deletions(-)
Index: tegra-nvpower-36.3.0-20240424200557/etc/systemd/nvpower.sh
===================================================================
--- tegra-nvpower-35.4.1-20230801124926.orig/etc/systemd/nvpower.sh
+++ tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
@@ -119,128 +119,6 @@ function set_power_state_perm()
--- tegra-nvpower-36.3.0-20240424200557.orig/etc/systemd/nvpower.sh
+++ tegra-nvpower-36.3.0-20240424200557/etc/systemd/nvpower.sh
@@ -142,145 +142,6 @@ function set_power_state_perm()
fi
}
@@ -57,6 +61,8 @@ Index: tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
- elif [ "${machine}" = "p3701-0000-as-p3701-0004" ] || \
- [ "${machine}" = "p3701-0004" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_p3701_0004.conf"
- elif [ "${machine}" = "p3701-0008-safety" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_p3701_0008_3740_0002_safety.conf"
- elif [ "${machine}" = "p3701-0008" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_p3701_0008.conf"
- if [ "${cvb}" = "p3740-0002-c01" ]; then
@@ -75,9 +81,17 @@ Index: tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
- elif [ "${machine}" = "p3767-0004" ] || \
- [ "${machine}" = "p3767-0000-as-p3767-0004" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_p3767_0004.conf"
- elif [ "${machine}" = "taylor-high" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_p3767_0000_taylor_high.conf"
- elif [ "${machine}" = "taylor-low" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_p3767_0000_taylor_low.conf"
- else
- conf_file="/etc/nvpmodel/nvpmodel_p3701_0000.conf"
- fi
- elif [ "${SOCFAMILY}" = "tegra239" ]; then
- if [ "${machine}" = "e2423" ]; then
- conf_file="/etc/nvpmodel/nvpmodel_e2423.conf"
- fi
- fi
-
- if [ "${conf_file}" != "" ]; then
@@ -111,7 +125,8 @@ Index: tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
- if [ "${machine}" = "p3701-0008" ]; then
- conf_file="/etc/nvpower/nvfancontrol/nvfancontrol_p3701_0008.conf"
- fi
- elif [[ "${machine}" =~ "p3767" ]]; then
- elif [[ "${machine}" =~ "p3767" ]] ||
- [ "${machine}" = "taylor-high" ] || [ "${machine}" = "taylor-low" ]; then
- # All p3767 series share the same fan settings
- conf_file="/etc/nvpower/nvfancontrol/nvfancontrol_p3767_0000.conf"
- else
@@ -128,6 +143,12 @@ Index: tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
- fi
- fi
-
- if [ "${SOCFAMILY}" = "tegra239" ]; then
- if [ "${machine}" = "e2423" ]; then
- conf_file="/etc/nvpower/nvfancontrol/nvfancontrol_e2423.conf"
- fi
- fi
-
- if [ "${conf_file}" != "" ]; then
- if [ -e "${conf_file}" ]; then
- ln -sf "${conf_file}" /etc/nvfancontrol.conf
@@ -141,21 +162,73 @@ Index: tegra-nvpower-35.4.1-20230801124926/etc/systemd/nvpower.sh
# CPU hotplug helper function that turns on/off the CPU cores in the specified range
# * Parameters:
# * ${1}: desired online status (0 for offline, 1 for online)
@@ -311,7 +189,7 @@ function set_cpu_governor()
*schedutil*)
# latest kernel is using the upstream driver and need to avoid setting
# schedutil governor on kstable.
- if [ "$(echo "${KERNEL_VERSION} < 5.11" | bc)" -eq 1 ]; then
+ if [ "${KERNEL_VERSION}" = "5.10" ]; then
CPU_SCHEDUTIL_GOV=1
fi
;;
@@ -587,8 +465,6 @@ SOCFAMILY=""
@@ -341,13 +202,8 @@ function set_cpufreq_governor()
desired_cpufreq_gov="performance"
if [ ${IS_SAFETY_PLATFORM} -eq 0 ]; then
- # Enable SCHEDUTIL governor for all SoC's except T194 in Kstable.
- if [ "${SOCFAMILY}" = "tegra194" ] &&
- [ "$(echo "${KERNEL_VERSION} >= 6.0" | bc)" -eq 1 ]; then
- :
- else
- desired_cpufreq_gov="schedutil"
- fi
+ # Enable SCHEDUTIL governor for all SoC's
+ desired_cpufreq_gov="schedutil"
fi
if [ -e "${CPUFREQ_AVAIL_GOVS}" ]; then
@@ -448,7 +304,7 @@ function set_devfreq_governor()
if [ ${IS_SAFETY_PLATFORM} -ne 0 ]; then
desired_devfreq_gov="performance"
else
- if [ "$(echo "${KERNEL_VERSION} == 5.15" | bc)" -eq 1 ]; then
+ if [ "${KERNEL_VERSION}" = "5.15" ]; then
desired_devfreq_gov="tegra_wmark"
fi
fi
@@ -487,10 +343,10 @@ function lock_emc_frequency()
# Set EMC_FREQ to max for Kernel version >= 5.15
# and when the Interconnect support is missing
- if [ "$(echo "${KERNEL_VERSION} >= 5.15" | bc)" -eq 1 ]; then
+ if [ "${KERNEL_VERSION}" = "5.15" ]; then
if [ -e "${EMC_MAX_RATE}" ] && [ -e "${EMC_RATE}" ]; then
- AVG_BW=$(grep "Memory Controller" ${ICC_NODE} | head -1 | awk -F ' ' '{print $3}')
- PEAK_BW=$(grep "Memory Controller" ${ICC_NODE}| head -1 | awk -F ' ' '{print $4}')
+ AVG_BW=$(grep "Memory Controller" ${ICC_NODE} | head -n 1 | awk -F ' ' '{print $3}')
+ PEAK_BW=$(grep "Memory Controller" ${ICC_NODE}| head -n 1 | awk -F ' ' '{print $4}')
if [[ -z "${AVG_BW}" && -z "${PEAK_BW}" ]] ||
[[ "${AVG_BW}" = "0" && "${PEAK_BW}" = "0" ]]; then
@@ -701,10 +557,12 @@ function setup_actmon()
debugfs_actmon="/sys/kernel/debug/tegra-host1x/actmon"
# Actmon settings should be the same across engines
- tee ${debugfs_actmon}/*/sample_period 1>/dev/null <<< 1500
- tee ${debugfs_actmon}/*/module0/consec_upper_num 1>/dev/null <<< 7
- tee ${debugfs_actmon}/*/module0/consec_lower_num 1>/dev/null <<< 7
- tee ${debugfs_actmon}/*/module0/k 1>/dev/null <<< 2
+ for engine in ${debugfs_actmon}/*; do
+ echo 1500 > $engine/sample_period
+ echo 7 > $engine/module0/consec_upper_num
+ echo 7 > $engine/module0/consec_lower_num
+ echo 2 > $engine/module0/k
+ done
}
SOCFAMILY=""
@@ -713,8 +571,6 @@ KERNEL_VERSION=$(uname -r | cut -d '.' -
set_socfamily
set_safety_flag
set_power_state_perm
-create_nvpmodel_symlink
-create_nvfancontrol_symlink
cpu_hotplug
set_cpu_governor
set_cpufreq_governor
set_cpu_floor_freq
@@ -725,3 +581,4 @@ validate_nvpmodel_conf
setup_hwmon
setup_tmp451
setup_actmon
+exit 0

View File

@@ -1,6 +1,7 @@
[Unit]
Description=NVIDIA power management setup
Before=graphical.target display-manager.service
After=systemd-modules-load.service
[Service]
Type=oneshot

View File

@@ -8,9 +8,9 @@ require tegra-debian-libraries-common.inc
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'init')};subdir=${BP};name=init"
SRC_SOC_DEBS += "${@l4t_deb_pkgname(d, 'tools')};subdir=${BP};name=tools"
MAINSUM = "e32ade8d9abebedaffdc922c513152ea9686aa965d9e10514647dfccb17ebdf1"
SRC_URI[init.sha256sum] = "9d9e5d2c912e9432ba189e6702e0135a72db725a8ee22db3f8475d9c9374b77d"
SRC_URI[tools.sha256sum] = "1f73e9f4a45de2150c9fe0954a5ddce4c3b387b0cc720583b46c29e0e1e0fcd8"
MAINSUM = "b7c76d1082f467b0a2ecd57bf3da343c1ef2331e1072223c33419be084cc8b72"
SRC_URI[init.sha256sum] = "3688e38dec23024098f969f5a46108a1f3daa86f48e904a14edcbe71b734324d"
SRC_URI[tools.sha256sum] = "438aef8ad1b9948c15a6268b914bce719cff9d391809da41a6ab2b59c26d82c0"
SRC_URI += "\
file://0001-Drop-bc-usage-and-remove-symlink-creation-functions.patch \
@@ -19,7 +19,7 @@ SRC_URI += "\
"
TEGRA_LIBRARIES_TO_INSTALL = "\
tegra/libjetsonpower.so \
nvidia/libjetsonpower.so \
"
do_install() {

View File

@@ -6,7 +6,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-init"
require tegra-debian-libraries-common.inc
MAINSUM = "9d9e5d2c912e9432ba189e6702e0135a72db725a8ee22db3f8475d9c9374b77d"
MAINSUM = "3688e38dec23024098f969f5a46108a1f3daa86f48e904a14edcbe71b734324d"
do_install() {
install -d ${D}${sbindir}

View File

@@ -10,8 +10,8 @@ SRC_SOC_DEBS += "\
${@l4t_deb_pkgname(d, 'init')};subdir=${BP};name=init \
"
MAINSUM = "1f73e9f4a45de2150c9fe0954a5ddce4c3b387b0cc720583b46c29e0e1e0fcd8"
INITSUM = "9d9e5d2c912e9432ba189e6702e0135a72db725a8ee22db3f8475d9c9374b77d"
MAINSUM = "438aef8ad1b9948c15a6268b914bce719cff9d391809da41a6ab2b59c26d82c0"
INITSUM = "3688e38dec23024098f969f5a46108a1f3daa86f48e904a14edcbe71b734324d"
SRC_URI[init.sha256sum] = "${INITSUM}"
do_install() {

View File

@@ -5,7 +5,9 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-tools"
require tegra-debian-libraries-common.inc
MAINSUM = "1f73e9f4a45de2150c9fe0954a5ddce4c3b387b0cc720583b46c29e0e1e0fcd8"
DEPENDS = "tegra-libraries-core"
MAINSUM = "438aef8ad1b9948c15a6268b914bce719cff9d391809da41a6ab2b59c26d82c0"
do_install() {
install -d ${D}${sbindir}

View File

@@ -5,7 +5,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-tools"
require tegra-debian-libraries-common.inc
MAINSUM = "1f73e9f4a45de2150c9fe0954a5ddce4c3b387b0cc720583b46c29e0e1e0fcd8"
MAINSUM = "438aef8ad1b9948c15a6268b914bce719cff9d391809da41a6ab2b59c26d82c0"
do_install() {
install -d ${D}${bindir}

View File

@@ -5,7 +5,7 @@ L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-3d-core"
require tegra-debian-libraries-common.inc
MAINSUM = "38043813c3f3a31da46c9ebe05f2267fd10170ab083a11ab2ab5adc3679a69bb"
MAINSUM = "dceb18fadb29d6c95597bc7f0c0ad0c0ce9ae95ad38a0dbfbfb6cbc96e3bfc03"
do_install() {
install -d ${D}${libdir}/xorg/modules/drivers

View File

@@ -32,6 +32,5 @@ do_install() {
ALLOW_EMPTY:${PN} = "1"
SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('MACHINE_FEATURES', 'bluetooth', 'tegra-bluetooth.service', '', d)}"
FILES:${PN} += "${nonarch_base_libdir}/udev/rules.d"
RDEPENDS:${PN} = "${@bb.utils.contains('MACHINE_FEATURES', 'bluetooth', '${TEGRA_BT_SUPPORT_PACKAGE}', '', d)}"
RRECOMMENDS:${PN} = "kernel-module-bluedroid-pm"
RDEPENDS:${PN} = "${@bb.utils.contains('MACHINE_FEATURES', 'bluetooth', '${TEGRA_BT_SUPPORT_PACKAGE}', '', d)} nvidia-kernel-oot-bluetooth"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@@ -1,12 +1,14 @@
L4T_BSP_NAME = "${L4T_SRCS_NAME}"
SRC_URI = "${L4T_URI_BASE}/public_sources.tbz2;downloadfilename=${L4T_BSP_PREFIX}-public_sources-${L4T_VERSION}.tbz2"
SRC_URI[sha256sum] = "89368d7003c278cdcf3746501db0ba5aa01f8cf9b39f2205d2d16c7852ab523e"
SRC_URI[sha256sum] = "4e3ff614b07d73ed9013b9deefbc9d7a4e067936c89e206b4e3512c627a28094"
inherit l4t_bsp
unpack_tar_in_tar() {
cd ${UNPACKDIR}
tar -x -j -f ${SRC_ARCHIVE} ${TEGRA_SRC_SUBARCHIVE} --to-command="tar -x -j --no-same-owner -f- ${TEGRA_SRC_SUBARCHIVE_OPTS}"
for subarchive in ${TEGRA_SRC_SUBARCHIVE}; do
tar -x -j -f ${SRC_ARCHIVE} $subarchive --to-command="tar -x -j --no-same-owner -f- ${TEGRA_SRC_SUBARCHIVE_OPTS}"
done
if [ -n "${TEGRA_SRC_EXTRA_SUBARCHIVE}" ]; then
tar -x -j -f ${SRC_ARCHIVE} ${TEGRA_SRC_EXTRA_SUBARCHIVE} --to-command="tar -x -j --no-same-owner -f- ${TEGRA_SRC_EXTRA_SUBARCHIVE_OPTS}"
fi

View File

@@ -20,4 +20,5 @@ do_install() {
ALLOW_EMPTY:${PN} = "1"
FILES:${PN} += "${nonarch_base_libdir}/udev/rules.d"
RDEPENDS:${PN} += "nvidia-kernel-oot-wifi"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@@ -6,7 +6,7 @@
SUMMARY = "EDK2 Base Tools"
LICENSE = "BSD-2-Clause-Patent"
require edk2-firmware-core-tegra-35.5.0.inc
require edk2-firmware-core-tegra-36.3.0.inc
inherit native

View File

@@ -1,5 +1,5 @@
require edk2-firmware.inc
require edk2-firmware-core-tegra-35.5.0.inc
require edk2-firmware-core-tegra-36.3.0.inc
require conf/image-uefi.conf
LICENSE .= " & Proprietary"

View File

@@ -1,4 +1,4 @@
require edk2-firmware-tegra-35.5.0.inc
require edk2-firmware-tegra-36.3.0.inc
DESCRIPTION = "UEFI EDK2 Firmware for Jetson platforms"

View File

@@ -1,4 +1,4 @@
require edk2-firmware-tegra-35.5.0.inc
require edk2-firmware-tegra-36.3.0.inc
DESCRIPTION = "Standalone Memory Manager for OP-TEE on Jetson platforms"

View File

@@ -1,6 +1,6 @@
COMPATIBLE_MACHINE:class-target = "(cuda)"
COMPATIBLE_HOST = "(x86_64|aarch64)"
CUDA_VERSION ??= "11.4"
CUDA_VERSION ??= "12.2"
S = "${WORKDIR}/${BP}"
B = "${S}"

View File

@@ -1,16 +0,0 @@
CUDA_PKG = "cuda-cccl"
L4T_DEB_GROUP = "cuda-thrust"
require cuda-shared-binaries-11.8.inc
MAINSUM = "6e2c7702dfbb2ddc3ef2e291b26c3d993a6ef5e382a8ba78bf6d50b9b57feab8"
MAINSUM:x86-64 = "38dc61ecf5059b8b22dc7cae2e5aa1f09263b8b9295eb225f69b3d4d76778c53"
do_install:append() {
rm -rf ${D}${prefix}/local/cuda-${CUDA_VERSION}/lib
}
FILES:${PN} = "${prefix}/local/cuda-${CUDA_VERSION}/include"
FILES:${PN}-dev = ""
BBCLASSEXTEND = "native nativesdk"

View File

@@ -1,12 +0,0 @@
CUDA_PKG = "cuda-cccl"
L4T_DEB_GROUP = "cuda-thrust"
require cuda-shared-binaries.inc
MAINSUM = "1306a4ca4f83024bd3d02f24a2c911f69dd02c2ff6b6ef386a527e5bd717ff01"
MAINSUM:x86-64 = "11e2b7e5a9ce2006e2be47084de365fc79b441c53c6fae371b4b7a8b09696224"
FILES:${PN} = "${prefix}/local/cuda-${CUDA_VERSION}/include"
FILES:${PN}-dev = ""
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,14 @@
CUDA_PKG = "${BPN}"
require cuda-shared-binaries.inc
MAINSUM = "b61752a19b6e016cfc1eb10e5a64b8c8e624861f41a3dc4a37183034e8cb1006"
MAINSUM:x86-64 = "e104fc3d4288de50c92b1e25e8eff1f3781cebe46abf1b909017c06aa5bf8585"
FILES:${PN} = " \
${prefix}/local/cuda-${CUDA_VERSION}/include \
${prefix}/local/cuda-${CUDA_VERSION}/lib \
"
FILES:${PN}-dev = ""
BBCLASSEXTEND = "native nativesdk"

View File

@@ -1,22 +0,0 @@
DESCRIPTION = "Dummy recipe for bringing in CUDA command-line tools"
LICENSE = "MIT"
PR = "r1"
CUDA_COMPONENTS = "cuda-cupti-11-8 cuda-gdb-11-8 cuda-nvdisasm-11-8 cuda-nvtx-11-8 cuda-sanitizer-11-8"
DEPENDS = "${CUDA_COMPONENTS}"
do_fetch[noexec] = "1"
do_unpack[noexec] = "1"
do_patch[noexec] = "1"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install[noexec] = "1"
COMPATIBLE_MACHINE:class-target = "tegra"
PACKAGE_ARCH:class-target = "${TEGRA_PKGARCH}"
PACKAGES = "${PN} ${PN}-dev"
ALLOW_EMPTY:${PN} = "1"
RDEPENDS:${PN} = "${CUDA_COMPONENTS}"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -1,13 +0,0 @@
CUDA_PKG = "cuda-compat"
DEPENDS:tegra = "tegra-libraries-core"
require cuda-shared-binaries-11.8.inc
MAINSUM = "3014fc6796b2d693c09385c8561b87c4850294b59b5cff986f7813f2f3921cfa"
FILES:${PN} += "${prefix}/local/cuda-${CUDA_VERSION}/compat"
FILES_SOLIBSDEV = ""
SOLIBS = ".so*"
INSANE_SKIP:${PN} += "dev-so"

View File

@@ -0,0 +1,12 @@
CUDA_PKG = "${BPN}"
DEPENDS:tegra = "tegra-libraries-cuda"
require cuda-shared-binaries.inc
MAINSUM = "f4ac00c3c0cf7a5cca82407b121fd738914f1e763f5cb171c647142009be7a2f"
FILES:${PN} += "${prefix}/local/cuda-${CUDA_VERSION}/compat"
RDEPENDS:${PN} = "tegra-libraries-cuda"
INSANE_SKIP:${PN} += "dev-so"

View File

@@ -1,22 +0,0 @@
DESCRIPTION = "Dummy recipe for bringing in CUDA compilation tools"
LICENSE = "MIT"
PR = "r1"
CUDA_COMPONENTS = "cuda-cuobjdump-11-8 cuda-cuxxfilt-11-8 cuda-nvcc-11-8 cuda-nvprune-11-8"
DEPENDS = "${CUDA_COMPONENTS}"
do_fetch[noexec] = "1"
do_unpack[noexec] = "1"
do_patch[noexec] = "1"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install[noexec] = "1"
COMPATIBLE_MACHINE:class-target = "tegra"
PACKAGE_ARCH:class-target = "${TEGRA_PKGARCH}"
PACKAGES = "${PN} ${PN}-dev"
ALLOW_EMPTY:${PN} = "1"
RDEPENDS:${PN} = "${CUDA_COMPONENTS}"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,9 @@
CUDA_PKG = "${BPN}"
L4T_DEB_GROUP = "cuda-nvcc"
require cuda-shared-binaries.inc
MAINSUM = "f94c9173667d4f6a18f19d5a8c932c4ad0f461720967fb4c5193fa839cba0b3d"
MAINSUM:x86-64 = "89d501683cf088241e43033e8ab41108a032c160f95008dec98779904153ca50"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -1,35 +0,0 @@
CUDA_PKG = "cuda-cudart cuda-cudart-dev"
DEPENDS = "cuda-driver-11-8 cuda-nvcc-headers-11-8 cuda-cccl-11-8"
require cuda-shared-binaries-11.8.inc
MAINSUM = "ea6cecee948b673a9c49d9d94d160f2ad4a970a55e3a60994649ad8c9df1efbd"
MAINSUM:x86-64 = "4f603955b63d228e980f14f32dbdabcfa154f4b9659dcc222b746a6c4f450239"
DEVSUM = "05811c05c35753de542b748dedfda651d9f53cc060b0115441a360b8b2b0775c"
DEVSUM:x86-64 = "c3ad62dbe3e80a7ba09fb9a69e5819abb274bb398fdcffbd7c7d8fa583dd700d"
inherit siteinfo
do_compile:append() {
echo "${prefix}/local/cuda-${CUDA_VERSION}/${baselib}" > ${B}/cuda-${CUDA_VERSION_DASHED}.conf
if [ "${baselib}" != "lib64" -a "${SITEINFO_BITS}" = "64" ]; then
if [ -e ${B}/usr/local/cuda-${CUDA_VERSION}/${baselib} ]; then
ln -s ${baselib} ${B}/usr/local/cuda-${CUDA_VERSION}/lib64
fi
fi
}
do_install:append:class-target() {
install -d ${D}${sysconfdir}/ld.so.conf.d
install -m 0644 ${B}/cuda-${CUDA_VERSION_DASHED}.conf ${D}${sysconfdir}/ld.so.conf.d/
}
FILES:${PN}-dev += " \
${prefix}/local/cuda-${CUDA_VERSION}/${baselib}/*.a \
${@' ${prefix}/local/cuda-${CUDA_VERSION}/lib64' if d.getVar('baselib') != 'lib64' and d.getVar('SITEINFO_BITS') == '64' else ''} \
"
FILES:${PN}-staticdev = ""
INSANE_SKIP:${PN}-dev += "staticdev"
RDEPENDS:${PN}-dev:append:class-target = " cuda-nvcc-headers-11-8 cuda-cccl-11-8 cuda-target-environment"
BBCLASSEXTEND = "native nativesdk"

Some files were not shown because too many files have changed in this diff Show More