找不到UVC

  • hhh wrote: 2024-03-06 10:20 我跟着这篇教程的步骤走,当到内核这一步骤时,发现并没有名为UVC的选项
    我尝试在内核配置:
    cd <SDK目录>/sysdrv/source/kernel
    cp ./arch/arm/configs/luckfox_rv1106_linux_defconfig .config
    make ARCH=arm menuconfig
    QQ截图20240306181615.png
    和buildroot:
    cd <SDK 目录>/sysdrv/source/buildroot/buildroot-2023.02.6/
    make luckfox_pico_defconfig
    make menuconfig
    在buildroot搜UVC出来的.png
    寻找,但是均未找到
    于是当我用串口登录时,将usb摄像头接入LuckfoxPico时报错:
    QQ截图20240306180739.png
    请问有没有什么解决办法?为什么?
    您好,很抱歉我们的 wiki 对 kernel 的设置没有描述清楚,在 kernel 设置的详细步骤为
    1. 使用 / 搜索关键字
    uvc-01.jpg
    2. 选择序号为 2 的索引
    uvc-02.jpg
    3. 按 y 确认将 Media USB Adapters 编译进内核
    uvc-03.jpg
    4. 回车 打开 Media USB Adapters 子目录
    uvc-04.jpg
    buildroot 正常打开 fswebcam 和 libv4l2 即可。
  • 我将分辨率改为640*480之后,fswebcam保存成功了.但是我的摄像头本身是支持1080p的,而我fswebcam想要拍1080p的时候貌似会出现内存不足的现象,导致无线重启.
    我想知道为什么分辨率为1920*1080的时候会这样,如何解决,以及如下报错是由什么原因造成的,即:
    v4l2-ctl --list-devices的时候出现:
    ate sensor info failed -19
    [ 176.# 440970] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441044] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
    [ 176.441063] stream_cif_mipi_id1: update sensor info failed -19
    [ 176.441130] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441258] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[2] get remote terminal sensor failed!
    [ 176.441282] stream_cif_mipi_id2: update sensor info failed -19
    [ 176.441355] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441430] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[3] get remote terminal sensor failed!
    [ 176.441451] stream_cif_mipi_id3: update sensor info failed -19
    [ 176.441551] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441604] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
    [ 176.441628] rkcif_scale_ch0: update sensor info failed -19
    [ 176.441682] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441790] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
    [ 176.441811] rkcif_scale_ch1: update sensor info failed -19
    [ 176.441873] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441920] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[2] get remote terminal sensor failed!
    [ 176.441941] rkcif_scale_ch2: update sensor info failed -19
    [ 176.442049] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442102] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[3] get remote terminal sensor failed!
    [ 176.442121] rkcif_scale_ch3: update sensor info failed -19
    [ 176.442179] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442282] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
    [ 176.442305] rkcif_tools_id0: update sensor info failed -19
    [ 176.442365] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442414] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
    [ 176.442433] rkcif_tools_id1: update sensor info failed -19
    [ 176.442545] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442601] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[2] get remote terminal sensor failed!
    [ 176.442622] rkcif_tools_id2: update sensor info failed -19
    以及启动的时候,输出
    sh: write error: No such device
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    current_ip =
    TARGET_IP = 172.32.0.93
    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    在启动的时候出现:
    sh: write error: No such device
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    current_ip =
    TARGET_IP = 172.32.0.93
    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    再次感谢您的帮助!希望能得到您的解答
  • hhh wrote: 2024-03-07 6:24 我将分辨率改为640*480之后,fswebcam保存成功了.但是我的摄像头本身是支持1080p的,而我fswebcam想要拍1080p的时候貌似会出现内存不足的现象,导致无线重启.
    我想知道为什么分辨率为1920*1080的时候会这样,如何解决,以及如下报错是由什么原因造成的,即:
    v4l2-ctl --list-devices的时候出现:
    ate sensor info failed -19
    [ 176.# 440970] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441044] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
    [ 176.441063] stream_cif_mipi_id1: update sensor info failed -19
    [ 176.441130] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441258] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[2] get remote terminal sensor failed!
    [ 176.441282] stream_cif_mipi_id2: update sensor info failed -19
    [ 176.441355] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441430] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[3] get remote terminal sensor failed!
    [ 176.441451] stream_cif_mipi_id3: update sensor info failed -19
    [ 176.441551] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441604] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
    [ 176.441628] rkcif_scale_ch0: update sensor info failed -19
    [ 176.441682] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441790] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
    [ 176.441811] rkcif_scale_ch1: update sensor info failed -19
    [ 176.441873] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.441920] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[2] get remote terminal sensor failed!
    [ 176.441941] rkcif_scale_ch2: update sensor info failed -19
    [ 176.442049] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442102] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[3] get remote terminal sensor failed!
    [ 176.442121] rkcif_scale_ch3: update sensor info failed -19
    [ 176.442179] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442282] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
    [ 176.442305] rkcif_tools_id0: update sensor info failed -19
    [ 176.442365] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442414] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
    [ 176.442433] rkcif_tools_id1: update sensor info failed -19
    [ 176.442545] rockchip-csi2-dphy0: No link between dphy and sensor
    [ 176.442601] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[2] get remote terminal sensor failed!
    [ 176.442622] rkcif_tools_id2: update sensor info failed -19
    以及启动的时候,输出
    sh: write error: No such device
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    current_ip =
    TARGET_IP = 172.32.0.93
    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    在启动的时候出现:
    sh: write error: No such device
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    current_ip =
    TARGET_IP = 172.32.0.93
    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found

    luckfox : set usb0 ip
    ifconfig: SIOCSIFADDR: No such device
    ifconfig: usb0: error fetching interface information: Device not found
    再次感谢您的帮助!希望能得到您的解答
    您好,使用 fswebcam 捕获 1080p 的图像如果因为内存不足而失败可以尝试:
    1.在设置文件夹 <Luckfox-pico SDK>/project/cfg/BoardConfig_IPC/ 中将对应配置文件 BoardConfig-XXX.mk 中修改 RK_BOOTARGS_CMA_SIZE 项,降低数值减少内存对cma的分配;

    2.同时在 luckfox-pico 启动时使用 killall rkipc 关闭 csi 摄像头的开机程序,减少内存占用;
    注意:由于 UVC 设备种类较多,无法确实是否是因为内存不足而导致反复重启,无法完全排除硬件问题。

    使用 v4l2-ctl --list-devices 内核信息报错的原因是镜像中默认设置了csi 摄像头的设备树和驱动,但是摄像头没有物理上的连接,报错信息可以忽略。

    启动时出现的 usb0 默认是作为虚拟网卡使用,在 /etc/init.d/S90usb0config 启动脚本中对其 ip 进行了设置,而 usb 为了接入 uvc 设备设置为 usb host 模型,原本针对 usb 网卡的控制脚本无法正常运行就发出提示信息,您可以尝试注释相依的脚本来屏蔽相应的错误信息。
  • 十分感谢您的解答!已解决