GK802 with USB UVC web camera

1,091 views
Skip to first unread message

Žydrūnas Urbonas

unread,
Dec 19, 2013, 3:42:51 PM12/19/13
to imx6-...@googlegroups.com
I'm trying to make webcam working

Currently tried 3 models - all are supported by UVC, but does not work with GK802.
Failure occurs randomly. Its either:

  • does not detect usb connection at all (neither dmesg, nor lsusb)
  • usb detects, but fails to initialize (unable to enumerate USB device on port 1)
  • uvcvideo starts, but camera is unusable - capture hangs (never get picture in vlc or motion)

Typical errors I get are like those:

usb 1-1: new high speed USB device number 2 using fsl-ehci
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high speed USB device number 3 using fsl-ehci
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high speed USB device number 4 using fsl-ehci
usb 1-1: device not accepting address 4, error -71
usb 1-1: new high speed USB device number 5 using fsl-ehci
usb 1-1: device not accepting address 5, error -71
hub 1-0:1.0: unable to enumerate USB device on port 1
ehci_fsl_bus_suspend begins, DR
ehci_fsl_bus_suspend ends, DR


Jan  1 01:25:07 gk802 kernel: usb 1-1: new high speed USB device number 2 using fsl-ehci
Jan  1 01:25:08 gk802 kernel: usb 1-1: device v0ac8 p3420 is not supported
Jan  1 01:25:08 gk802 mtp-probe: checking bus 1, device 2: "/sys/devices/platform/fsl-ehci.0/usb1/1-1"
Jan  1 01:25:08 gk802 mtp-probe: bus: 1, device: 2 was not an MTP device
Jan  1 01:25:08 gk802 kernel: uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
Jan  1 01:25:08 gk802 kernel: input: Vimicro USB 2.0 PC Camera (Venu as /devices/platform/fsl-ehci.0/usb1/1-1/1-1:1.0/input/input0
Jan  1 01:25:08 gk802 kernel: usbcore: registered new interface driver uvcvideo
Jan  1 01:25:08 gk802 kernel: USB Video Class driver (v1.1.0)
Jan  1 01:25:12 gk802 kernel: ehci_fsl_bus_suspend begins, DR
Jan  1 01:25:12 gk802 kernel: ehci_fsl_bus_suspend ends, DR
Jan  1 01:25:39 gk802 kernel: ehci_fsl_bus_resume begins, DR
Jan  1 01:25:39 gk802 kernel: ehci_fsl_bus_resume ends, DR
Jan  1 01:25:40 gk802 kernel: uvcvideo: Failed to resubmit video URB (-27).
Jan  1 01:26:35 gk802 kernel: last message repeated 4 times
Jan  1 01:43:51 gk802 kernel: uvcvideo: Failed to set UVC commit control : -71 (exp. 26).
Jan  1 01:43:51 gk802 kernel: uvcvideo 1-1:1.1: resume error -5
Jan  1 01:55:21 gk802 kernel: usb 1-1: USB disconnect, device number 2



Jan  1 01:55:34 gk802 kernel: uvcvideo: Found UVC 1.00 device Vimicro USB Camera (Altair) (0ac8:3450)
Jan  1 01:55:34 gk802 kernel: input: Vimicro USB Camera (Altair) as /devices/platform/fsl-ehci.0/usb1/1-1/1-1:1.0/input/input1
Jan  1 01:55:34 gk802 mtp-probe: checking bus 1, device 3: "/sys/devices/platform/fsl-ehci.0/usb1/1-1"
Jan  1 01:55:34 gk802 mtp-probe: bus: 1, device: 3 was not an MTP device
Jan  1 01:55:39 gk802 kernel: ehci_fsl_bus_suspend begins, DR
Jan  1 01:55:39 gk802 kernel: ehci_fsl_bus_suspend ends, DR
Jan  1 01:55:49 gk802 kernel: ehci_fsl_bus_resume begins, DR
Jan  1 01:55:49 gk802 kernel: ehci_fsl_bus_resume ends, DR
Jan  1 01:55:50 gk802 kernel: uvcvideo: Non-zero status (-75) in status completion handler.
Jan  1 01:55:50 gk802 kernel: uvcvideo: Failed to resubmit video URB (-27).
Jan  1 01:57:07 gk802 kernel: last message repeated 4 times
Jan  1 02:24:55 gk802 kernel: uvcvideo: Failed to set UVC commit control : -71 (exp. 26).
Jan  1 02:24:55 gk802 kernel: uvcvideo 1-1:1.1: resume error -5
Jan  1 02:25:06 gk802 kernel: usb 1-1: USB disconnect, device number 3

And when usb connection is not shown in dmesg (camera's gets power and LEDs are turned on), lsusb only shows:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN

I have tried two different 5V 2A power adapters and two different usb power cords - same random issues, no correlation.

What else can I try to identify if this is not a broken device?
Could it be buggy kernel/drivers?

Right now I'm running 3.0.35-02708-g899792c. Tried to compile few later versions, like 4.1.0 - but can't make them boot yet

Any suggestions or ideas?
Thanks!

Haakon Stende

unread,
Dec 19, 2013, 5:17:16 PM12/19/13
to Žydrūnas Urbonas, imx6-...@googlegroups.com
Do you use a powered usb hub. I think the problem is that you don't get enough power to the usb.


2013/12/19 Žydrūnas Urbonas <tos...@gmail.com>

tosiara

unread,
Dec 20, 2013, 1:19:57 AM12/20/13
to Haakon Stende, imx6-dongle
I don't use any hub, I just plug web camera directly to USB port of the GK802. So could that mean that GK802 itself gets insufficient power and that's why USB fails?

Tested two power adapters: one which came with GK802 and another from Samsung Galaxy Tab. Both are 5V 2A. Is it possible to check if adapter is powerfull enough for GK802?

Žydrūnas Urbonas

unread,
Dec 20, 2013, 3:50:09 AM12/20/13
to imx6-...@googlegroups.com, Haakon Stende
Just tested another power supply - 5.1V 2.1A (A1357 10W iPad) - same issue...

Haakon Stende

unread,
Dec 20, 2013, 4:56:24 AM12/20/13
to Žydrūnas Urbonas, imx6-dongle
The problem is in design. I think the  only way to solve it is to try using a powered usb hub.
.


2013/12/20 Žydrūnas Urbonas <tos...@gmail.com>

tosiara

unread,
Dec 20, 2013, 3:14:34 PM12/20/13
to Angus Gratton, imx6-dongle, Haakon Stende
Hi Angus,

this seems to explain pretty strange effect I have just discovered.

I connected GK802 through microUSB to my workstation - it powers up, boots and I can connect over ssh (wireless connection). Now if I connect webcam to USB port of GK802 - the device will end up at my workstation! I do dmesg on GK802 - nothing. I do dmesg on workstation - and I see that webcam is connected. GK802 acts as USB hub? *Whyyyyy*

Never seen that before. So this is not a bug or device defect - it is GK802 design?


On Fri, Dec 20, 2013 at 9:22 PM, Angus Gratton <g...@projectgus.com> wrote:
Hi folks,

On the GK802 the USB data lines from the A and MicroB sockets are joined together. I guess the designers thought it was useful to allow you to use either port.

However most USB chargers use the data lines to indicate "I'm a charger". This breaks the data lines for anything connected to the other port.

On my gk802 I'm using an apple "12W" iPad charger with a custom microusb cable where I've cut the D+ & D- lines internally.

Another option that i think would work would be to "back power" the gk802 through a powered USB hub and the A socket, and leave the MicroB disconnected. Most cheaper hubs can do this, it's a popular technique for raspberry pi users.

Hope this helps,

Angus



-------- Original Message --------
From: "Žydrūnas Urbonas" <tos...@gmail.com>
Sent: Fri Dec 20 19:50:09 AEDT 2013
To: imx6-...@googlegroups.com
Cc: Haakon Stende <ste...@gmail.com>
Subject: Re: [imx6-dongle] GK802 with USB UVC web camera

Just tested another power supply - 5.1V 2.1A (A1357 10W iPad) - same
issue...

On Friday, December 20, 2013 8:19:57 AM UTC+2, Žydrūnas Urbonas wrote:
>
> I don't use any hub, I just plug web camera directly to USB port of the
> GK802. So could that mean that GK802 itself gets insufficient power and
> that's why USB fails?
>
> Tested two power adapters: one which came with GK802 and another from
> Samsung Galaxy Tab. Both are 5V 2A. Is it possible to check if adapter is
> powerfull enough for GK802?
>
>
> On Fri, Dec 20, 2013 at 12:17 AM, Haakon Stende <ste...@gmail.com> wrote:
>
>> Do you use a powered usb hub. I think the problem is that you don't get
>> enough power to the usb.
>>
>>
>> 2013/12/19 Žydrūnas Urbonas <tos...@gmail.com>
>>
>>> I'm trying to make webcam working
>>>
>>> Currently tried 3 models - all are supported by UVC, but does not work
>>> with GK802.
>>> Failure occurs randomly. Its either:
>>>
>>>
>>>    - does not detect usb connection at all (neither dmesg, nor lsusb)
>>>    - usb detects, but fails to initialize (unable to enumerate USB
>>>    device on port 1)
>>>    - uvcvideo starts, but camera is unusable - capture hangs (never get
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Angus Gratton

unread,
Dec 20, 2013, 2:22:50 PM12/20/13
to Žydrūnas Urbonas, imx6-...@googlegroups.com, Haakon Stende
Hi folks,

On the GK802 the USB data lines from the A and MicroB sockets are joined together. I guess the designers thought it was useful to allow you to use either port.

However most USB chargers use the data lines to indicate "I'm a charger". This breaks the data lines for anything connected to the other port.

On my gk802 I'm using an apple "12W" iPad charger with a custom microusb cable where I've cut the D+ & D- lines internally.

Another option that i think would work would be to "back power" the gk802 through a powered USB hub and the A socket, and leave the MicroB disconnected. Most cheaper hubs can do this, it's a popular technique for raspberry pi users.

Hope this helps,

Angus


-------- Original Message --------
From: "Žydrūnas Urbonas" <tos...@gmail.com>
Sent: Fri Dec 20 19:50:09 AEDT 2013
To: imx6-...@googlegroups.com
Cc: Haakon Stende <ste...@gmail.com>
Subject: Re: [imx6-dongle] GK802 with USB UVC web camera

Just tested another power supply - 5.1V 2.1A (A1357 10W iPad) - same
issue...

On Friday, December 20, 2013 8:19:57 AM UTC+2, Žydrūnas Urbonas wrote:
>
> I don't use any hub, I just plug web camera directly to USB port of the
> GK802. So could that mean that GK802 itself gets insufficient power and
> that's why USB fails?
>
> Tested two power adapters: one which came with GK802 and another from
> Samsung Galaxy Tab. Both are 5V 2A. Is it possible to check if adapter is
> powerfull enough for GK802?
>
>
> On Fri, Dec 20, 2013 at 12:17 AM, Haakon Stende <ste...@gmail.com> wrote:
>
>> Do you use a powered usb hub. I think the problem is that you don't get
>> enough power to the usb.
>>
>>
>> 2013/12/19 Žydrūnas Urbonas <tos...@gmail.com>
>>
>>> I'm trying to make webcam working
>>>
>>> Currently tried 3 models - all are supported by UVC, but does not work
>>> with GK802.
>>> Failure occurs randomly. Its either:
>>>
>>>
>>> - does not detect usb connection at all (neither dmesg, nor lsusb)
>>> - usb detects, but fails to initialize (unable to enumerate USB
>>> device on port 1)
>>> - uvcvideo starts, but camera is unusable - capture hangs (never get

Žydrūnas Urbonas

unread,
Dec 21, 2013, 4:37:22 AM12/21/13
to imx6-...@googlegroups.com, Žydrūnas Urbonas, Haakon Stende
Sharing here my findings (previously sent only to Angus):

Got powered usb hub and customized microUSB cord (cut white and green). Made two tests:

1. Connect power supply over microUSB port using customized cord. Second USB port used to connect powered usb hub, and web camera is connected to the hub. GK802 boots, lsusb shows no new devices. In the dmesg there is the same exception:


usb 1-1: device not accepting address 2, error -71

hub 1-0:1.0: unable to enumerate USB device on port 1
USB Host suspend begins

will suspend roothub and its children

ehci_fsl_bus_suspend begins, DR
ehci_fsl_bus_suspend ends, DR
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

uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
input: Vimicro USB 2.0 PC Camera (Venu as /devices/platform/fsl-ehci.0/
usb1/1-1/1-1.4/1-1.4:1.0/input/input0

usbcore: registered new interface driver uvcvideo


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

uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
input: Vimicro USB 2.0 PC Camera (Venu as /devices/platform/fsl-ehci.0/
usb1/1-1/1-1.3/1-1.3:1.0/input/input0

usbcore: registered new interface driver uvcvideo

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?

Žydrūnas Urbonas

unread,
Dec 21, 2013, 4:46:01 AM12/21/13
to imx6-...@googlegroups.com, Žydrūnas Urbonas, Haakon Stende
And finally it worked!

To make it working I need to connect everything in the strict order:

0. Power down GK802
1. Power on usb hub
2. Connect camera to the hub
3. Connect hub to USB of GK802 port, it should not power up and remain off
4. Plug microUSB cord into powered hub (or power supply if there are no more free ports)
5. Now connect that cord in microUSB of GK802 - and immediately unplug. You need to be quick. This only needed to trigger GK802 power on. If you leave microUSB connected - you will get exception in dmesg and all the usb devices will fail to initialize.
6. GK802 remains powered through USB port (powered hub) and after it boots you will be able to capture frames through VLC

Tested even 2 cameras connected at the same time - both worked fine

So, probably, Argus was right in his previous post - it's a freaky (buggy) G802 design? Or maybe it's buggy ehci driver?

Žydrūnas Urbonas

unread,
Dec 21, 2013, 5:15:25 AM12/21/13
to imx6-...@googlegroups.com, Žydrūnas Urbonas, Haakon Stende
And the last note from me.

I compared two dmesg logs from two tests: working webcam (when I pulg microUSB and immediately unplug it) and not working webcamera (when I leave microUSB connected).

> diff -u -w microUSB_disconnected.log microUSB_remains_connected.log
--- microUSB_disconnected.log   2013-12-21 12:11:44.965489720 +0200
+++ microUSB_remains_connected.log      2013-12-21 12:12:01.066732410 +0200
@@ -135,13 +135,15 @@
 DVFS driver module loaded
 snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
 Warning: unable to open an initial console.
-hub 1-1:1.0: USB hub found
-hub 1-1:1.0: 4 ports detected
 EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
 VFS: Mounted root (ext4 filesystem) on device 179:9.
 Freeing init memory: 184K
+hub 1-1:1.0: USB hub found
+hub 1-1:1.0: 4 ports detected

 usb 2-1: new high speed USB device number 2 using fsl-ehci
 usb 1-1.2: new high speed USB device number 3 using fsl-ehci
+USB Host suspend begins
+will resume roothub and its children
 usb 1-1.2: device v0ac8 p3420 is not supported
 usb 1-1.3: new high speed USB device number 4 using fsl-ehci
 usb 1-1.3: device v0ac8 p3450 is not supported


So the only significant difference is those lines appear in the not working scenario:

+USB Host suspend begins
+will resume roothub and its children

Does it make sense to anyone?

Haakon Stende

unread,
Dec 21, 2013, 5:33:32 AM12/21/13
to Žydrūnas Urbonas, imx6-...@googlegroups.com
You could try my 410 kernel and see if it behaves different http://stende.no-ip.info/files/kernel410.tgz

hste


2013/12/21 Žydrūnas Urbonas <tos...@gmail.com>

tosiara

unread,
Dec 21, 2013, 9:04:18 AM12/21/13
to Haakon Stende, imx6-dongle
Hi Haakon,

thanks for sharing your kernel

Unfortunately with this kernel behaves the same way. It only detects usb devices if nothing is plugged into microUSB

Also, for those who would install this kernel - new realtek wifi driver now requires firmware. I extracted it from this package: http://packages.debian.org/squeeze-backports/firmware-realtek (rtl8192c: Loading firmware file rtlwifi/rtl8192cufw.bin)
And also it misses the fix http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_3.0.35_4.1.0&id=4dcd0c3746c0125b6f78145f75352b32c05b4674 (shows invalid load values)

Haakon Stende

unread,
Dec 21, 2013, 9:38:20 AM12/21/13
to tosiara, imx6-dongle
hste


2013/12/21 tosiara <tos...@gmail.com>
Reply all
Reply to author
Forward
0 new messages