1.5. TIER IV Cameras Getting Started Guide for Connect Tech Anvil#
Attention
This document is for the users of Connect Tech Anvil
1.5.1. Preparation#
1.5.1.1. Required items#
Fakra coaxial cable
TIER IV Automotive HDR Camera C1 or C2 or C3
1.5.2. Power on and log in#
Firstly, make sure that the Anvil is turned off.
Connect cameras to Anvil using the FAKRA cables.
Power on the Anvil and logging in.
1.5.3. Camera driver installation#
Get the camera driver deb package from Github.
Install TIER IV camera driver with following command.
sudo apt install ./tier4-camera-gmsl_2.0.0_arm64.deb
Confirm the installation was successful
sudo apt list | grep tier4
If you could confirm
tier4-camera-gmsl
, installation process was finished successfulConfirm /boot/tier4-*.dtbo exists
ls /boot/tier4-*.dtbo
Add FDT and OVERLAYS settings on
/boot/extlinux/extlinux.conf
for device tree settingNote
If you want to use the camera in a configuration other than C1/C2/C3 only, please refer the Device tree setting section.
C1 camera configuration
FDT /boot/tegra234-orin-agx-cti-AGX201.dtb OVERLAYS /boot/tier4-isx021-gmsl-device-tree-overlay-anvil-r36.dtbo
C2 camera configuration
FDT /boot/tegra234-orin-agx-cti-AGX201.dtb OVERLAYS /boot/tier4-imx490-gmsl-device-tree-overlay-anvil-r36.dtbo
C3 camera configuration
FDT /boot/tegra234-orin-agx-cti-AGX201.dtb OVERLAYS /boot/tier4-imx728-gmsl-device-tree-overlay-anvil-r36.dtbo
reboot
reboot
Make sure that the camera device file (
/dev/video*
) is createdls -al /dev/video*
1.5.4. Operation mode configuration#
The procedure to operation mode configuration is basically identical to the other ECUs. Please refer to the manual
However, if you use trigger mode, please add fsync_mfp=7
parameter as following to /etc/modprobe.d/tier4-*.conf
file:
options tier4_isx021 trigger_mode=1 enable_auto_exposure=1 enable_distortion_correction=1 fsync_mfp=7
1.5.5. Visualize the camera output using GStreamer#
The procedure to output the image using GStreamer is identical to the other ECUs. Please refer to the manual.
Please also refer to the GStreamer command examples.
1.5.6. Device tree setting#
If you would like to use C1/C2/C3 Mixed Configurations, please execute following steps.
Create dtbs file
Note
The following example is for a C1x4, C2x2, and C3x2 configuration.
You can select the type of camera to connect to every 2 ports (= every deserializer).
However, it is not recommended to connect two C2/C3 cameras to one deserializer.
git clone https://github.com/tier4/tier4_automotive_hdr_camera.git cd tier4_automotive_hdr_camera/tools/dts_generator python make_overlay_dts_anvil.py -4 C1 -2 C2 -2 C3
Create
dtbo
file from.dts
file.dtc -O dtb -o tier4-isx021-imx490-imx728-gmsl-device-tree-overlay-anvil-r36.dtbo -@ tier4-isx021-imx490-imx728-gmsl-device-tree-overlay-anvil-r36.dts
Copy to
/boot/
directory.sudo cp ./tier4-isx021-imx490-imx728-gmsl-device-tree-overlay-anvil-r36.dtbo /boot/
Add FDT and OVERLAYS settings on
/boot/extlinux/extlinux.conf
(same as Camera driver installation procedure 5. Set the OVERLAY path to the .dtbo file you created.)