Re: [linux-sunxi] Using usbtv driver on A20

2015-07-28 Thread webertakaki
Hi Armando,

I'm having the same issues you had trying to load the usbtv kernel 
module into a Sunxi Linux system (A20-based Cubieboard2).

How did you manage to cross-compile and load the backport drivers to 
the target kernel?  I'm doing precisely the same steps you mention, but my 
backport drivers are build for my host machine (ubuntu x86), instead of my 
target machine (ARM)?

Here is the modinfo output from a cross-compiled driver 
(sunxi_cedar_mod.ko) from my kernel sources:

version:0.01alpha
license:GPL
description:User mode CEDAR device interface
author: Soft-Allwinner
srcversion: DF883A231D91233BDAC03C7
depends:
intree: Y
vermagic:   3.4.103-g9a1cd03-dirty SMP preempt mod_unload modversions 
ARMv7 p2v8 
parm:   g_dev_major:int
parm:   g_dev_minor:int


And here is the output from a cross-compiled backport driver 
(v4l2-common.ko):

license:GPL
description:misc helper functions for v4l2 device drivers
author: Bill Dirks, Justin Schoeman, Gerd Knorr
srcversion: 2E58A890BED986B84F9BF18
depends:videodev
vermagic:   3.13.0-53-generic SMP mod_unload modversions 

If you could share some ideas on how to overcome this, I would very 
much appreciate.

Thanks in advance.
Weber



Em segunda-feira, 5 de maio de 2014 04:29:39 UTC-3, hmand...@gmail.com 
escreveu:

 Hi Julian,

  Firstly, you _must_ supply more information than this
 sorry, i using debian wheezy in a virtual machine to build linux-sunxi 
 kernel and modules. I using kernel 3.4.67+ (from stable sunxi-3.4) and 
 backports-3.13.2-1.

 i setup build as follow:
 $ set -a
 $ CROSS_COMPILE=arm-linux-gnueabihf-
 $ ARCH=arm
 $ KLIB_BUILD=/home/debian/a20_kernel_3.4/linux-sunxi
 $ KLIB=/lib/modules/3.4.67+
 $ set +a

 $ make menuconfig: 
Multimedia support  Cameras/video grabbers support
Multimedia support  Media USB Adapters  USBTV007 video capture support

 $ make

 this is make result:
 http://pastebin.com/raw.php?i=MsSstVCZ




-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] cx231xx video capture error

2014-11-24 Thread webertakaki
Hello All,

   I've been trying without success to capture video from a PixelView 
XCapture USB card, using the cx231xx driver module and ffmpeg on a 
CubieBoard2 (A20). 
   After loading the driver module successfully, I run ffmpeg that captures 
one single empty frame. When I quit ffmpeg the kernel issues the following 
error messages:

cx231xx #0: UsbInterface::sendCommand, failed with status --71
cx231xx #0: UsbInterface::sendCommand, failed with status --71
cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
cx231xx #0: can't change interface 4 alt no. to 0 (err=-71)

   I'm using kernel version 3.4.103, and buildroot to build the root file 
system.  V4L2 where compiled as modules. Some extra information about my 
system are provided further down.

   Thanks in advance. Any help would be much appreciated.

Regards,
Weber


# lsmod
Module  Size  Used byNot tainted
cx231xx_alsa8081  0 
cx2584096576  1 
cx231xx   149960  1 cx231xx_alsa
cx2341x18988  1 cx231xx
videobuf_vmalloc5478  1 cx231xx
videobuf_core  20077  2 cx231xx,videobuf_vmalloc
v4l2_common 9035  3 cx25840,cx231xx,cx2341x
videodev   90988  4 cx25840,cx231xx,cx2341x,v4l2_common
rc_core21002  1 cx231xx
mali  111750  0 
ump51021  1 mali


# dmesg
 [...information truncated ...]
