Skip to content

Commit 440e6c8

Browse files
Nikolai-Lymodlin
authored andcommitted
Enhance DS5 I2C communication with retry logic fixes and add d4xx.c copying for JetPack versions
1 parent 31af8c4 commit 440e6c8

2 files changed

Lines changed: 212 additions & 146 deletions

File tree

build_all.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ export KERNEL_MODULES_OUT=$TEGRA_KERNEL_OUT/modules
6969
# Check if BUILD_NUMBER is set as it will add a postfix to the kernel name "vermagic" (normally it happens on CI who have BUILD_NUMBER defined)
7070
[[ -n "${BUILD_NUMBER}" ]] && echo "Warning! You have BUILD_NUMBER set to ${BUILD_NUMBER}, This will affect your vermagic"
7171

72+
# Copy d4xx.c to the appropriate sources directory
73+
echo "Copying d4xx.c to sources directory..."
74+
if [[ "$JETPACK_VERSION" == "6.x" ]]; then
75+
cp $DEVDIR/kernel/realsense/d4xx.c $SRCS/nvidia-oot/drivers/media/i2c/d4xx.c
76+
else
77+
# For JetPack 5.x and 4.6.1
78+
cp $DEVDIR/kernel/realsense/d4xx.c $SRCS/kernel/nvidia/drivers/media/i2c/d4xx.c
79+
fi
80+
7281
# Build jp6 out-of-tree modules
7382
# following:
7483
# https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/SD/Kernel/KernelCustomization.html#building-the-jetson-linux-kernel

0 commit comments

Comments
 (0)