11# Intel® RealSense™ camera driver for GMSL* interface
22
3- # D457 MIPI on NVIDIA® Jetson AGX Orin™ JetPack 6.0
3+ # D457 MIPI on NVIDIA® Jetson AGX Orin™ JetPack 6.x
44The Intel® RealSense™ MIPI platform driver enables the user to control and stream RealSense™ 3D MIPI cameras.
55The system shall include:
6- * NVIDIA® Jetson™ platform Supported JetPack versions are: [ 6.0 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-60 )
6+ * NVIDIA® Jetson™ platform Supported JetPack versions are:
7+ - [ 6.2 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-62 )
8+ - [ 6.1 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-61 )
9+ - [ 6.0 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-60 )
710* RealSense™ [ De-Serialize board] ( https://store.intelrealsense.com/buy-intel-realsense-des457.html )
811* Jetson AGX Orin™ Passive adapter board from [ Leopard Imaging® LI-JTX1-SUB-ADPT] ( https://leopardimaging.com/product/accessories/adapters-carrier-boards/for-nvidia-jetson/li-jtx1-sub-adpt/ )
912* RS MIPI camera [ D457] ( https://store.intelrealsense.com/buy-intel-realsense-depth-camera-d457.html )
@@ -15,7 +18,7 @@ The system shall include:
1518
1619### Links
1720- Intel® RealSense™ camera driver for GMSL* interface [ Front Page] ( ./README.md )
18- - NVIDIA® Jetson AGX Orin™ board setup - AGX Orin™ [ JetPack 6.0 ] ( ./README_JP6.md ) setup guide
21+ - NVIDIA® Jetson AGX Orin™ board setup - AGX Orin™ [ JetPack 6.x ] ( ./README_JP6.md ) setup guide
1922- NVIDIA® Jetson AGX Xavier™ board setup - AGX Xavier™ [ JetPack 5.x.2] ( ./README_JP5.md ) setup guide
2023- NVIDIA® Jetson AGX Xavier™ board setup - AGX Xavier™ [ JetPack 4.6.1] ( ./README_JP4.md ) setup guide
2124- Build Tools manual page [ Build Manual page] ( ./README_tools.md )
@@ -43,69 +46,70 @@ sudo apt-get install -y build-essential bc wget flex bison curl libssl-dev xxd
4346```
4447git clone https://github.com/IntelRealSense/realsense_mipi_platform_driver.git
4548cd realsense_mipi_platform_driver
46- ./setup_workspace.sh 6.0
47- ./apply_patches.sh apply 6.0
48- ./build_all.sh 6.0
49+ ./setup_workspace.sh 6.2
50+ ./apply_patches.sh apply 6.2
51+ ./build_all.sh 6.2
4952```
5053Note: dev_dbg() log support will not be enabled by default. If needed, run the ` ./build_all.sh ` script with ` --dev-dbg ` option like below.
5154```
52- ./build_all.sh --dev-dbg 6.0
55+ ./build_all.sh --dev-dbg 6.2
5356```
5457
5558
5659
5760## JetPack manual build - cross compile x86-64 (CI deploy)
5861
59- [ NVIDIA® Jetson Linux 36.3] ( https://developer.nvidia.com/embedded/jetson-linux-r363 )
60- 1 . Download Jetson Linux Driver Package - [ JetPack 6.0 BSP sources] ( https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0 /release/jetson_linux_r36.3.0_aarch64 .tbz2 )
62+ [ NVIDIA® JetPack 6.2: Jetson Linux 36.4. 3] ( https://developer.nvidia.com/embedded/jetson-linux-r3643 )
63+ 1 . Download Jetson Linux Driver Package - [ JetPack 6.2 BSP sources] ( https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v4.3 /release/jetson_linux_r36.4.3_aarch64 .tbz2 )
61642 . Download Toolchain ARM64 compiler - [ Bootlin Toolchain gcc 11.3] ( https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/toolchain/aarch64--glibc--stable-2022.08-1.tar.bz2 )
62653 . Apply patches for kernel drivers, nvidia-oot module and tegra devicetree.
63664 . Build cross-compile project on host (Build PC).
64675 . Apply build results to target (Jetson).
65686 . Configure target.
6669
6770```
68- # JetPack 6.0
69- mkdir -p l4t-gcc/6.0
70- cd ./l4t-gcc/6.0
71+ # JetPack 6.2
72+ mkdir -p l4t-gcc/6.x
73+ cd ./l4t-gcc/6.x
7174wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/toolchain/aarch64--glibc--stable-2022.08-1.tar.bz2 -O aarch64--glibc--stable-final.tar.bz2
7275tar xf aarch64--glibc--stable-final.tar.bz2 --strip-components 1
7376cd ../..
74- wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0 /sources/public_sources.tbz2
77+ wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v4.3 /sources/public_sources.tbz2
7578tar xjf public_sources.tbz2
7679cd Linux_for_Tegra/source
7780tar xjf kernel_src.tbz2
7881tar xjf kernel_oot_modules_src.tbz2
7982tar xjf nvidia_kernel_display_driver_source.tbz2
8083cd ../..
8184
82- ./apply_patches_ext.sh ./ Linux_for_Tegra/source 6.0
85+ ./apply_patches_ext.sh 6.2 Linux_for_Tegra/source
8386
8487# build kernel, dtb and D457 driver
85- ./build_all.sh 6.0 ./Linux_for_Tegra/source
88+ ./build_all.sh 6.2 ./Linux_for_Tegra/source
8689```
8790Note: dev_dbg() log support will not be enabled by default. If needed, run the ` ./build_all.sh ` script with ` --dev-dbg ` option like below.
8891```
89- ./build_all.sh --dev-dbg 6.0 ./Linux_for_Tegra/source
92+ ./build_all.sh --dev-dbg 6.2 ./Linux_for_Tegra/source
9093```
9194
92- ## Archive JetPack 6.0 build results (optional) on build host
93- - kernel image : ` images/6.0/rootfs/boot/Image `
94- - dtb: ` images/6.0/rootfs/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb `
95- - dtb overlay: ` images/6.0/rootfs/boot/tegra234-camera-d4xx-overlay.dtbo `
96- - dtb dual camera overlay: ` images/6.0/rootfs/boot/tegra234-camera-d4xx-overlay-dual.dtbo `
97- - nvidia-oot modules: ` images/6.0/rootfs/lib/modules/5.15.136-tegra/updates `
98- - kernel modules: ` images/6.0/rootfs/lib/modules/5.15.136-tegra/extra `
95+ ## Archive JetPack 6.x build results (optional) on build host
96+ Assuming 6.2 (or 6.1) build the kernel version is 5.15.148-tegra. For 6.0 the kernel version is 5.15.136-tegra.
97+ - kernel image : ` images/6.x/rootfs/boot/Image `
98+ - dtb: ` images/6.x/rootfs/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb `
99+ - dtb overlay: ` images/6.x/rootfs/boot/tegra234-camera-d4xx-overlay.dtbo `
100+ - dtb dual camera overlay: ` images/6.x/rootfs/boot/tegra234-camera-d4xx-overlay-dual.dtbo `
101+ - nvidia-oot modules: ` images/6.x/rootfs/lib/modules/5.15.148-tegra/updates `
102+ - kernel modules: ` images/6.x/rootfs/lib/modules/5.15.148-tegra/extra `
99103
100104```
101105echo "Archiving boot configuration build results"
102- tar -czf ./images/6.0 /boot-config.tar.gz -C "./images/6.0 /rootfs/" ./boot
106+ tar -czf ./images/6.x /boot-config.tar.gz -C "./images/6.x /rootfs/" ./boot
103107echo "Archiving nvidia-oot modules"
104- tar -czf ./images/6.0 /nvidia-oot-modules.tar.gz -C "./images/6.0 /rootfs/" ./lib/modules/5.15.136 -tegra/updates
108+ tar -czf ./images/6.x /nvidia-oot-modules.tar.gz -C "./images/6.x /rootfs/" ./lib/modules/5.15.148 -tegra/updates
105109echo "Archiving kernel HID modules"
106- tar -czf ./images/6.0 /kernel-hid-modules.tar.gz -C "./images/6.0 /rootfs/" ./lib/modules/5.15.136 -tegra/extra
110+ tar -czf ./images/6.x /kernel-hid-modules.tar.gz -C "./images/6.x /rootfs/" ./lib/modules/5.15.148 -tegra/extra
107111```
108- ## Backup JetPack 6.0 boot configuration and drivers (optional)
112+ ## Backup JetPack 6.2 boot configuration and drivers (optional)
109113```
110114echo "Backup boot configuration"
111115sudo cp /boot/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/tegra234-p3737-0000+p3701-0000-nv-bkp.dtb
@@ -114,15 +118,15 @@ sudo cp /boot/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/tegra234-p3737-0000+p3
114118sudo cp /boot/tegra234-p3737-0000+p3701-0005-nv.dtb /boot/tegra234-p3737-0000+p3701-0005-nv-bkp.dtb
115119
116120echo "backup nvidia-oot modules"
117- sudo tar -czf /lib/modules/$(uname -r) /updates.tar.gz -C /lib/modules/$(uname -r) / updates
121+ sudo tar -czf /lib/modules/5.15.148-tegra /updates.tar.gz -C /lib/modules/5.15.148-tegra / updates
118122```
119123
120124## Install kernel drivers, extra modules and device-tree to Jetson AGX Orin
121125
122126Following steps required:
123127
124- 1. Copy entire directory ` images/6.0 /rootfs/lib/modules/5.15.136 -tegra/updates ` from host to ` /lib/modules/5.15.136 -tegra/ ` on Orin target
125- 2. Copy entire directory ` images/6.0 /rootfs/lib/modules/5.15.136 -tegra/extra ` from host to ` /lib/modules/5.15.136 -tegra/ ` on Orin target
128+ 1. Copy entire directory ` images/6.x /rootfs/lib/modules/5.15.148 -tegra/updates ` from host to ` /lib/modules/5.15.148 -tegra/ ` on Orin target
129+ 2. Copy entire directory ` images/6.x /rootfs/lib/modules/5.15.148 -tegra/extra ` from host to ` /lib/modules/5.15.148 -tegra/ ` on Orin target
1261303. Copy ` tegra234-camera-d4xx-overlay.dtbo ` from host to ` /boot/tegra234-camera-d4xx-overlay.dtbo ` on Orin target
1271314 . Copy `tegra234-p3737-0000+p3701-0000-nv.dtb` from host to `/boot/` on Orin
1281325 . Copy `Image` from host to `/boot/` on Orin (only if `--dev-dbg` option is enabled, else not needed as the kernel will be unmodified)
@@ -161,23 +165,23 @@ Assuming Jetson has ip: `10.0.0.116`
161165
162166```
163167# Configuration files
164- scp -r images/6.0 /rootfs/boot nvidia@10.0.0.116:~ /
168+ scp -r images/6.x /rootfs/boot nvidia@10.0.0.116:~ /
165169# RealSense support for NVIDIA Tegra
166- scp -r images/6.0 /rootfs/lib/modules/5.15.136 -tegra/updates nvidia@10.0.0.116:~ /
170+ scp -r images/6.x /rootfs/lib/modules/5.15.148 -tegra/updates nvidia@10.0.0.116:~ /
167171# RealSense metadata patched kernel modules and IMU HID support
168- scp -r images/6.0 /rootfs/lib/modules/5.15.136 -tegra/extra nvidia@10.0.0.116:~ /
172+ scp -r images/6.x /rootfs/lib/modules/5.15.148 -tegra/extra nvidia@10.0.0.116:~ /
169173# Updated kernel modules to match the new compiled kernel image
170- scp -r images/6.0 /rootfs/lib/modules/5.15.136 -tegra/kernel nvidia@10.0.0.116:~ /
174+ scp -r images/6.x /rootfs/lib/modules/5.15.148 -tegra/kernel nvidia@10.0.0.116:~ /
171175```
172176
173177On Jetson target, assuming backup step was followed:
174178
175179```
176180# enable RealSense extra formats and metadata
177- sudo cp -r ~ /extra /lib/modules/$(uname -r) /
181+ sudo cp -r ~ /extra /lib/modules/5.15.148-tegra /
178182# enable RealSense MIPI support for D457 GMSL
179- sudo cp -r ~ /updates /lib/modules/$(uname -r) /
180- sudo cp -r ~ /kernel/ /lib/modules/5.15.136 -tegra/
183+ sudo cp -r ~ /updates /lib/modules/5.15.148-tegra /
184+ sudo cp -r ~ /kernel/ /lib/modules/5.15.148 -tegra/
181185sudo cp ~ /boot/tegra234-camera-d4xx-overlay.dtbo /boot/
182186
183187# (replace with tegra234-p3737-0000+p3701-0000-nv.dtb on production Orin board)
0 commit comments