[   20.114304] Linux video capture interface: v2.00
[   20.322307] cx231xx #0: New device Conexant Corporation VT105B @ 480 
Mbps (1554:5014) with 6 interfaces
[   20.340444] cx231xx #0: registering interface 1
[   20.355726] cx231xx #0: Identified as Pixelview Xcapture USB (card=11)
[   20.500196] cx231xx #0: cx231xx_dif_set_standard: setStandard to 
[   20.633024] cx25840 2-0044: cx23102 A/V decoder found @ 0x88 (cx231xx #0)
[   20.675001] cx25840 2-0044:  Firmware download size changed to 16 bytes 
max length
[   22.781357] cx25840 2-0044: loaded v4l-cx231xx-avcore-01.fw firmware 
(16382 bytes)
[   22.833033] cx231xx #0: cx231xx #0: v4l2 driver version 0.0.2
[   22.878820] cx231xx #0: cx231xx_dif_set_standard: setStandard to 
[   22.937947] cx231xx #0: video_mux : 0
[   22.950601] cx231xx #0: do_mode_ctrl_overrides : 0xb000
[   22.965287] cx231xx #0: do_mode_ctrl_overrides NTSC
[   22.987618] cx231xx #0: cx231xx #0/0: registered device video0 [v4l2]
[   23.013709] cx231xx #0: cx231xx #0/0: registered device vbi0
[   23.029487] cx231xx #0: V4L2 device registered as video0 and vbi0
[   23.040632] cx231xx #0: EndPoint Addr 0x84, Alternate settings: 5
[   23.045129] cx231xx #0: Alternate setting 0, max size= 512
[   23.049566] cx231xx #0: Alternate setting 1, max size= 184
[   23.060094] cx231xx #0: Alternate setting 2, max size= 728
[   23.070090] cx231xx #0: Alternate setting 3, max size= 2892
[   23.084715] cx231xx #0: Alternate setting 4, max size= 1800
[   23.095242] cx231xx #0: EndPoint Addr 0x85, Alternate settings: 2
[   23.105238] cx231xx #0: Alternate setting 0, max size= 512
[   23.115241] cx231xx #0: Alternate setting 1, max size= 512
[   23.126363] cx231xx #0: EndPoint Addr 0x86, Alternate settings: 2
[   23.136277] cx231xx #0: Alternate setting 0, max size= 512
[   23.146187] cx231xx #0: Alternate setting 1, max size= 576
[   23.157307] cx231xx #0: EndPoint Addr 0x81, Alternate settings: 6
[   23.167218] cx231xx #0: Alternate setting 0, max size= 512
[   23.177057] cx231xx #0: Alternate setting 1, max size= 64
[   23.187573] cx231xx #0: Alternate setting 2, max size= 128
[   23.197482] cx231xx #0: Alternate setting 3, max size= 316
[   23.201929] cx231xx #0: Alternate setting 4, max size= 712
[   23.211830] cx231xx #0: Alternate setting 5, max size= 1424
[   23.222779] usbcore: registered new interface driver cx231xx
[   23.272446] cx231xx #0: cx231xx-audio.c: probing for cx231xx non 
standard usbaudio
[   23.300792] cx231xx #0: EndPoint Addr 0x83, Alternate settings: 3
[   23.325532] cx231xx #0: Alternate setting 0, max size= 512
[   23.339459] cx231xx #0: Alternate setting 1, max size= 28
[   23.353201] cx231xx #0: Alternate setting 2, max size= 52
[   23.366723] cx231xx: Cx231xx Audio Extension initialized
[   53.145845] cx231xx #0:  setPowerMode::mode = 48, No Change req.
[   53.227701] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
[   53.251282] cx231xx #0: cx231xx_initialize_stream_xfer: set video 
registers
[   53.270197] cx231xx #0: cx231xx_start_stream():: ep_mask = 8
[  157.753811] cx231xx #0: UsbInterface::sendCommand, failed with status 
--71
[  157.779297] cx231xx #0: UsbInterface::sendCommand, failed with status 
--71
[  157.879895] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
[  157.907651] cx231xx #0: can't change interface 4 alt no. to 0 (err=-71)

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to