raspberrypi / firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5.18k stars 1.68k forks source link

i'm Using two usb Camera but return error #1319

Open buYoung opened 4 years ago

buYoung commented 4 years ago

issue: using program lang python3 / golnag 1.13.1 / using usb camera two interface 2.0 product sonnix test firmware 4.19.50-v7l+ // 4.19.75-v7l+ // 4.19.50-v7l+ // 4.19.93 is same..

but firmware 4.19.50 (rasberry pi official site downloaded first version is safety, but.. firware downgrade is camera getting error)

python3 using library opencv 3.4.9, 4.1.0, 4.1.2, 4.2.0 golang using library v4l / opencv 4.2.0

golang is getting all camera but so slowly buffer (When importing an image from the camera, import it 3-5 times, stop and repeat)

python3 is getting one camera is safety, However, if you open the second camera and get an image, the first camera stops.

and now getting error : Python 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import cv2 Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/dist-packages/cv2/init.py", line 3, in from .cv2 import * ImportError: /usr/lib/arm-linux-gnueabihf/neon/vfp/libavcodec.so.58: undefined symbol: bcm_host_is_fkms_active

what is that? Searching there is no workaround.

pelwell commented 4 years ago

(rasberry pi official site downloaded first version is safety, but.. firware downgrade is camera getting error

I can't understand this comment - are you saying you downgraded because of a camera error?

bcm_host_is_fkms_active was added in the firmware update of Sep 20, which corresponds to a kernel version of 4.19.73. sudo apt update && sudo apt upgrade will install the latest kernel and firmware which should resolve the build error.

buYoung commented 4 years ago

i'm sorry The question was too difficult. I just "tested on different firmware versions." I wrote. I will try again.

I have the latest update with rpi-update. I connected two usb cameras to the rpi board and installed opencv 4.1.2 to test. But here's the problem. It works fine without any errors when only one camera is turned on. However, when one more camera is turned on, one camera has a green screen and one camera is stopped. It could be a camera problem, so even if you plug in another camera, the results are the same.

However, I used the following command to get green screen. sudo rmmod uvcvideo sudo modprobe uvcvideo nodrop = 1 timeout = 5000 quirks = 0x80 Without these two commands, the camera will "just stop".

In addition, "select time out" appears intermittently on the console screen.

Also, if the camera is "just stopped", the results of using the v4l2-ctl --list-device command are not listed.

(rasberry pi official site downloaded first version is safety, but.. firware downgrade is camera getting error

I can't understand this comment - are you saying you downgraded because of a camera error?

bcm_host_is_fkms_active was added in the firmware update of Sep 20, which corresponds to a kernel version of 4.19.73. sudo apt update && sudo apt upgrade will install the latest kernel and firmware which should resolve the build error.

JiangXL commented 4 years ago

Hi, I have same problem with bcm_host_is_fkms_active in mpv. After upgrade to least, no this error again.

$ mpv tv.m3u8 
mpv: symbol lookup error: /usr/lib/arm-linux-gnueabihf/neon/vfp/libavcodec.so.58: undefined symbol: bcm_host_is_fkms_active