* [cx231xx] Support for Arm / Omap working at all?
@ 2013-01-17 7:31 Jan Stumpf
2013-01-21 9:53 ` Hans Verkuil
0 siblings, 1 reply; 5+ messages in thread
From: Jan Stumpf @ 2013-01-17 7:31 UTC (permalink / raw)
To: linux-media
Hi!
I'm trying to get an Hauppauge Live Usb 2 video grabber to run on on Omap4 (Gumstix Duovero). I'm using Sakomans omap-3.6 head kernel sources from http://git.sakoman.com/git/gitweb.cgi?p=linux.git;a=summary . The hardware is successfully detected on the USB host port, the driver loads perfectly including the firmware. With v4l2-ctl --all I can see if thee video signal on the composite port is ok or if the sync is lost, but as soon as I use any v4l2 software (e.g. yavta) to grab some images the driver uses 100% of the cpu, returns the first image and after some seconds I see EPROTO (-71) errors in dmesg. First I get " cx231xx #0: can't change interface 3 alt. no to 0 (err=-71)" and then "UsbInterface::sendCommand, failed with status --71"
I did the following tests:
- checked that all patches I found (e.g from http://git.linuxtv.org/mchehab/cx231xx.git) are included in my kernel, including the URB DMA related patches and the timing patches
- tried the same on an Gumstix Overo (Overo Fire and Overo WarerStorm) on several different header boards.
- tried older kernels (3.2 and 2.6.32) with rougly the same results or known errors due to missing patches
Unfortunately I can't use other capture devices because the final hardware is custom made with the cx23102 chip :-( I could use an omap3 instead of an omap4, but omap4 is preferred.
My questions are:
- Did anybody ever used the cx231xx driver with an omap3 or omap4 successfully?
- If yes, could you let me know the kernel version and maybe the config?
- Any hints what I could try? I'm an expirienced embedded C programmer but I dont have much expirience in USB kernel drivers.
Any help is greatly appriciated!
Thanks in Advance!
Jan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cx231xx] Support for Arm / Omap working at all?
2013-01-17 7:31 [cx231xx] Support for Arm / Omap working at all? Jan Stumpf
@ 2013-01-21 9:53 ` Hans Verkuil
2013-01-22 9:38 ` AW: " Jan Stumpf
0 siblings, 1 reply; 5+ messages in thread
From: Hans Verkuil @ 2013-01-21 9:53 UTC (permalink / raw)
To: Jan Stumpf; +Cc: linux-media
On Thu January 17 2013 08:31:50 Jan Stumpf wrote:
> Hi!
>
> I'm trying to get an Hauppauge Live Usb 2 video grabber to run on on Omap4 (Gumstix Duovero). I'm using Sakomans omap-3.6 head kernel sources from http://git.sakoman.com/git/gitweb.cgi?p=linux.git;a=summary . The hardware is successfully detected on the USB host port, the driver loads perfectly including the firmware. With v4l2-ctl --all I can see if thee video signal on the composite port is ok or if the sync is lost, but as soon as I use any v4l2 software (e.g. yavta) to grab some images the driver uses 100% of the cpu, returns the first image and after some seconds I see EPROTO (-71) errors in dmesg. First I get " cx231xx #0: can't change interface 3 alt. no to 0 (err=-71)" and then "UsbInterface::sendCommand, failed with status --71"
>
> I did the following tests:
>
> - checked that all patches I found (e.g from http://git.linuxtv.org/mchehab/cx231xx.git) are included in my kernel, including the URB DMA related patches and the timing patches
> - tried the same on an Gumstix Overo (Overo Fire and Overo WarerStorm) on several different header boards.
> - tried older kernels (3.2 and 2.6.32) with rougly the same results or known errors due to missing patches
>
> Unfortunately I can't use other capture devices because the final hardware is custom made with the cx23102 chip :-( I could use an omap3 instead of an omap4, but omap4 is preferred.
>
> My questions are:
>
> - Did anybody ever used the cx231xx driver with an omap3 or omap4 successfully?
I'm pretty sure the answer is that you're the first to try it.
> - If yes, could you let me know the kernel version and maybe the config?
> - Any hints what I could try? I'm an expirienced embedded C programmer but I dont have much expirience in USB kernel drivers.
A few months back I was working on improving this driver and I made a number
of fixes that are available in my git tree:
http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/cx231xx
In particular this patch might be relevant:
http://git.linuxtv.org/hverkuil/media_tree.git/commit/7bcf29cf460569c523b15d3c0dfed1397a7b770e
Regards,
Hans
>
> Any help is greatly appriciated!
>
> Thanks in Advance!
>
> Jan--
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* AW: [cx231xx] Support for Arm / Omap working at all?
2013-01-21 9:53 ` Hans Verkuil
@ 2013-01-22 9:38 ` Jan Stumpf
2013-01-22 13:36 ` Devin Heitmueller
0 siblings, 1 reply; 5+ messages in thread
From: Jan Stumpf @ 2013-01-22 9:38 UTC (permalink / raw)
To: linux-media
Thanks!
I will try it with your patches!
Regards
Jan
-----Ursprüngliche Nachricht-----
Von: linux-media-owner@vger.kernel.org [mailto:linux-media-owner@vger.kernel.org] Im Auftrag von Hans Verkuil
Gesendet: Montag, 21. Januar 2013 10:54
An: Jan Stumpf
Cc: linux-media@vger.kernel.org
Betreff: Re: [cx231xx] Support for Arm / Omap working at all?
On Thu January 17 2013 08:31:50 Jan Stumpf wrote:
> Hi!
>
> I'm trying to get an Hauppauge Live Usb 2 video grabber to run on on Omap4 (Gumstix Duovero). I'm using Sakomans omap-3.6 head kernel sources from http://git.sakoman.com/git/gitweb.cgi?p=linux.git;a=summary . The hardware is successfully detected on the USB host port, the driver loads perfectly including the firmware. With v4l2-ctl --all I can see if thee video signal on the composite port is ok or if the sync is lost, but as soon as I use any v4l2 software (e.g. yavta) to grab some images the driver uses 100% of the cpu, returns the first image and after some seconds I see EPROTO (-71) errors in dmesg. First I get " cx231xx #0: can't change interface 3 alt. no to 0 (err=-71)" and then "UsbInterface::sendCommand, failed with status --71"
>
> I did the following tests:
>
> - checked that all patches I found (e.g from
> http://git.linuxtv.org/mchehab/cx231xx.git) are included in my kernel,
> including the URB DMA related patches and the timing patches
> - tried the same on an Gumstix Overo (Overo Fire and Overo WarerStorm) on several different header boards.
> - tried older kernels (3.2 and 2.6.32) with rougly the same results or
> known errors due to missing patches
>
> Unfortunately I can't use other capture devices because the final hardware is custom made with the cx23102 chip :-( I could use an omap3 instead of an omap4, but omap4 is preferred.
>
> My questions are:
>
> - Did anybody ever used the cx231xx driver with an omap3 or omap4 successfully?
I'm pretty sure the answer is that you're the first to try it.
> - If yes, could you let me know the kernel version and maybe the config?
> - Any hints what I could try? I'm an expirienced embedded C programmer but I dont have much expirience in USB kernel drivers.
A few months back I was working on improving this driver and I made a number of fixes that are available in my git tree:
http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/cx231xx
In particular this patch might be relevant:
http://git.linuxtv.org/hverkuil/media_tree.git/commit/7bcf29cf460569c523b15d3c0dfed1397a7b770e
Regards,
Hans
>
> Any help is greatly appriciated!
>
> Thanks in Advance!
>
> Jan--
> To unsubscribe from this list: send the line "unsubscribe linux-media"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cx231xx] Support for Arm / Omap working at all?
2013-01-22 9:38 ` AW: " Jan Stumpf
@ 2013-01-22 13:36 ` Devin Heitmueller
2013-01-22 14:15 ` Yan Seiner
0 siblings, 1 reply; 5+ messages in thread
From: Devin Heitmueller @ 2013-01-22 13:36 UTC (permalink / raw)
To: Jan Stumpf; +Cc: linux-media
On Tue, Jan 22, 2013 at 4:38 AM, Jan Stumpf <Jan.Stumpf@asctec.de> wrote:
> Thanks!
>
> I will try it with your patches!
>
> Regards
> Jan
FYI: the cx231xx driver has worked in the past on ARM platforms,
although I haven't tried the USBLive2 on OMAP specifically. In fact,
I merged the original driver support upstream as part of a project I
did while developing a product that has it running on ARM.
You may wish to try whatever kernel you have on an x86 platform, as
people have a history of introducing regressions for the USBLive 2 in
the past (I've fixed it multiple times since I originally submitted
the support upstream). It's possible that it's broken on x86 as well,
and has nothing to do with your being on ARM at all.
Regards,
Devin
--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cx231xx] Support for Arm / Omap working at all?
2013-01-22 13:36 ` Devin Heitmueller
@ 2013-01-22 14:15 ` Yan Seiner
0 siblings, 0 replies; 5+ messages in thread
From: Yan Seiner @ 2013-01-22 14:15 UTC (permalink / raw)
To: linux-media
Devin Heitmueller wrote:
> On Tue, Jan 22, 2013 at 4:38 AM, Jan Stumpf <Jan.Stumpf@asctec.de> wrote:
>
>> Thanks!
>>
>> I will try it with your patches!
>>
>> Regards
>> Jan
>>
>
> FYI: the cx231xx driver has worked in the past on ARM platforms,
> although I haven't tried the USBLive2 on OMAP specifically. In fact,
> I merged the original driver support upstream as part of a project I
> did while developing a product that has it running on ARM.
>
> You may wish to try whatever kernel you have on an x86 platform, as
> people have a history of introducing regressions for the USBLive 2 in
> the past (I've fixed it multiple times since I originally submitted
> the support upstream). It's possible that it's broken on x86 as well,
> and has nothing to do with your being on ARM at all.
>
> Regards,
>
> Devin
>
>
I submitted this patch some time ago. It fixes the driver for
endiannes. Without it will try to allocate some random amount of
memory. It was in the kernel for a little then it disappeared....
diff -U3
/data10/home/yan/openwrt/backfire/trunk/build_dir/linux-brcm47xx/linux-3.0.3/drivers/media/video/cx231xx/cx231xx-pcb-cfg.c
cx231xx-pcb-cfg.c
---
/data10/home/yan/openwrt/backfire/trunk/build_dir/linux-brcm47xx/linux-3.0.3/drivers/media/video/cx231xx/cx231xx-pcb-cfg.c
2011-08-17 10:57:16.000000000 -0700
+++ cx231xx-pcb-cfg.c 2011-12-13 05:50:36.000000000 -0800
@@ -672,7 +672,9 @@
pcb config it is related to */
cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT, data, 4);
- config_info = *((u32 *) data);
+ //config_info = *((u32 *) data);
+ config_info = ((u32)(*(data))) + (((u32)(*(data+1))) << 8) +
(((u32)(*(data+2))) << 16) + (((u32)(*(data+3))) << 24);
+ cx231xx_info("config_info %x\n",config_info);
usb_speed = (u8) (config_info & 0x1);
/* Verify this device belongs to Bus power or Self power device */
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-22 14:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-17 7:31 [cx231xx] Support for Arm / Omap working at all? Jan Stumpf
2013-01-21 9:53 ` Hans Verkuil
2013-01-22 9:38 ` AW: " Jan Stumpf
2013-01-22 13:36 ` Devin Heitmueller
2013-01-22 14:15 ` Yan Seiner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.