Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2008 23:46:57 +0100
From:      Nikola =?UTF-8?B?TGXEjWnEhw==?= <nikola.lecic@anthesphoria.net>
To:        "Paul B. Mahol" <onemda@gmail.com>
Cc:        FreeBSD-multimedia@FreeBSD.org
Subject:   Re: Creative Webcam and linux-gspca-kmod problem
Message-ID:  <20081116234657.674a98eb@anthesphoria.net>
In-Reply-To: <3a142e750811160320i723abcdcmf4ac89e2d75d4a3f@mail.gmail.com>
References:  <20081114232809.5acd80ee@anthesphoria.net> <3a142e750811151107m280d75f4h34b065572078df6b@mail.gmail.com> <20081116002510.64cede56@anthesphoria.net> <3a142e750811160320i723abcdcmf4ac89e2d75d4a3f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

On Sun, 16 Nov 2008 12:20:43 +0100
"Paul B. Mahol" <onemda@gmail.com> wrote:

[...]=20

> On 11/16/08, Nikola Lecic <nikola.lecic@anthesphoria.net> wrote:
> > a. this camera is USB1.1 compatible, e.g.
> >
> >   http://www.qbik.ch/usb/devices/showdev.php?id=3D4040
> >
> I dont know how it would be usefull if used only with USB1.1
> I belive that ehci can be completely disabled on STABLE.
> I know that it can be disabled if all usb stuff is removed from
> kernel configuration and than loaded as module, in that case you
> only kldload uhci and not ehci (possible also from /boot/loader.conf)

Will do it, but let's try the usb2 stuff first. So...

> > b. the camera is supported by gspca1 (and eo ipso by v4l-ver1 if I
> > understand this correctly), as listed in
> > gspcav1-20071220/gspca_core.c:
> >
> > {USB_DEVICE(0x041e, 0x4051)},   /* Creative Live!Cam Notebook Pro
> > (VF0250) */
> >
> > Does this still mean that the camera *needs* isochronous transfer?
> > If yes, is there an easy way to compile and test that usb2 stuff on
> > STABLE?
> >
>=20
> I dont know that, but something like isochronous transfer should be
> documented somehow with camera ....
> Are you sure that you bought right one (explained in link you already
> posted)?

Yes, FreeBSD identifies the camera as

  ldev0: vendor 0x041e product 0x4051, rev 1.10/1.00, addr 2

> If you are interested in USB4BSD look:
> http://www.selasky.org/hans_petter/usb4bsd/
>=20
> It supports 5/6/7 and 8.
> You need svn to get source for 7 STABLE.

Ok, I patched /usr/src, recompiled the kernel and now I see this in
dmesg:

- -------------------------------------------------------------------------
usb0: <UHCI (generic) USB controller> on uhci0
usb1: <UHCI (generic) USB controller> on uhci1
usb2: <UHCI (generic) USB controller> on uhci2
usb3: <UHCI (generic) USB controller> on uhci3
usb4: EHCI version 1.0
usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb0: 12Mbps Full Speed USB v1.0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usb0
usb1: 12Mbps Full Speed USB v1.0
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usb1
usb2: 12Mbps Full Speed USB v1.0
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usb2
usb3: 12Mbps Full Speed USB v1.0
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usb3
usb4: 480Mbps High Speed USB v2.0
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usb4
ugen0: <Creative Labs product 0x4051, rev 1.10/1.00, addr 2> on usb0
link_elf: symbol usb_detach_wait undefined
link_elf: symbol usb_detach_wait undefined
- -------------------------------------------------------------------------

... which is obviously better than before. However, now I can't compile
linux-gspca-kmod:

- -------------------------------------------------------------------------
=3D=3D=3D>  Extracting for linux-gspca-kmod-1.0.20
=3D> MD5 Checksum OK for gspcav1-20071220.tar.gz.
=3D> SHA256 Checksum OK for gspcav1-20071220.tar.gz.
=3D=3D=3D>  Patching for linux-gspca-kmod-1.0.20
=3D=3D=3D>  Applying FreeBSD patches for linux-gspca-kmod-1.0.20
=3D=3D=3D>   linux-gspca-kmod-1.0.20 depends on file: /usr/share/mk/bsd.lin=
ux_kmod.mk - found
=3D=3D=3D>  Configuring for linux-gspca-kmod-1.0.20
=3D=3D=3D>  Building for linux-gspca-kmod-1.0.20
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
:> opt_usb.h
rm -f .depend
mkdep -f .depend -a   -nostdinc -DUSB_DEBUG -DGSPCA_ENABLE_DEBUG -DGSPCA_EN=
ABLE_COMPRESSION -DCONFIG_USB_GSPCA_MODULE=3D1 -DVID_HARDWARE_GSPCA=3D0xFF =
-DGSPCA_VERSION=3D\"01.00.20\" -D__KERNEL__ -DDRIVER_NAME=3Dgspca -DDEV_NAM=
E=3D\"video\" -D_KERNEL -DKLD_MODULE -ISunplus -ISunplus-jpeg -ISonix -ICon=
exant -IVimicro -Idecoder -I/usr/local/share/linux-kmod-compat/linux_compat=
 -I. -I@ -I@/contrib/altq gspca_core.c /usr/ports/multimedia/linux-gspca-km=
od/work/gspcav1-20071220/decoder/gspcadecoder.c /usr/local/share/linux-kmod=
-compat/linux_compat/ldev_stub.c /usr/local/share/linux-kmod-compat/linux_c=
ompat/linux_compat.c
In file included from /usr/local/share/linux-kmod-compat/linux_compat/ldev_=
stub.h:69,
                 from /usr/local/share/linux-kmod-compat/linux_compat/ldev_=
stub.c:44:
@/dev/usb/usb_port.h:93:20: error: usb_if.h: No such file or directory
In file included from /usr/local/share/linux-kmod-compat/linux_compat/ldev_=
stub.h:69,
                 from /usr/local/share/linux-kmod-compat/linux_compat/linux=
_compat.c:44:
@/dev/usb/usb_port.h:93:20: error: usb_if.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/ports/multimedia/linux-gspca-kmod/work/gspcav1-20071220.
*** Error code 1

Stop in /usr/ports/multimedia/linux-gspca-kmod.
- -------------------------------------------------------------------------

Before I try something else, is this expected or not?

- --=20
Nikola Le=C4=8Di=C4=87 =3D =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0 =D0=9B=D0=
=B5=D1=87=D0=B8=D1=9B
fingerprint : FEF3 66AF C90E EDC3 D878  7CDC 956D F4AB A377 1C9B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iJwEAQEDAAYFAkkgouUACgkQ/MM/0rYIoZiR9QP+Lpc0E3pjNNfwb5Hkq0GL+2lj
PxOKw0jSeY6OSpPzhRxVHsNAytaAe8PGCmXoVV0QVv/hyy+fEFuyap2pBka02xKd
OfAU86mevnoh+dMN6qTiSmoRQWDgolIdf7dkY0e8PQS+yJ78uZ4/EtOKlZoDKu3S
mbnSuUll5SmlrPGdLGg=3D
=3DpAFH
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081116234657.674a98eb>