Skip to content

Support jp6.2 - #14256

Merged
Nir-Az merged 4 commits into
realsenseai:developmentfrom
Kontra2B:Support_JP6.2
Aug 28, 2025
Merged

Nir-Az merged 4 commits into
realsenseai:developmentfrom
Kontra2B:Support_JP6.2

Conversation

@Kontra2B

@Kontra2B Kontra2B commented Aug 28, 2025 •

Copy link
Copy Markdown
Contributor

support for JP6.1
support for JP6.2
l4t patch script reworked
Tracked on [RSDSO-20204]

@Kontra2B
Kontra2B marked this pull request as draft August 28, 2025 10:20
@Nir-Az
Nir-Az requested a review from Copilot August 28, 2025 10:34
Comment thread scripts/patch-realsense-ubuntu-L4T.sh Outdated
if [ "6.0" = ${patches_revison} ]; then
license_path="https://developer.download.nvidia.com/embedded/L4T/r36_Release_v3.0/release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
fi
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"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for JetPack 6.1 and 6.2 by reworking the L4T patch script to handle multiple JetPack versions more generically.

  • Replaced hardcoded version-specific logic with dynamic URL construction using environment variables
  • Extended version matching to support JP 6.0 variants (36.3, 36.4, 36.4.3)
  • Consolidated KBASE path assignment logic to eliminate redundant conditional blocks

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -22,15 +22,7 @@ function DisplayNvidiaLicense {
fi

# By default referencing license agreement of JP 5.0.2

Copilot AI Aug 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dynamic license URL construction assumes that JETSON_L4T_RELEASE and JETSON_L4T_REVISION variables are defined, but these variables are not set anywhere in the visible code. This will result in an invalid URL with empty variable substitutions.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a wrong comment, this should work right @Kontra2B ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the function is called the missing variables are defined

KBASE=./Tegra/kernel/kernel-jammy-src
TEGRA_SOURCE_SYNC_SH="source_sync_6.0.sh"
TEGRA_TAG="jetson_36.3"
TEGRA_TAG="jetson_$JETSON_L4T_RELEASE.$JETSON_L4T_REVISION"

Copilot AI Aug 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the license URL, this line uses undefined variables JETSON_L4T_RELEASE and JETSON_L4T_REVISION. The script will construct an invalid tag like 'jetson_.' instead of the expected format.

Suggested change
TEGRA_TAG="jetson_$JETSON_L4T_RELEASE.$JETSON_L4T_REVISION"
# Extract release and revision from JETSON_L4T_VERSION (e.g., r35.4.1)
JETSON_L4T_RELEASE=$(echo "$JETSON_L4T_VERSION" | sed -E 's/^r([0-9]+)\..*$/\1/')
JETSON_L4T_REVISION=$(echo "$JETSON_L4T_VERSION" | sed -E 's/^r[0-9]+\.([0-9]+).*$/\1/')
TEGRA_TAG="jetson_${JETSON_L4T_RELEASE}.${JETSON_L4T_REVISION}"

Copilot uses AI. Check for mistakes.
@Kontra2B
Kontra2B marked this pull request as ready for review August 28, 2025 10:35
KERNEL_RELEASE="5.10"
;;
"36.3")
"36.3" | "36.4" | "36.4.3")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to set 6.0 on 6.1 and 6.2 too?
Can we set 6.X maybe? and add a comment

36.3 --> 6.0
36.4 -> 6.1 
36.4.3 --> 6.2?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same patch set originally for 6.0 applies for 6.1 6.2.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK that's great, can we explain it in the script like I suggested? or at least add a comment explaining why we continue with 6.0 even for 6.1 and 6.2 and the mapping?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like to know when a patch was originally created and applied. Then when applied to 6.100 you know that is a legacy.
Adding your comment with revision --> JP version

Comment thread scripts/patch-realsense-ubuntu-L4T.sh Resolved
Comment thread scripts/patch-realsense-ubuntu-L4T.sh Resolved
@Nir-Az

Nir-Az commented Aug 28, 2025

Copy link
Copy Markdown
Collaborator

Can you update this readme that we now also support 6.1 & 6.2?
You can search for 6.0 to see where
Thanks

@Kontra2B

Copy link
Copy Markdown
Contributor Author

Can you update this readme that we now also support 6.1 & 6.2? You can search for 6.0 to see where Thanks

No particular reference to 6.0 to update.

@Nir-Az
Nir-Az merged commit bc66578 into realsenseai:development Aug 28, 2025
@Kontra2B Kontra2B mentioned this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants