Firefly开源社区

标题: AIO-3399J开发HDMI-IN功能无法使能 [打印本页]

作者: yong.qian    时间: 2022-9-15 14:52
标题: AIO-3399J开发HDMI-IN功能无法使能
本帖最后由 yong.qian 于 2022-9-15 15:01 编辑


系统启动时HDMI-IN芯片驱动相关的信息
  1. firefly@firefly:~$ dmesg | grep 35874
  2. [    3.587466] tc35874x 1-000f: driver version: 00.01.00
  3. [    3.588001] tc35874x 1-000f: GPIO lookup for consumer reset
  4. [    3.588012] tc35874x 1-000f: using device tree for GPIO lookup
  5. [    3.588044] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/i2c@ff110000/tc358749@0f[0]' - status (0)
  6. [    3.696387] m00_f_tc35874x 1-000f: tc358749 found @ 0x1e (rk3x-i2c)
复制代码
系统启动后,系统中video类的设备文件
  1. firefly@firefly:~$ v4l2-ctl --list-devices
  2. rkisp1-statistics (platform: rkisp1):
  3.         /dev/video3
  4.         /dev/video4
  5.         /dev/video8
  6.         /dev/video9

  7. rkisp1_mainpath (platform:ff910000.rkisp1):
  8.         /dev/video0
  9.         /dev/video1
  10.         /dev/video2

  11. rkisp1_mainpath (platform:ff920000.rkisp1):
  12.         /dev/video5
  13.         /dev/video6
  14.         /dev/video7

  15. rkisp1 (platform:rkisp1):
  16.         /dev/media0
  17.         /dev/media1
复制代码



tchip_askquestions

aio-3399.log

1.34 KB, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1


作者: yong.qian    时间: 2022-9-15 14:57
下面是系统启动的hdmi采集脚本,目前无法正确获取到device_id:

  1. firefly@firefly:~$ cat /usr/local/bin/test_hdmirx.sh
  2. #!/bin/bash

  3. device_id=$(v4l2-ctl --list-devices | grep -A1 hdmirx | grep -v hdmirx | awk -F ' ' '{print $NF}')

  4. v4l2-ctl -d $device_id --set-dv-bt-timings query

  5. width=$(v4l2-ctl -d $device_id --get-dv-timings | grep "Active width" |awk -F ' ' '{print $NF}')
  6. heigh=$(v4l2-ctl -d $device_id --get-dv-timings | grep "Active heigh" |awk -F ' ' '{print $NF}')

  7. trap 'onCtrlC' INT
  8. function onCtrlC () {
  9.         echo 'Ctrl+C is captured'
  10.         killall gst-launch-1.0
  11.         exit 0
  12. }

  13. export XDG_RUNTIME_DIR=/run/user/1000
  14. gst-launch-1.0 alsasrc device=hw:2,0 ! audioconvert ! audioresample ! queue !  alsasink device="hw:1,0" &
  15. gst-launch-1.0 v4l2src device=$device_id ! queue ! video/x-raw,format=RGB ! capssetter replace = true caps="video/x-raw,format=BGR,width=$width,height=$heigh" ! glimagesink &

  16. echo "[Ctrl + C] exit"
  17. while true
  18. do
  19.         sleep 10
  20. done
复制代码

作者: yong.qian    时间: 2022-9-15 15:02
系统的版本信息如下:
  1. firefly@firefly:~$ ffgo version
  2. OS:      Ubuntu 20.04.4 LTS
  3. MODEL:   AIO-3399J Board (Linux Opensource)
  4. FIREFLY: v2.11-56-g44d33d7
  5. DATE:    20220526
  6. KERNEL:  Linux version 4.4.194-g30e174dc173f (qy@ts) (firefly: 30e174dc173fba89c9b84a2651ad46cbc68bb0ac) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #3 SMP Wed Sep 14 13:03:12 CST 2022
复制代码





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1