44The RealSense™ MIPI platform driver enables the user to control and stream RealSense™ 3D MIPI cameras.
55The system shall include:
66* NVIDIA® Jetson™ platform Supported JetPack versions are:
7- - [ 6.2.1 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-621 )
8- - [ 6.2 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-62 )
9- - [ 6.1 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-61 )
10- - [ 6.0 production release] ( https://developer.nvidia.com/embedded/jetpack-sdk-60 )
7+ - 7.1 production release
8+ - 7.0 production release
119* RealSense™ De-Serialize board
1210* 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/ )
1311* RS MIPI camera [ D457] ( https://store.realsenseai.com/buy-intel-realsense-depth-camera-d457.html )
@@ -30,8 +28,6 @@ The system shall include:
3028
3129Please follow the [ instruction] ( https://docs.nvidia.com/sdk-manager/install-with-sdkm-jetson/index.html ) to flash JetPack to the NVIDIA® Jetson AGX Orin™ with NVIDIA® SDK Manager or other methods NVIDIA provides. Make sure the board is ready to use.
3230
33-
34-
3531## Build environment prerequisites
3632```
3733sudo apt-get install -y build-essential bc wget flex bison curl libssl-dev xxd tar
@@ -48,7 +44,7 @@ sudo apt-get install -y build-essential bc wget flex bison curl libssl-dev xxd t
4844
4945Assuming building for 7.1. One can also build for 7.0 just replace the last parameter.
5046Build version can be specified only once. It will be written to jetpack_version.txt file and used for later steps.
51- You can display the current version cating the file.
47+ You can display the current version cating the file jetpack_version. It will be show at the beginning of each script .
5248```
5349git clone --branch dev --single-branch https://github.com/realsenseai/realsense_mipi_platform_driver.git
5450cd realsense_mipi_platform_driver
@@ -61,80 +57,23 @@ Note: dev_dbg() log support will not be enabled by default. If needed, run the `
6157./build_all.sh --dev-dbg
6258```
6359
64-
65-
66- ## JetPack manual build - cross compile x86-64 (CI deploy)
67-
68- [ NVIDIA® JetPack 6.2: Jetson Linux 36.4.3] ( https://developer.nvidia.com/embedded/jetson-linux-r3643 )
69- 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 )
70- 2 . 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 )
71- 3 . Apply patches for kernel drivers, nvidia-oot module and tegra devicetree.
72- 4 . Build cross-compile project on host (Build PC) or natively on target (Jetson).
73- 5 . Apply build results to target (Jetson).
74- 6 . Configure target.
75-
76- ```
77- # JetPack 6.2
78- mkdir -p l4t-gcc/6.x
79- cd ./l4t-gcc/6.x
80- wget 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
81- tar xf aarch64--glibc--stable-final.tar.bz2 --strip-components 1
82- cd ../..
83- wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v4.3/sources/public_sources.tbz2
84- tar xjf public_sources.tbz2
85- cd Linux_for_Tegra/source
86- tar xjf kernel_src.tbz2
87- tar xjf kernel_oot_modules_src.tbz2
88- tar xjf nvidia_kernel_display_driver_source.tbz2
89- cd ../..
90-
91- ./apply_patches_ext.sh 6.2 Linux_for_Tegra/source
92-
93- cp ./nvidia-oot/Makefile Linux_for_Tegra/source
94- cp ./kernel/kernel-jammy-src/Makefile Linux_for_Tegra/source/kernel
95-
96- # build kernel, dtb and D457 driver
97- ./build_all.sh 6.2 ./Linux_for_Tegra/source
98- ```
99- Note: dev_dbg() log support will not be enabled by default. If needed, run the ` ./build_all.sh ` script with ` --dev-dbg ` option like below.
100- ```
101- ./build_all.sh --dev-dbg 6.2 ./Linux_for_Tegra/source
102- ```
103-
104- ## Archive JetPack 6.x build results (optional)
105- 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.
106- - kernel image : ` images/6.2/rootfs/boot/Image `
107- - dtb: ` images/6.2/rootfs/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb `
108- - dtb overlay: ` images/6.2/rootfs/boot/tegra234-camera-d4xx-overlay.dtbo `
109- - dtb dual camera overlay: ` images/6.2/rootfs/boot/tegra234-camera-d4xx-overlay-dual.dtbo `
110- - kernel modules: ` images/6.2/rootfs/lib/modules/5.15.148-tegra `
111-
112- ## Backup JetPack 6.2 boot configuration and drivers (optional)
113- ```
114- echo "Backup boot configuration"
115- sudo cp /boot/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/tegra234-p3737-0000+p3701-0000-nv-bkp.dtb
116- # Note: If using a production board and not a dev kit copy the relevant dtb file below
117- sudo cp /boot/tegra234-p3737-0000+p3701-0005-nv.dtb /boot/tegra234-p3737-0000+p3701-0005-nv-bkp.dtb
118- ```
119-
12060## Install kernel drivers, extra modules and device-tree to Jetson AGX Orin
12161
12262Following steps required:
12363
124641 . Copy build artifacts:
125- If you build locally use those commands:
65+ If you build locally (native build on Jetson) use the following bash commands:
12666```
127- sudo cp -r ./images/6.2 /rootfs/lib/modules/5.15.148 -tegra /lib/modules/.
128- sudo cp ./images/6.2 /rootfs/boot/tegra234-camera-d4xx-overlay.dtbo /boot/.
129- sudo cp ./images/6.2 /rootfs/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/dtb/.
130- sudo cp ./images/6.2 /rootfs/boot/Image /boot/
67+ sudo cp -r ./images/7.1 /rootfs/lib/modules/6.8.12 -tegra /lib/modules/
68+ sudo cp ./images/7.1 /rootfs/boot/tegra234-camera-d4xx-overlay.dtbo /boot/
69+ sudo cp ./images/7.1 /rootfs/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/dtb/
70+ sudo cp ./images/7.1 /rootfs/boot/Image /boot/
13171```
132- In case of scp copy from host use this commands:
72+ In case of crossbuild scp copy from host to Jetson target use the following commands:
13373```
13474tar xf rootfs.tar.gz
135- sudo cp -r ./lib/modules/5.15.148 -tegra /lib/modules/.
75+ sudo cp -r ./lib/modules/6.8.12 -tegra /lib/modules/.
13676sudo cp ./boot/tegra234-camera-d4xx-overlay.dtbo /boot/.
137- sudo cp ./boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/dtb/.
13877sudo cp ./boot/Image /boot/
13978```
140792. Run $ ` sudo /opt/nvidia/jetson-io/jetson-io.py ` , to exit choose save & reboot:
0 commit comments