Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uvc-gatget don't work on raspberry pi 4 R1.4 #30

Open
minoru86 opened this issue May 31, 2022 · 3 comments
Open

uvc-gatget don't work on raspberry pi 4 R1.4 #30

minoru86 opened this issue May 31, 2022 · 3 comments

Comments

@minoru86
Copy link

minoru86 commented May 31, 2022

I implemented this uvc-gatget on a raspberry pi4 4GB R1.2 and it worked fine. When I tried to run uvc-gadget on raspberry pi4 8GB R1.4 in the same way, the uvc-gadget device disappeared when I accessed the UVC camera from the PC connected via USB. It exists as a device in /dev/ video1 until I access the UVC camera (for example, select the camera in guvcview), but the device disappears as soon as I access it. The following log remains in syslog, but I don't understand what is wrong and it doesn't work as uvc-gadget. How can I get it to work with R1.4 ?

cat /proc/cpuinfo
Hardware: BCM2711
Revision: d03114
Model: Raspberry Pi 4 Model B Rev 1.4

lsb_release -a
Distributor ID : Raspbian
Description : Raspbian GNU/Linux 10 (buster)
Release : 10

syslog
raspberrypi kernel: [ 369.645143] configfs-gadget gadget: uvc: uvc_function_set_alt(1, 1)
raspberrypi kernel: [ 369.645159] configfs-gadget gadget: uvc: reset UVC
raspberrypi kernel: [ 370.263179] configfs-gadget gadget: uvc: VS request completed with status -61.
raspberrypi kernel: [ 370.842185] configfs-gadget gadget: uvc: VS request completed with status -61.
raspberrypi kernel: [ 371.845535] configfs-gadget gadget: uvc: uvc_function_disable()
raspberrypi piwebcam[433]: UVC: Possible USB shutdown requested from Host, seen during VIDIOC_DQBUF
raspberrypi piwebcam[433]: UVC: Possible USB shutdown requested from Host, seen during VIDIOC_DQBUF
raspberrypi piwebcam[433]: PROCESSING: Select timeout
raspberrypi piwebcam[433]: *** UVC GADGET SHUTDOWN ***
raspberrypi piwebcam[433]: DEVICE_V4L2: STREAM OFF success
raspberrypi piwebcam[433]: DEVICE_V4L2: Uninit device
raspberrypi piwebcam[433]: DEVICE_UVC: STREAM OFF success
raspberrypi piwebcam[433]: *** UVC GADGET EXIT ***

@wuhanstudio
Copy link

wuhanstudio commented Jun 17, 2022

I got the same error on raspberrypi 4.

UVC: Possible USB shutdown requested from Host, seen during VIDIOC_DQBUF
select timeout
UVC: Stopping video stream.

And using an older version of Raspberrypi OS fixes this issue:

2021-10-30-raspios-bullseye-armhf.img

@minoru86
Copy link
Author

minoru86 commented Jun 20, 2022

Hi, wuhanstudio.Thank you for your reply.
I also tried Bullseye, but changed to Buster because the camera driver specs weren't what I wanted. (Because the MJPG format could not be used with the V2 camera)
Do you know a version uvc-gadget works fine with Buster ?

@wuhanstudio
Copy link

Hi, I did not try buster, but this one may work as the problem is caused by the new DWC3 driver:

https://www.spinics.net/lists/linux-usb/msg213221.html

https://downloads.raspberrypi.org/raspios_oldstable_lite_armhf/images/raspios_oldstable_lite_armhf-2021-12-02/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants