33Camera Driver Installation
44##########################
55
6- You need to install dedicated Camera's driver (e.g. `` leopard-ar0233-gmsl ``) .
6+ You need to install dedicated camera driver.
77
8- The driver is provided by ** ADLINK ** and could not be used on other vendor's platform since it is compiled into binary .
8+ Please ask ADLINK or the camera vendor for the latest camera driver .
99
10- And it can only download form **ADLINK ROScube's APT repository **.
11-
12- 1. Install Camera Driver.
10+ 1. Install Camera Driver
1311-------------------------
1412
15- To install ** Leopard AR0233 GMSL ** camera, please by following terminal commands below:
13+ To install camera driver , please follow the commands below:
1614
1715.. code :: bash
1816
1917 sudo apt update
20- # Remove lagecy leopard ar0233 kernel module.
21- sudo apt remove --purge leopard-ar0233-gmsl-kmod
22- sudo apt remove --purge rqx58g-ioboard-gmsl-kmod
23- sudo apt install leopard-ar0233-gmsl
18+ sudo apt install -f < camera_driver.deb>
19+
20+ # Examples:
21+ #
22+ # [Tier IV]
23+ # sudo apt install -f tier4-camera-gmsl_1.3.0_arm64.deb
24+ #
25+ # [Leopard AR0233]
26+ # sudo apt install -f roscube-gmsl-serdes_0.9.3_arm64.deb
27+
28+ .. warning ::
2429
25- 2. Inspect Camera Driver.
30+ | You can only install one camera driver in ROScube to avoid conflicts.
31+ If there are two or more, please remove them which you don't use.
32+ | To remove unused camera driver, please use ``sudo apt remove --purge <camera driver>``
33+
34+
35+ 2. Apply Device Tree
2636-------------------------
2737
28- To inspect your available camera device tree setting after installing, please use the following terminal command:
38+ To enable the camera driver, you have to apply the device tree settings.
39+ Before applying, please use below command to list available modules:
2940
3041.. code :: bash
3142
32- sudo /opt/nvidia/jetson-io/config-by-hardware.py -l
43+ sudo /opt/nvidia/jetson-io/config-by-hardware.py --list
3344
3445 .. image :: images/config-hardware-list.png
3546 :width: 80%
3647 :align: center
3748
38- .. warning ::
49+ The camera device tree overlay may be located in different headers depends on the BSP and Jetpack version.
3950
40- | It can only install one cammera's driver at the same time.
41- If there are two or more, please remove them which you don't use.
42- | To remove unused camera driver, please use ``sudo apt remove --purge <camera driver>``
51+ .. image :: images/config-hardware-list-tier4.png
52+ :width: 80 %
53+ :align: center
4354
44- 3. Apply Device Tree Settings.
45- ------------------------------
55+ To apply the device tree setings, please follow the commands below:
4656
47- To apply **Leopard AR0233 device tree ** settings to all camera channels, please use the following terminal command:
57+ For Jetpack 4.6, 5.0, and later:
58+ ================================
4859
49- ** For Jetpack 4.5 **, use the following
60+ If the device tree is located in "Header 1", please enter below command:
5061
51- Download the patched :download: `libgstnvarguscamerasrc.so <file/libgstnvarguscamerasrc.so >` and replace this file with the original one.
62+ .. code :: bash
63+
64+ sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 1=' <YOUR_CAMERA_DEVICE_TREE_OVERLAY>'
65+ # Examples:
66+ #
67+ # [Tier IV C1]
68+ # sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 1='TIERIV ISX021 GMSL2 Camera Device Tree Overlay'
69+ #
70+ # [Leopard AR0233]
71+ # sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 1='Leopard AR0233 RAW GMSL2 Camera Device Tree Overlay'
72+
73+
74+ Otherwise, the device tree is located in "Header 2", please enter below command:
5275
5376.. code :: bash
5477
55- sudo rm /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so
56- sudo mv libgstnvarguscamerasrc.so /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so
78+ sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 2=' <YOUR_CAMERA_DEVICE_TREE_OVERLAY>'
5779
58- Then, apply device tree into your current system.
80+ .. image :: images/config-hardware-name.png
81+ :width: 80%
82+ :align: center
83+
84+
85+ For Jetpack 4.5:
86+ ================
87+
88+
89+ Download the patched :download: `libgstnvarguscamerasrc.so <file/libgstnvarguscamerasrc.so >` and replace this file with the original one.
5990
6091.. code :: bash
6192
62- sudo /opt/nvidia/jetson-io/config-by-hardware.py -n ' Leopard AR0233 GMSL2 Camera Device Tree Overlay'
93+ sudo rm /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so
94+ sudo mv libgstnvarguscamerasrc.so /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so
6395
64- ** For Jetpack 4.6 **, use the following
96+ Then, apply device tree into your system.
6597
6698.. code :: bash
6799
68- sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 2= ' Leopard AR0233 GMSL2 Camera Device Tree Overlay '
100+ sudo /opt/nvidia/jetson-io/config-by-hardware.py -n ' <YOUR_CAMERA_DEVICE_TREE_OVERLAY> '
69101
70- .. image :: images/config-hardware-name.png
71- :width: 80%
72- :align: center
102+ 3. Reboot
103+ ----------
73104
74- .. note ::
105+ Finally, please **reboot ** system for the new settings to take effect.
106+
107+ .. code :: bash
75108
76- To reconfigure, please ** reboot ** system.
109+ sudo reboot
77110
78- 4. Check Camera.
111+ 4. Check Camera
79112----------------
80113
81- After rebooting system , you can check if the cameras are available.
114+ After rebooting, you can check if the cameras are available.
82115
83- Please use the following terminal command:
116+ Please use the following command to check :
84117
85118.. code :: bash
86119
87- ls /dev/gmsl/ *
120+ ls /dev/video *
88121
89122 .. image :: images/dev-video.png
90123 :width: 80%
@@ -93,5 +126,5 @@ Please use the following terminal command:
93126
94127.. warning ::
95128
96- | If it can't show any video devices, make sure cameras are connected.
97- | And check the error message by ``dmesg | egrep ar0233 `` in terminal command .
129+ | If there are no video devices, make sure cameras are connected.
130+ | And check the error logs by typing the command ``dmesg | egrep -i 'max9295|max9296' `` in terminal.
0 commit comments