Skip to content

Commit 1e14c13

Browse files
committed
support for JP6.2
1 parent 3f8f81f commit 1e14c13

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

scripts/Tegra/source_sync_6.0.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ for ((i=0; i < NSOURCES; i++)); do
330330
DNLOAD=$(echo "${SOURCE_INFO_PROCESSED[i]}" | cut -f 5 -d ':')
331331

332332
if [ $DALL -eq 1 -o "x${DNLOAD}" == "xy" ]; then
333-
DownloadAndSync "$WHAT" "${LDK_DIR}/${WHAT}" "git://${REPO}" "${TAG}" "${OPT}"
333+
DownloadAndSync "$WHAT" "${LDK_DIR}/${WHAT}" "https://${REPO}" "${TAG}" "${OPT}"
334334
tRET=$?
335335
let GRET=GRET+tRET
336336
if [ $tRET -ne 0 -a $EOE -eq 1 ]; then

scripts/patch-realsense-ubuntu-L4T.sh

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ function DisplayNvidiaLicense {
2222
fi
2323

2424
# By default referencing license agreement of JP 5.0.2
25-
license_path="https://developer.download.nvidia.com/embedded/L4T/r35_Release_v1.0/Release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
26-
27-
if [ "5.1.2" = ${patches_revison} ]; then
28-
license_path="https://developer.download.nvidia.com/embedded/L4T/r35_Release_v4.1/release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
29-
fi
30-
31-
if [ "6.0" = ${patches_revison} ]; then
32-
license_path="https://developer.download.nvidia.com/embedded/L4T/r36_Release_v3.0/release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
33-
fi
25+
license_path="https://developer.download.nvidia.com/embedded/L4T/r${JETSON_L4T_RELEASE}_Release_v${JETSON_L4T_REVISION}/release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
3426

3527
echo -e "\nPlease notice: This script will download the kernel source (from nv-tegra, NVIDIA's public git repository) which is subject to the following license:\n\n${license_path}\n"
3628

@@ -91,7 +83,7 @@ case ${JETSON_L4T_VERSION} in
9183
PATCHES_REV="5.0.2" # JP 5.0.2
9284
KERNEL_RELEASE="5.10"
9385
;;
94-
"36.3")
86+
"36.3" | "36.4" | "36.4.3")
9587
PATCHES_REV="6.0" # JP 6.0
9688
KERNEL_RELEASE="5.15"
9789
;;
@@ -135,11 +127,13 @@ echo -e "\e[32mCreate the sandbox - NVIDIA L4T source tree(s)\e[0m"
135127
mkdir -p ${sdk_dir}/Tegra
136128
TEGRA_SOURCE_SYNC_SH="source_sync.sh"
137129
if [ "5.0.2" = "$PATCHES_REV" ]; then
130+
KBASE=./Tegra/sources/kernel/kernel-$KERNEL_RELEASE
138131
TEGRA_SOURCE_SYNC_SH="source_sync_5.0.2.sh"
139132
fi
140133
if [ "6.0" = "$PATCHES_REV" ]; then
134+
KBASE=./Tegra/kernel/kernel-jammy-src
141135
TEGRA_SOURCE_SYNC_SH="source_sync_6.0.sh"
142-
TEGRA_TAG="jetson_36.3"
136+
TEGRA_TAG="jetson_$JETSON_L4T_RELEASE.$JETSON_L4T_REVISION"
143137
fi
144138
cp ./scripts/Tegra/$TEGRA_SOURCE_SYNC_SH ${sdk_dir}/Tegra
145139

@@ -148,11 +142,6 @@ DisplayNvidiaLicense "$PATCHES_REV"
148142

149143
#Download NVIDIA source, disregard errors on module tag sync
150144
./Tegra/$TEGRA_SOURCE_SYNC_SH -k ${TEGRA_TAG} || true
151-
if [ "6.0" = "$PATCHES_REV" ]; then
152-
KBASE=./Tegra/kernel/kernel-jammy-src
153-
else
154-
KBASE=./Tegra/sources/kernel/kernel-$KERNEL_RELEASE
155-
fi
156145

157146
echo ${KBASE}
158147
pushd ${KBASE}

0 commit comments

Comments
 (0)