Template:C792-Software: Difference between revisions

Line 282: Line 282:


Add the following two lines to the <code>/boot/firmware/config.txt</code> file:
Add the following two lines to the <code>/boot/firmware/config.txt</code> file:
<pre>
<pre style="margin-left: 1em;">
dtoverlay=tc358743,4lane=1
dtoverlay=tc358743,4lane=1
dtoverlay=tc358743-audio
dtoverlay=tc358743-audio
Line 291: Line 291:


After adding the driver configuration, restart the Raspberry Pi for the changes to take effect. If the configuration is correct, execute the following command in the terminal: <code>ls /dev/video*</code>. The configuration is successful if video devices appear in the output:
After adding the driver configuration, restart the Raspberry Pi for the changes to take effect. If the configuration is correct, execute the following command in the terminal: <code>ls /dev/video*</code>. The configuration is successful if video devices appear in the output:
<pre>
<pre style="margin-left: 1em;">
     pi@raspberrypi:~/Desktop $ ls /dev/video*
     pi@raspberrypi:~/Desktop $ ls /dev/video*
     /dev/video0  /dev/video19  /dev/video20  /dev/video22  /dev/video24  /dev/video26  /dev/video28  /dev/video3  /dev/video31  /dev/video33  /dev/video35  /dev/video5  /dev/video7
     /dev/video0  /dev/video19  /dev/video20  /dev/video22  /dev/video24  /dev/video26  /dev/video28  /dev/video3  /dev/video31  /dev/video33  /dev/video35  /dev/video5  /dev/video7
Line 301: Line 301:


First, execute the command <code>nano 1080p60edid</code> in the terminal to create an EDID file for 1080p60Hz. The content of this file is as follows:
First, execute the command <code>nano 1080p60edid</code> in the terminal to create an EDID file for 1080p60Hz. The content of this file is as follows:
<pre>
<pre style="margin-left: 1em;">
    00 ff ff ff ff ff ff 00 52 62 00 37 00 00 00 00
00 ff ff ff ff ff ff 00 52 62 00 37 00 00 00 00
    01 1b 01 03 80 46 28 78 0a cf 74 a3 57 4c b0 23
01 1b 01 03 80 46 28 78 0a cf 74 a3 57 4c b0 23
    09 48 4c 21 08 00 b3 00 95 00 a9 40 90 40 81 00
09 48 4c 21 08 00 b3 00 95 00 a9 40 90 40 81 00
    81 80 81 40 01 01 02 3a 80 18 71 38 2d 40 58 2c
81 80 81 40 01 01 02 3a 80 18 71 38 2d 40 58 2c
    45 00 00 d0 52 00 00 1e 02 3a 80 d0 72 38 2d 40
45 00 00 d0 52 00 00 1e 02 3a 80 d0 72 38 2d 40
    10 2c 45 80 00 d0 52 00 00 1e 00 00 00 fc 00 33
10 2c 45 80 00 d0 52 00 00 1e 00 00 00 fc 00 33
    32 46 48 44 5f 4c 43 44 5f 54 56 0a 00 00 00 fd
32 46 48 44 5f 4c 43 44 5f 54 56 0a 00 00 00 fd
    00 30 3e 0f 46 11 00 0a 20 20 20 20 20 20 01 38
00 30 3e 0f 46 11 00 0a 20 20 20 20 20 20 01 38
    02 03 30 f1 52 10 9f 04 13 05 14 03 02 11 12 20
02 03 30 f1 52 10 9f 04 13 05 14 03 02 11 12 20
    21 22 15 16 01 06 07 2c 09 07 07 15 07 50 57 06
21 22 15 16 01 06 07 2c 09 07 07 15 07 50 57 06
    00 3f 06 c0 83 01 00 00 67 03 0c 00 10 00 b0 2d
00 3f 06 c0 83 01 00 00 67 03 0c 00 10 00 b0 2d
    01 1d 80 3e 73 38 2d 40 7e 2c 45 80 00 d0 52 00
01 1d 80 3e 73 38 2d 40 7e 2c 45 80 00 d0 52 00
    00 1e 01 1d 80 d0 72 1c 2d 20 10 2c 25 80 00 d0
00 1e 01 1d 80 d0 72 1c 2d 20 10 2c 25 80 00 d0
    52 00 00 9e 01 1d 00 bc 52 d0 1e 20 b8 28 55 40
52 00 00 9e 01 1d 00 bc 52 d0 1e 20 b8 28 55 40
    00 d0 52 00 00 1e 01 1d 80 18 71 1c 16 20 58 2c
00 d0 52 00 00 1e 01 1d 80 18 71 1c 16 20 58 2c
    25 00 00 d0 52 00 00 9e 00 00 00 00 00 00 00 8f
25 00 00 d0 52 00 00 9e 00 00 00 00 00 00 00 8f
</pre>
</pre>


Line 324: Line 324:


Execute <code>nano testC7xx.sh</code> in the same directory to create a test script. The content of this file is as follows:
Execute <code>nano testC7xx.sh</code> in the same directory to create a test script. The content of this file is as follows:
<pre>
<pre style="margin-left: 1em;">
#!/bin/bash
#!/bin/bash
MEDIADEVICE=-1
MEDIADEVICE=-1
Line 374: Line 374:


Execute <code>bash testC7xx.sh</code> directly in the terminal; the output is as follows:
Execute <code>bash testC7xx.sh</code> directly in the terminal; the output is as follows:
<pre>
<pre style="margin-left: 1em;">
pi@raspberrypi:~/Desktop $ bash testC7xx.sh  
pi@raspberrypi:~/Desktop $ bash testC7xx.sh  
Active width: 1920
Active width: 1920
Line 396: Line 396:


:If you have installed the Raspberry Pi Desktop version, you can use ffplay to play YUV files directly.
:If you have installed the Raspberry Pi Desktop version, you can use ffplay to play YUV files directly.
<pre>
<pre style="margin-left: 1em;">
ffplay -f rawvideo -video_size 1920x1080 -pixel_format bgr24 test.yuv  
ffplay -f rawvideo -video_size 1920x1080 -pixel_format bgr24 test.yuv  
</pre>
</pre>