Skip to content

Add D401 GMSL support and align resolutions - #342

Merged
ymodlin merged 12 commits into
devfrom
D40x_support
Feb 3, 2026
Merged

Add D401 GMSL support and align resolutions#342
ymodlin merged 12 commits into
devfrom
D40x_support

Conversation

@Nikolai-L

@Nikolai-L Nikolai-L commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

Introduce initial support for D401 GMSL, aligning its resolutions with D401 USB

ejgoldik and others added 5 commits January 25, 2026 11:34
- Added res 1288x808 for calibration
- Aligned other Y resolutions
- Bumped version to 1.0.2.1

Signed-off-by: ejgoldik <ehud.joseph.goldik@realsenseai.com>
Copilot AI review requested due to automatic review settings January 25, 2026 10:02

Copilot AI left a comment

Copy link
Copy Markdown

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 introduces initial support for the D401 GMSL camera variant by adding device type definitions, resolution configurations, and format specifications that align with the D401 USB variant. The module version is updated to 1.0.2.3.

Changes:

  • Added D401 GMSL device type constant and associated resolution/format configurations
  • Integrated D401 GMSL into the fixed configuration logic for depth, IR, and RGB sensors
  • Updated module version from 1.0.1.33 to 1.0.2.4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kernel/realsense/d4xx.c
@Nikolai-L
Nikolai-L requested a review from ymodlin January 25, 2026 10:20
D40x and D45x have the same RGB formats for now

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ymodlin
ymodlin previously approved these changes Jan 25, 2026

@ejgoldik ejgoldik 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.

Last commit creates kernel panic and should be reverted

Comment thread kernel/realsense/d4xx.c Outdated
Reverted setting sensor->formats = NULL;
This caused kernel panic (null pointer reference)

Signed-off-by: ejgoldik <ehud.joseph.goldik@realsenseai.com>
Comment thread kernel/realsense/d4xx.c
Comment thread kernel/realsense/d4xx.c

@ymodlin ymodlin left a comment

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.

Only d4xx changes? for the calibration format there is no change in the OOT?

ejgoldik and others added 2 commits January 30, 2026 03:14
Signed-off-by: ejgoldik <ehud.joseph.goldik@realsenseai.com>
[INFRA] Update kernel deployment scripts to support JP5.0.2
and update apply_patches.sh to simplify patch creation process
@Nikolai-L
Nikolai-L requested a review from ymodlin February 1, 2026 09:36

@ymodlin ymodlin left a comment

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.

Fix apply_patches

Comment thread apply_patches.sh

@ejgoldik ejgoldik 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.

In apply_patches.sh -
Staging the modified files causes build errors after the next "apply_patches reset". Need to fix or revert this

fi

echo "Copying kernel files for JetPack ${JETPACK_VERSION}..."
if [ "${JETPACK_VERSION}" = "5.0.2" ]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Repeated 'echo' + 'sudo cp' blocks in the JetPack branches duplicate file-copy logic; consolidate into a helper function or loop to avoid repetitive code and simplify future updates.

Details

✨ AI Reasoning
​The added script contains multiple adjacent echo then sudo cp pairs that perform the same logical operation (copy kernel/module/boot files) across the JetPack-specific branches. This repeats the same file-copying business logic in many places, increasing maintenance burden: a future file-path change would require edits in multiple locations. Consolidating the repeated copying into a small helper function or a loop would reduce duplication and chance of inconsistent updates.

🔧 How do I fix it?
Delete extra code. Extract repeated code sequences into reusable functions or methods. Use loops or data structures to eliminate repetitive patterns.

Reply @AikidoSec feedback: [FEEDBACK] to get better review comments in the future.
Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info

@ymodlin
ymodlin merged commit a59cd24 into dev Feb 3, 2026
5 of 6 checks passed
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.

4 participants