Changes

Jump to navigation Jump to search

C779-Software

2,267 bytes added, 12:19, 27 December 2021
Created page with " TC358743 HDMI to CSI-2 install instructions 1. To use the kernel drivers, please update your system. There are a few things that have changed with the 5.4 kernel, so these i..."

TC358743 HDMI to CSI-2 install instructions

1. To use the kernel drivers, please update your system. There are a few things that have changed with the 5.4 kernel, so these instructions are for 5.4 or later. If "uname -a" reports anything less, then fix this before proceeding.

1. Update & upgrade the raspberry pi system (It will take a long time depend on the different country)
sudo apt-get update
sudo apt-get upgrade

2. Enable camera module (the camera is enabled by default in Raspberry pi Bullseys OS)
sudo raspi-config

[[File:Raspi-config-1.jpg|800px]]

Navigate to ''''Interfacing Options'''' and hit Enter. Now select the ''''Camera'''' option, and hit the Enter key to enable it. Select “Finish” and select to '''reboot''' your Raspberry Pi.

[[File:Raspi-config-2.jpg|800px]]

sudo reboot

2. Edit /boot/config.txt to add the line (that will need sudo, and use your preferred editor)
dtoverlay=tc358743
to the end of the file.

If (and only if) you have a device such as the Auvidea B102 that supports the 22pin connector with all 4 lanes wired out, and are using a Compute Module with the CAM1 connector that also has all 4 lanes wired up, you can use
dtoverlay=tc358743,4lane=1

3. Check the amount of memory assigned to the CMA heap with "dmesg | grep cma". The first line should be along the lines of
pi@raspberrypi:~ $ dmesg | grep cma
[ 0.000000] cma: Reserved 256 MiB at 0x000000001ec00000
If it reports less than 96MB assigned to CMA, then edit /boot/cmdline.txt and add
cma=96M
to the start of the line. Do NOT add any carriage returns.

4. Reboot. If all is well you should get a /dev/video0 device, and "v4l2-ctl --list-devices" will tell you that it is provided by Unicam.
After connecting all the cables, power on the Raspberry Pi, the C779 indicator light is normally green, and after opening the Raspberry Pi terminal, enter the following command:
ls /dev/video0
[[File:Ls-dev.png|none]]
v4l2-ctl --list-devices
<pre>
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12
/dev/video18
/dev/media1

bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/media0

unicam (platform:fe801000.csi):
/dev/video0
/dev/video1
/dev/media2
</pre>

Navigation menu