UVC USB camera support is lost by Raspbian upgrade

Bug #1733193 reported by Libor Neumann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

When Raspbian Wheezy is upgraded, the previously running support of UVC camera connected via USB is broken.
The bug can be reproduced by the following steps.

Do clean raspbian-wheezy instalation from
2015-05-05-raspbian-wheezy.img

Boot with UVC USB camera - following cameras were tested
046d:080a Logitech, Inc. Portable Webcam C905
or
046d:0991 Logitech, Inc. QuickCam Pro for Notebooks

dmesg:

[ 245.839495] usb 1-1.4: new high-speed USB device number 6 using dwc_otg
[ 246.067416] usb 1-1.4: New USB device found, idVendor=046d, idProduct=0991
[ 246.067458] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[ 246.067480] usb 1-1.4: SerialNumber: AC56F920
[ 246.203103] media: Linux media interface: v0.10
[ 246.243067] Linux video capture interface: v2.00
[ 246.302771] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0991)
[ 246.344732] input: UVC Camera (046d:0991) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.0/input/input4
[ 246.352707] usbcore: registered new interface driver uvcvideo
[ 246.352743] USB Video Class driver (1.1.1)
[ 246.829877] usb 1-1.4: set resolution quirk: cval->res = 384
[ 246.840584] usbcore: registered new interface driver snd-usb-audio

install uvccapture
sudo apt-get install uvccapture

testing with uvccapture

uvccapture -v -m -x640 -y480
Using videodevice: /dev/video0
Saving images to: snap.jpg
Image size: 640x480
Taking images using mmap
Resetting camera settings
Camera brightness level is 0
Camera contrast level is 255
Camera saturation level is 255
Camera gain level is 255
Saving image to: snap.jpg

can be repeated many times

dmesg - no change
It runs OK.

Do OS upgrade

sudo apt-get update && sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot

dmesg after reboot (the same HW as before):

[ 10.092431] Linux video capture interface: v2.00
[ 10.654708] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0991)
[ 10.888298] uvcvideo 1-1.4:1.0: Entity type for entity Extension 4 was not initialized!
[ 11.072184] uvcvideo 1-1.4:1.0: Entity type for entity Extension 10 was not initialized!
[ 11.231672] uvcvideo 1-1.4:1.0: Entity type for entity Extension 12 was not initialized!
[ 11.282523] uvcvideo 1-1.4:1.0: Entity type for entity Extension 8 was not initialized!
[ 11.321415] uvcvideo 1-1.4:1.0: Entity type for entity Extension 11 was not initialized!
[ 11.350441] uvcvideo 1-1.4:1.0: Entity type for entity Extension 9 was not initialized!
[ 11.371069] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[ 11.391673] uvcvideo 1-1.4:1.0: Entity type for entity Extension 13 was not initialized!
[ 11.412256] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[ 11.434804] input: UVC Camera (046d:0991) as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/input/input4
[ 11.466659] usbcore: registered new interface driver uvcvideo
[ 11.485010] USB Video Class driver (1.1.1)
[ 11.847073] usb 1-1.4: set resolution quirk: cval->res = 384
[ 11.877842] usbcore: registered new interface driver snd-usb-audio

install uvccapture
sudo apt-get install uvccapture

testing with uvccapture

uvccapture -v -m -x640 -y480
Using videodevice: /dev/video0
Saving images to: snap.jpg
Image size: 640x480
Taking images using mmap
Resetting camera settings
Camera brightness level is 0
Camera contrast level is 255
Camera saturation level is 255
Camera gain level is 255
Saving image to: snap.jpg

uvccapture -v -m -x640 -y480
Using videodevice: /dev/video0
Saving images to: snap.jpg
Image size: 640x480
Taking images using mmap
ERROR opening V4L interface
: Device or resource busy

The ability to run uvccapture is locked for a few seconds

dmesg - new records
[ 459.821560] usb 1-1.4: reset high-speed USB device number 11 using dwc_otg
[ 470.742468] usb 1-1.4: USB disconnect, device number 11
[ 470.861582] usb 1-1.4: new full-speed USB device number 12 using dwc_otg
[ 470.961564] usb 1-1.4: device descriptor read/64, error -32
[ 471.181558] usb 1-1.4: device descriptor read/64, error -32
[ 471.401584] usb 1-1.4: new full-speed USB device number 13 using dwc_otg
[ 471.501572] usb 1-1.4: device descriptor read/64, error -32
[ 471.721560] usb 1-1.4: device descriptor read/64, error -32
[ 471.941560] usb 1-1.4: new full-speed USB device number 14 using dwc_otg
[ 472.381560] usb 1-1.4: device not accepting address 14, error -32
[ 472.481568] usb 1-1.4: new full-speed USB device number 15 using dwc_otg
[ 472.921562] usb 1-1.4: device not accepting address 15, error -32
[ 472.921817] usb 1-1-port4: unable to enumerate USB device
[ 476.051548] usb 1-1.4: new high-speed USB device number 16 using dwc_otg
[ 476.309691] usb 1-1.4: New USB device found, idVendor=046d, idProduct=0991
[ 476.309718] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[ 476.309729] usb 1-1.4: SerialNumber: AC56F920
[ 476.320569] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0991)
[ 476.354954] uvcvideo 1-1.4:1.0: Entity type for entity Extension 4 was not initialized!
[ 476.354991] uvcvideo 1-1.4:1.0: Entity type for entity Extension 10 was not initialized!
[ 476.355011] uvcvideo 1-1.4:1.0: Entity type for entity Extension 12 was not initialized!
[ 476.355034] uvcvideo 1-1.4:1.0: Entity type for entity Extension 8 was not initialized!
[ 476.355054] uvcvideo 1-1.4:1.0: Entity type for entity Extension 11 was not initialized!
[ 476.355072] uvcvideo 1-1.4:1.0: Entity type for entity Extension 9 was not initialized!
[ 476.355089] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[ 476.355107] uvcvideo 1-1.4:1.0: Entity type for entity Extension 13 was not initialized!
[ 476.355123] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[ 476.356858] input: UVC Camera (046d:0991) as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/input/input6
[ 476.636602] usb 1-1.4: set resolution quirk: cval->res = 384

The C program using the camera running on non upgraded Raspbian without any issues failed on upgraded.

The same bug occurs if Raspbian is installed from 2017-09-07-raspbian-stretch-lite.img

Tags: wheezy
Pander (pander)
tags: added: wheezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.