This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/DRA746:关于 USB 端口中的视频捕获问题

Guru**** 2974170 points

Other Parts Discussed in Thread: TVP5158

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/672222/linux-dra746-about-video-capture-issue-in-usb-port

器件型号:DRA746
主题中讨论的其他器件:TVP5158

工具/软件:Linux

你(们)好,先生  

我们在 J6 EVM 中使用了最新的汽车处理器 SDK 进行开发。

我们希望使用迷你 USB 端口(USB 2.0)连接 USB 摄像头。  

我们发现系统不稳定、无法长时间捕捉视频。

例如、我们使用下面的示例代码来捕获视频。 系统将在5分钟内崩溃。  

#include

#include

#include

#include

#include

#include

#include

 

使用命名空间 cv;

void initivc (cv::VideoCapture vc、int w、int h) {

 vc.set(CV_CAP_PROP_FRAME_WIDTH、w);

  vc.set(CV_CAP_PROP_FRAME_HEIGHT、h);

}

void show_live_video () {

  VideoCapture 捕捉(1);

  initivc (捕获、1920、1080);

  垫架;

 

  while (waitKey (20)!= 27)

  {

    capture >> frame;

    if (!frame.empty())(如果!frame.empty()  

      imshow ("ADAS"、FRAME);

    其他

      printf ("frame.empty()\n");

  }

}

int main () {

  printf ("OpenCV 链接正常。\n");

  show_live_video ();

  返回0;

}

日志消息如下所示

[516.713750] 对齐陷阱:不在[]处理 ed910b22指令 ]

[516.721573] 未处理的故障:0x000000a2处的对齐异常(0x221)

[516.728701] PgD = ed5ebec0

[516.731771] [000000a2]* PgD=ad731003、* PMD=df883003

 

[6463.274551] OMAP-hwmod:mu1_dsp2:_wait_target_disable 失败

[6463.288607] OMAP-hwmod:mu0_dsp2:_wait_target_disable 失败

[6463.301801] OMAP-hwmod:mu1_dsp1:_wait_target_disable 失败

[6463.315024] omap_hwmod:mu0_dsp1:_wait_target_disable 失败

[6701.894740]对齐陷阱:不处理[ ]

[6701.902413]未处理的故障:0xffffff77上的对齐异常(0xa21)

[6701.911692] PgD = df96c080

[6701.914744][fffe77]* pgD=80000080007003、* PMD=affae003、* Pte=00000000

[6701.997545] TVP5158 1-0058:无法连接到 OD_PROBE

[6702.009575] omap_hwmod:mu0_dsp2:_wait_target_disable 失败

[6702.015466] OMAP-IMU 41501000.MMU:41501000.MMU:版本3.0

[6702.022145] OMAP-IMU 415020.MMU:415020.MMU:版本3.0

[6702.029825] TVP5158 1-0058:无法连接到 OD_PROBE

[6702.041456] omap_hwmod:mu0_dsp1:_wait_target_disable 失败

[6702.047343] OMAP-iommu 40d01000.MMU:40d01000.MMU:版本3.0

[6702.053945] OMAP-iommu 40d020.MMU:40d020.MMU:版本3.0

[6702.063079] TVP5158 1-0058:无法连接到 TO_PROBE

[6702.068746] TVP5158 1-0058:无法连接到 OV_PROBE

[6712.271331] omap_hwmod:mu1_dsp2:_wait_target_disable 失败

[6712.284338] omap_hwmod:mu0_dsp2:_wait_target_disable 失败

[6712.297437] omap_hwmod:mu1_dsp1:_wait_target_disable 失败

[6712.310433] omap_hwmod:mu0_dsp1:_wait_target_disable 失败

请提供建议并感谢您的帮助  

BR

Yimin

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你(们)好,先生

    你有什么建议吗? 或 TI J6 EVM 有任何限制?

    BR
    Yimin
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Yimin、

    您能否共享最新的汽车处理器 SDK 版本和您正在使用的内核版本?

    您知道谁/哪个模块正在打印以下消息吗?

    [516.713750] 对齐陷阱:不在[]处理 ed910b22指令 ]

    [516.721573] 未处理的故障:0x000000a2处的对齐异常(0x221)

    从提供的日志中、我们不确定导致系统崩溃的原因。 那么、当您看到系统崩溃时、您能否共享完整的调试日志和内核转储?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Yimin、
    我没有听到您的反馈,我认为您能够解决您的问题。 如果不是、只需在下面发布回复(如果该线程由于超时而锁定、则创建新线程)
    谢谢。