host suspend ends
init: ureadahead main process (1348) terminated with status 5
init: Failed to open system console: No such device
usb 2-1: new high speed USB device number 2 using fsl-ehci
otg udc wakeup, host sends resume signal
irq 75: nobody cared (try booting with the "irqpoll" option)
[<
80042748>] (unwind_backtrace+0x0/0xf8) from [<800a1854>] (__report_bad_irq+0x28/0xc4)
[<800a1854>] (__report_bad_irq+0x28/0xc4) from [<800a1b98>] (note_interrupt+0x1e4/0x240)
[<800a1b98>] (note_interrupt+0x1e4/0x240) from [<800a0110>] (handle_irq_event_percpu+0xa8/0x180)
[<800a0110>] (handle_irq_event_percpu+0xa8/0x180) from [<800a0224>] (handle_irq_event+0x3c/0x5c)
[<800a0224>] (handle_irq_event+0x3c/0x5c) from [<800a2558>] (handle_fasteoi_irq+0x98/0x158)
[<800a2558>] (handle_fasteoi_irq+0x98/0x158) from [<8009fa20>] (generic_handle_irq+0x28/0x3c)
[<8009fa20>] (generic_handle_irq+0x28/0x3c) from [<8003c730>] (handle_IRQ+0x4c/0xac)
[<8003c730>] (handle_IRQ+0x4c/0xac) from [<8003b8cc>] (__irq_svc+0x4c/0xe8)
[<8003b8cc>] (__irq_svc+0x4c/0xe8) from [<80070c6c>] (__do_softirq+0x50/0x154)
[<80070c6c>] (__do_softirq+0x50/0x154) from [<800711f8>] (irq_exit+0x94/0x9c)
[<800711f8>] (irq_exit+0x94/0x9c) from [<8003c734>] (handle_IRQ+0x50/0xac)
[<8003c734>] (handle_IRQ+0x50/0xac) from [<8003b8cc>] (__irq_svc+0x4c/0xe8)
[<8003b8cc>] (__irq_svc+0x4c/0xe8) from [<8046bc00>] (unix_stream_sendmsg+0x84/
0x408)
[<8046bc00>] (unix_stream_sendmsg+0x84/0x408) from [<803ea9fc>] (sock_sendmsg+0x94/0xb4)
[<803ea9fc>] (sock_sendmsg+0x94/0xb4) from [<803ebdec>] (__sys_sendmsg+0x2b8/0x2d0)
[<803ebdec>] (__sys_sendmsg+0x2b8/0x2d0) from [<803ec804>] (sys_sendmsg+0x3c/0x68)
[<803ec804>] (sys_sendmsg+0x3c/0x68) from [<8003be80>] (ret_fast_syscall+0x0/0x30)
handlers:
[<8005bdcc>] usb_wakeup_handler
[<8030e620>] fsl_otg_isr
[<803085a0>] ehci_fsl_pre_irq
[<802f3ee8>] usb_hcd_irq
[<80313594>] fsl_udc_irq
Disabling IRQ #75
2.
Plugged powered usb hub into microUSB port, GK802 boots (no web cam
connected yet). lsusb shows new hub 1a40:0101. Plug web cam into the hub
and get same exception:
otg udc wakeup, host sends resume signal
irq 75: nobody cared (try booting with the "irqpoll" option)
[<
80042748>] (unwind_backtrace+0x0/0xf8) from [<800a1854>] (__report_bad_irq+0x28/0xc4)
[<800a1854>] (__report_bad_irq+0x28/0xc4) from [<800a1b98>] (note_interrupt+0x1e4/0x240)
[<800a1b98>] (note_interrupt+0x1e4/0x240) from [<800a0110>] (handle_irq_event_percpu+0xa8/0x180)
[<800a0110>] (handle_irq_event_percpu+0xa8/0x180) from [<800a0224>] (handle_irq_event+0x3c/0x5c)
[<800a0224>] (handle_irq_event+0x3c/0x5c) from [<800a2558>] (handle_fasteoi_irq+0x98/0x158)
[<800a2558>] (handle_fasteoi_irq+0x98/0x158) from [<8009fa20>] (generic_handle_irq+0x28/0x3c)
[<8009fa20>] (generic_handle_irq+0x28/0x3c) from [<8003c730>] (handle_IRQ+0x4c/0xac)
[<8003c730>] (handle_IRQ+0x4c/0xac) from [<8003b8cc>] (__irq_svc+0x4c/0xe8)
[<8003b8cc>] (__irq_svc+0x4c/0xe8) from [<80070c6c>] (__do_softirq+0x50/0x154)
[<80070c6c>] (__do_softirq+0x50/0x154) from [<800711f8>] (irq_exit+0x94/0x9c)
[<800711f8>] (irq_exit+0x94/0x9c) from [<800361b4>] (do_local_timer+0x70/0x90)
[<800361b4>] (do_local_timer+0x70/0x90) from [<8003b8cc>] (__irq_svc+0x4c/0xe8)
Exception stack(0x80a63f68 to 0x80a63fb0)
3f60: 80abefe0 800e0093 00000001 00000000 80a62000 80ab7c44
3f80: 804e7a9c 80a76e54 1000406a 412fc09a 00000000 00000000 00000000 80a63fb0
3fa0: 8004a41c 8003c9e0 400e0013 ffffffff
[<8003b8cc>] (__irq_svc+0x4c/0xe8) from [<8003c9e0>] (default_idle+0x24/0x28)
[<8003c9e0>] (default_idle+0x24/0x28) from [<8003cbd8>] (cpu_idle+0xbc/0xf8)
[<8003cbd8>] (cpu_idle+0xbc/0xf8) from [<
80008868>] (start_kernel+0x248/0x288)
[<
80008868>] (start_kernel+0x248/0x288) from [<10008040>] (0x10008040)
handlers:
[<8005bdcc>] usb_wakeup_handler
[<8030e620>] fsl_otg_isr
[<803085a0>] ehci_fsl_pre_irq
[<802f3ee8>] usb_hcd_irq
[<80313594>] fsl_udc_irq
Disabling IRQ #75
3. Plugged powered usb hub into microUSB port while web cam is already
attached to the hub, GK802 boots. dmesg shows web camera has been
successfully detected:
usbcore: registered new interface driver btusb
usb 1-1: new full speed USB device number 2 using fsl-ehci
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
usb 1-1: not running at top speed; connect to a high speed hub
hub 1-1:1.0: USB hub found
usb 2-1: new high speed USB device number 2 using fsl-ehci
usb 1-1.4: new full speed USB device number 3 using fsl-ehci
USB Host suspend begins
usb 1-1.4: not running at top speed; connect to a high speed hub
usb 1-1.4: device v0ac8 p3420 is not supported
lsusb
also shows camera in the list. I try to capture some frames using 'su -
linaro -c "cvlc -I dummy v4l2:///dev/video0 --run-time=1 vlc://quit'
and get error: cannot open device '/dev/video0': Device or resource busy
4. Connected powered usb hub (without webcam connected) to USB port.
GK802 does not power up. Then connect power supply into microUSB port -
GK802 boots. Wait until it connects to wireless - and unplug microUSB.
GK802 still runs. Then plug webcam into hub - web camera is detected:
ehci_fsl_bus_resume begins, DR
ehci_fsl_bus_resume ends, DR
usb 1-1.3: new full speed USB device number 3 using fsl-ehci
usb 1-1.3: not running at top speed; connect to a high speed hub
usb 1-1.3: device v0ac8 p3420 is not supported
Try open it using vlc - and now it opens fine!
[0x38700f20]
v4l2 demux debug: device Vimicro USB 2.0 PC Camera (Venu using driver
uvcvideo (version 1.1.0) on usb-fsl-ehci.0-1.3
But sill fails to capture frames:
[0x38700f20] v4l2 demux debug: found default width and height of 160x120
[0x38700f20] v4l2 demux debug: will try to find optimal width and height
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
[0x38702750]
v4l2 access debug: device Vimicro USB 2.0 PC Camera (Venu using driver
uvcvideo (version 1.1.0) on usb-fsl-ehci.0-1.3
[0x38702750] v4l2 access debug: the device has the capabilities: 0x05000001
[0x38702750] v4l2 access debug: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio
[0x38702750] v4l2 access debug: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[0x38702750] v4l2 access debug: video input 0 (Camera 1) has type: External analog input *
[0x38702750] v4l2 access error: cannot set input 0: Device or resource busy
[0x38702750] v4l2 access debug: trying library V4L2
[0x38702750] v4l2 access debug: device Vimicro USB 2.0 PC Camera (Venu
using driver uvcvideo (version 1.1.0) on usb-fsl-ehci.0-1.3
[0x38702750] v4l2 access debug: the device has the capabilities: 0x05000001
[0x38702750] v4l2 access debug: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio
[0x38702750] v4l2 access debug: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[0x38702750] v4l2 access debug: video input 0 (Camera 1) has type: External analog input *
[0x38702750] v4l2 access error: cannot set input 0: Device or resource busy
[0x38702750] main access debug: no access module matching "v4l2" could be loaded
[0x38702750] main access debug: TIMER module_need() : 5.845 ms - Total 5.845 ms / 1 intvls (Avg 5.845 ms)
[0x386005f8] main input error: open of `v4l2:///dev/video0' failed
And I noticed one process in "D" state:
root 381 0.0 0.0 0 0 ? D 10:57 0:00 [kworker/0:1]
Totally frustrated and disappointed with GK802
Tests made with dual 5V 2A power (power supply and
powered hub) still show it depends in which order and what you connect
to USB and microUSB port. I have used MK802 and MK808 previously - and
have not had any such issues, just plug any usb device and use it.
Maybe there is still poor kernel support for GK802 and especially support of V4L devices?