Skip to content

Commit cf09c74

Browse files
committed
support for JP6.1
1 parent 3141b4f commit cf09c74

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/patch-realsense-ubuntu-L4T.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ if [ -f /etc/nv_tegra_release ]; then
6161
JETSON_L4T_STRING=$(head -n 1 /etc/nv_tegra_release)
6262
JETSON_L4T_RELEASE=$(echo $JETSON_L4T_STRING | cut -f 2 -d ' ' | grep -Po '(?<=R)[^;]+')
6363
# Extract revision + trim trailing zeros to convert 32.5.0 => 32.5 to match git tags
64-
JETSON_L4T_REVISION=$(echo $JETSON_L4T_STRING | cut -f 2 -d ',' | grep -Po '(?<=REVISION: )[^;]+' | sed 's/.0$//g')
64+
JETSON_L4T_REVISION_LONG=$(echo $JETSON_L4T_STRING | cut -f 2 -d ',' | grep -Po '(?<=REVISION: )[^;]+')
65+
JETSON_L4T_REVISION=$(echo $JETSON_L4T_REVISION_LONG | sed 's/.0$//g')
6566
JETSON_L4T_VERSION=$JETSON_L4T_RELEASE.$JETSON_L4T_REVISION
6667
echo -e "\e[32mJetson L4T version: ${JETSON_L4T_VERSION}\e[0m"
6768
else
@@ -142,7 +143,7 @@ fi
142143
cp ./scripts/Tegra/$TEGRA_SOURCE_SYNC_SH ${sdk_dir}/Tegra
143144

144145
# Display NVIDIA license
145-
DisplayNvidiaLicense "r${JETSON_L4T_RELEASE}_Release_v${JETSON_L4T_REVISION}"
146+
DisplayNvidiaLicense "r${JETSON_L4T_RELEASE}_Release_v${JETSON_L4T_REVISION_LONG}"
146147

147148
#Download NVIDIA source, disregard errors on module tag sync
148149
./Tegra/$TEGRA_SOURCE_SYNC_SH -k ${TEGRA_TAG} || true

0 commit comments

Comments
 (0)