完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
以下自定义初始化脚本由内核使用 yocto zeus 在 i.mx8mm 处理器上执行。
问题是在加载必要的内核模块并安装所需的文件系统之后。uvcvideo 的相机检测在 2-3 秒后打开,然后相机打开。我想在这个脚本运行时立即打开相机。知道在这种情况下发生了什么吗? 附件是日志cameraopening.txt #!/bin/sh # Load the necessary kernel modules for the camera modprobe videobuf2-v4l2 modprobe videodev modprobe uvcvideo # Mount the Linux kernel virtual filesystems mount none -t proc /proc # Ensure devtmpfs is mounted, it must be done manually with initramfs # Setup PTY infrastructure mkdir /dev/pts mount none -t devpts /dev/pts # Set any necessary environment variables export DISPLAY=:0.0 mkdir -p /run/user/$(id -u) XDG_RUNtiME_DIR=/run/user/$(id -u) export XDG_RUNTIME_DIR while true; do echo \"--------------------camera is starting------------------------------------\" ./sbin/uvc_stream -o test.avi v4l2-ctl --list-devices # Get the exit status of the pipeline status=$? # If the pipeline exited with an error, log a message and wait a few seconds before restarting it if [[ $status != 0 ]]; then sleep 0.00001 fi done |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
2135个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
37379 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
6778 浏览 1 评论
7796 浏览 1 评论
7646 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
5074 浏览 0 评论
1559浏览 2评论
关于NINA-W132 Wi-Fi模块SPI通信遇到的疑问求解
1211浏览 2评论
如何在MPC PowerPC MCU上首次刷写后禁用BDM?
750浏览 1评论
将HFREFR和LFREFR寄存器值设置为错误的值来将故障注入CMU,但CMU_ISR值始终为零,为什么?
737浏览 1评论
将SPSDK for FRDM-MCX-W71 SDK与VS一起安装时出现hidapi构建错误怎么解决?
681浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 09:34 , Processed in 0.644789 second(s), Total 70, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
609