I think I know why my cam is misbehaving with cheese - it doesn't supply
capability information so gstreamer rejects it completely even with v4l1
compat. Also mplayer thinks its RGB32 VGA which is really the worst choice
(dark/green). I see when it compiles only main .c file gets made so
definitely something is wrong with Makefile completely. m5602_v4l2.c has
capability in it. I'm trying to get it to link correctly atm.
2009/6/13 Erik Andrén <[email protected]>
> Franck Bourdonnec is the main developer of that branch.
> Perhaps he can fill you in on the current plan and what is needed to
> be done.
>
> Best regards,
> Erik
>
> Jakub Novák wrote:
> > I had to add empty_packet member (bool) to gspca_dev struct in gspca.c in
> > kernel and basically rewrite the makefile.
> > Now I get this, I think rewriting the driver to use new API is beyond my
> > capability as I'm unfamiliar with it:
> >
> > make -C /lib/modules/2.6.28-gentoo-r5/build
> > SUBDIRS=/tmp/2/m560x-driver/m560x/branches/m5603c-gspca modules
> > make[1]: Entering directory `/usr/src/linux-2.6.28-gentoo-r5'
> > CC [M] /tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.o
> > Building modules, stage 2.
> > MODPOST 1 modules
> > WARNING: "m5603c_open_csr_file"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "mt9v111_start"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "mt9v111_select_exposure_table"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "mt9v111_set_color_correction"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "mt9v011_start"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "mt9v011_select_exposure_table"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "mt9v011_set_color_correction"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "ov7648_start"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "ov7648_select_exposure_table"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "ov7648_set_color_correction"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "m5603c_send_section"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "m5603c_config"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "m5603c_free_csr_file"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > WARNING: "m5603c_sensor_stop"
> > [/tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko]
> undefined!
> > CC
> /tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.mod.o
> > LD [M] /tmp/2/m560x-driver/m560x/branches/m5603c-gspca/m5603c_core.ko
> > make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo-r5'
> >
> >
> > I get the module but when I insert it:
> > insmod: error inserting 'm5603c_core.ko': -1 Unknown symbol in module
> >
> >
> >
> >
> >
> > On Sat, Jun 13, 2009 at 3:07 PM, Erik Andrén <[email protected]>
> wrote:
> >
> >> Ok,
> >> I'd recommend to focus on that branch as we're aiming on submitting
> >> it upstream at some point. I only have a m5602 based camera and
> >> haven't been particulary involved in the m5603 development.
> >>
> >> Regards,
> >> Erik
> >>
> >> Jakub Novák wrote:
> >>> Makefile is completely broken in that branch, it'll take a while before
> I
> >>> fix it..
> >>>
> >>> 2009/6/13 Erik Andrén <[email protected]>
> >>>
> >>>> Does the m5603-gspca branch work for you?
> >>>>
> >>>> Regards,
> >>>> Erik
> >>>>
> >>>> Jakub Novák wrote:
> >>>>> Alright, thank you Ilyes and Erik for your help, I report Genius
> >> slim321c
> >>>>> works with mt9v011 branch.
> >>>>>
> >>>>> This is what I had to modify to get it to compile on 2.6.28 kernel
> >> stock
> >>>>> v4l:
> >>>>>
> >>>>> --- m5603c.c.old 2009-06-13 14:51:41.303176451 +0200
> >>>>> +++ m5603c.c 2009-06-13 14:34:40.219499865 +0200
> >>>>> @@ -206,8 +206,6 @@
> >>>>>
> >>>>> strlcpy(cam->vdev->name, name, sizeof(cam->vdev->name));
> >>>>>
> >>>>> - cam->vdev->owner = THIS_MODULE;
> >>>>> - cam->vdev->type = VID_TYPE_CAPTURE;
> >>>>> cam->vdev->fops = &v4l_m5603c_fops;
> >>>>> cam->vdev->release = video_device_release;
> >>>>> cam->vdev->minor = -1;
> >>>>>
> >>>>>
> >>>>> 2009/6/13 Erik Andrén <[email protected]>
> >>>>>
> >>>>>> Hi,
> >>>>>> You need to use one of the m5603 branches in the svn tree in order
> >>>>>> to get a driver that supports the m5603 usb bridge.
> >>>>>>
> >>>>>> I'm not sure which one that is oppropriate for your camera.
> >>>>>> See:
> >>>>>>
> >>
> http://m560x-driver.svn.sourceforge.net/viewvc/m560x-driver/m560x/branches/
> >>>>>> Best regards,
> >>>>>> Erik
> >>>>>>
> >>>>>> Jakub Novák wrote:
> >>>>>>> Hello,
> >>>>>>> first of all, thanks a lot for all effort you do to help v4l work
> :)
> >>>>>>>
> >>>>>>> I have a Genius slim 321C webcam with lsusb (full output below):
> >>>> VID:PID
> >>>>>>> 0402:5603 ALi Corp. USB 2.0 Q-tec Webcam 300
> >>>>>>> the exact VID:PID I found in m560x-driver documentation.
> >>>>>>> Please note: contrary to documentation, 0402:5603 isn't bound in
> the
> >>>>>> driver,
> >>>>>>> only 0402:5602 is. I had to change it in m5602_core.c to make it
> >> work.
> >>>>>>> dmesg/syslog:
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.480022] usb 1-5: new high speed USB
> >>>>>> device
> >>>>>>> using ehci_hcd and address 17
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.597623] usb 1-5: configuration #1
> >>>> chosen
> >>>>>>> from 1 choice
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.597913] gspca: probing 0402:5603
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.597919] ALi m5602: Probing for a
> >> po1030
> >>>>>>> sensor
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.616861] ALi m5602: Probing for a
> >>>> mt9m111
> >>>>>>> sensor
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.625111] ALi m5602: Probing for a
> >> s5k4aa
> >>>>>>> sensor
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.637235] ALi m5602: Probing for an
> >>>> ov9650
> >>>>>>> sensor
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.644859] ALi m5602: Probing for a
> >> s5k83a
> >>>>>>> sensor
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.656109] ALi m5602: Detected a
> s5k83a
> >>>>>> sensor
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.733155] gspca: probe ok
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.733230] usb 1-5: New USB device
> >> found,
> >>>>>>> idVendor=0402, idProduct=5603
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.733234] usb 1-5: New USB device
> >>>> strings:
> >>>>>>> Mfr=0, Product=1, SerialNumber=0
> >>>>>>> Jun 13 13:54:07 [kernel] [ 7950.733237] usb 1-5: Product: ALI
> M5603C
> >>>>>>>
> >>>>>>> When I start cheese, it hangs while polling some resource. With
> >> mplayer
> >>>> I
> >>>>>>> get at least a green screen:
> >> LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so
> >>>>>>> mplayer -fps 30 -tv
> >> driver=v4l:width=640:height=480:device=/dev/video0
> >>>>>> tv://
> >>>>>>> and I keep getting this from mplayer:
> >>>>>>> libv4l2: error dequeuing buf: Input/output error
> >>>>>>> with v4l2 driver:
> >>>>>>> v4l2: select timeout ??% ??,?% 0 0
> >>>>>>>
> >>>>>>> I forced brige/sensor dump, beware of ~500K text file:
> >>>>>>> http://prostor.hopto.org/~jc/webcam-log<http://prostor.hopto.org/%7Ejc/webcam-log>
> <http://prostor.hopto.org/%7Ejc/webcam-log>
> >> <http://prostor.hopto.org/%7Ejc/webcam-log>
> >>>> <http://prostor.hopto.org/%7Ejc/webcam-log>
> >>>>>>> I tried forcing individual sensors each time replugging the cam,
> >> still
> >>>>>>> mplayer green screen/cheese hangs.
> >>>>>>>
> >>>>>>> Any answer much appreciated. I'm willing to help, I can apply
> >>>>>>> patches/recompile without problems.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>
> ------------------------------------------------------------------------
> >>
> ------------------------------------------------------------------------------
> >>>>>>> Crystal Reports - New Free Runtime and 30 Day Trial
> >>>>>>> Check out the new simplified licensing option that enables
> unlimited
> >>>>>>> royalty-free distribution of the report engine for externally
> facing
> >>>>>>> server and web deployment.
> >>>>>>> http://p.sf.net/sfu/businessobjects
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>
> ------------------------------------------------------------------------
> >>>>>>> _______________________________________________
> >>>>>>> M560x-driver-devel mailing list
> >>>>>>> [email protected]
> >>>>>>> https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel
> >>>>>
> >> ------------------------------------------------------------------------
> >>>>>
> >>
> ------------------------------------------------------------------------------
> >>>>> Crystal Reports - New Free Runtime and 30 Day Trial
> >>>>> Check out the new simplified licensing option that enables unlimited
> >>>>> royalty-free distribution of the report engine for externally facing
> >>>>> server and web deployment.
> >>>>> http://p.sf.net/sfu/businessobjects
> >>>>>
> >>>>>
> >>>>>
> >> ------------------------------------------------------------------------
> >>>>> _______________________________________________
> >>>>> M560x-driver-devel mailing list
> >>>>> [email protected]
> >>>>> https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel
> >
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel