Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-usb Digest, Vol 271, Issue 1

1 view
Skip to first unread message

freebsd-u...@freebsd.org

unread,
Jan 11, 2010, 12:10:11 PM1/11/10
to freeb...@freebsd.org
Send freebsd-usb mailing list submissions to
freeb...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
or, via email, send a message with subject or body 'help' to
freebsd-u...@freebsd.org

You can reach the person managing the list at
freebsd-...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-usb digest..."


Today's Topics:

1. [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
2. Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release (Wiktor Niesiobedzki)
3. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Brandon Gooch)
4. Re: SANE vs USB scanner on 8.0 (Torfinn Ingolfsen)
5. Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release (Hans Petter Selasky)
6. Re: SANE vs USB scanner on 8.0 (Hans Petter Selasky)
7. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
8. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
9. Re: SANE vs USB scanner on 8.0 (Warren Block)
10. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
11. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Diego Ochoa Tocachi)
12. Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release (Wiktor Niesiobedzki)
13. Re: Calling for testers if_run rt3572 support (PseudoCylon)
14. Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release (Hans Petter Selasky)
15. Current problem reports assigned to freeb...@FreeBSD.org
(FreeBSD bugmaster)
16. usb/142713: Kernel Panik when connecting an IPhone 3GS.
(Gerhard Schmidt)
17. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Alexander Logvinov)
18. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
19. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
20. usb/142719: [urtw] [usb8] AirLive WL-1600USB (RTL8187L
chipset) fails to work (Pawel Pekala)


----------------------------------------------------------------------

Message: 1
Date: Sun, 10 Jan 2010 14:37:37 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID: <201001101437....@c2i.net>
Content-Type: Text/Plain; charset="us-ascii"

Hi,

During the last couple of days I've spent some time to finish my webcam
daemon. My webcam daemon is basically an application which consists of
userspace Video4Linux USB webcam drivers and some uLinux glue code which links
with libc, pthreads and libusb. The webcamd talks to /dev/video_daemonX which
is provided by the video4bsd kernel module. There is full support for
mmap/read/write/open/close. poll is not supported.

Basic operation and idea:

/dev/video_daemonX is the interface for the webcamd. /dev/videoX is the
interface for the V4L application. The video4bsd transports all data between
these two devices. In the case the V4L application is using mmap, no data is
copied due to shared kernel memory buffer!

Licensing issues:

Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB
drivers which are GPL licensed. Some files inside the webcamd remains BSD
licensed which allows for building similar BSD licensed daemons.

The rest of the code is BSD licensed.

Source code:

1) FreeBSD 8-stable

2) Apply the patch below and re-install libusb in /usr/src/lib/libusb:

http://p4web.freebsd.org/chv.cgi?CH=172876

http://perforce.freebsd.org/chv.cgi?CH=172876

3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be checked
out in the same folder due to dependencies)

svn --username anonsvn --password anonsvn \
checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd

make all install
kldload video4bsd

svn --username anonsvn --password anonsvn \
checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux

make fetch
make patch
make all
make install

# this will attach to the first detected webcam:
./webcamd

# this will try to attach to the given USB unit, interface and V4B unit.
./webcamd -d ugen4.1 -i 0 -v 0

# this will display webcam contents from /dev/video0 by default.
./pwcview/pwcview

Feedback and bug reports are welcome.

Yes, I am working on getting this into ports!

Known issues:

1) If you detach the USB webcam you need to manually restart the webcamd.

--HPS

Support: I will be available at #bsdusb on efnet during the day.


------------------------------

Message: 2
Date: Sun, 10 Jan 2010 16:40:03 GMT
From: Wiktor Niesiobedzki <b...@w.evip.pl>
Subject: Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release
To: freeb...@FreeBSD.org
Message-ID: <201001101640....@freefall.freebsd.org>

The following reply was made to PR kern/141011; it has been noted by GNATS.

From: Wiktor Niesiobedzki <b...@w.evip.pl>
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: bug-followup <bug-fo...@freebsd.org>
Subject: Re: kern/141011: [usb] Encrypted root, geli password at boot; enter
key never release
Date: Sun, 10 Jan 2010 17:34:42 +0100

2010/1/10 Hans Petter Selasky <hsel...@c2i.net>:
>
> Try to comment out:
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/* read and discar=
d the input, no one is waiting for it */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do {
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0c =3D ukbd_read_char(&sc->sc_kbd, 0);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0} while (c !=3D NO=
KEY);
>
> In: ukbd_interrupt() in ukbd.c.
>

Hello Hans,

I've tried to comment out this section in your version of ukbd.c, but
to no extent. Still some events get discarded somehow. Shall I enable
some usb debug-flags to help getting to the core of the problem?

Cheers,

Wiktor Niesiobedzki


------------------------------

Message: 3
Date: Sun, 10 Jan 2010 17:40:17 +0000
From: Brandon Gooch <jamesbra...@gmail.com>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID:
<179b97fb1001100940o74d...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Jan 10, 2010 at 1:37 PM, Hans Petter Selasky <hsel...@c2i.net> wrote:
> Hi,
>
> During the last couple of days I've spent some time to finish my webcam
> daemon. My webcam daemon is basically an application which consists of
> userspace Video4Linux USB webcam drivers and some uLinux glue code which links
> with libc, pthreads and libusb. The webcamd talks to /dev/video_daemonX which
> is provided by the video4bsd kernel module. There is full support for
> mmap/read/write/open/close. poll is not supported.
>
> Basic operation and idea:
>
> /dev/video_daemonX is the interface for the webcamd. /dev/videoX is the
> interface for the V4L application. The video4bsd transports all data between
> these two devices. In the case the V4L application is using mmap, no data is
> copied due to shared kernel memory buffer!
>
> Licensing issues:
>
> Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB
> drivers which are GPL licensed. Some files inside the webcamd remains BSD
> licensed which allows for building similar BSD licensed daemons.
>
> The rest of the code is BSD licensed.
>
> Source code:
>
> 1) FreeBSD 8-stable
>
> 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb:
>
> http://p4web.freebsd.org/chv.cgi?CH=172876
>
> http://perforce.freebsd.org/chv.cgi?CH=172876
>
> 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be checked
> out in the same folder due to dependencies)
>
> svn --username anonsvn --password anonsvn \
> � � �checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd
>
> make all install
> kldload video4bsd
>
> svn --username anonsvn --password anonsvn \
> � � �checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux
>
> make fetch
> make patch
> make all
> make install
>
> # this will attach to the first detected webcam:
> ./webcamd
>
> # this will try to attach to the given USB unit, interface and V4B unit.
> ./webcamd -d ugen4.1 -i 0 -v 0
>
> # this will display webcam contents from /dev/video0 by default.
> ./pwcview/pwcview
>
> Feedback and bug reports are welcome.
>
> Yes, I am working on getting this into ports!
>
> Known issues:
>
> 1) If you detach the USB webcam you need to manually restart the webcamd.
>
> --HPS
>
> Support: I will be available at #bsdusb on efnet during the day.

Seems to work for just a second or two (I see my ugly mug on-screen),
and then this:

# ./pwcview/pwcview
Webcam set to: 320x240 (sif) at 5 fps
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 8 more bits
libv4l2: error converting / decoding frame data: v4l-convert: error
parsing JPEG header: Not a JPG file ?

>From another xterm:

# ./webcamd -d ugen6.2 -v 0 -i 0
KrefGet: 0x800c90304 = 1
KrefGet: 0x800c90304 = 2
KrefGet: 0x800c9083c = 1
KrefGet: 0x800c9092c = 1
Added device 0x800ca4d08
KrefGet: 0x800ca4d0c = 1
KrefGet: 0x800ca4d0c = 2
size = 622592
alloc_nr = 0
KrefPut: 0x800ca4d0c = 2

>From dmesg:

ugen6.2: <vendor 0x17ef> at usbus6


------------------------------

Message: 4
Date: Sun, 10 Jan 2010 18:42:52 +0100
From: Torfinn Ingolfsen <torfinn....@broadpark.no>
Subject: Re: SANE vs USB scanner on 8.0
To: freeb...@FreeBSD.org
Message-ID: <20100110184252.a2efd...@broadpark.no>
Content-Type: text/plain; charset=US-ASCII

Hi,

Did anything more come out of this discussion?
I recently upgraded my main workstation to FreeBSD 8.0-stable:
tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Jan 6 21:21:40 CET 2010 ro...@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64

Attached to the machine is a Agfa SnapScan 1212U scanner:
root@kg-v2# usbconfig -u 2
ugen2.1: <OHCI root HUB nVidia> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen2.2: <Snapscan1212u_2 AGFA> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

root@kg-v2# sane-find-scanner -q
found USB scanner (vendor=0x03f0 [HP], product=0xc202 [Photosmart 8200 series]) at libusb:/dev/usb:/dev/ugen1.2
found USB scanner (vendor=0x06bd [AGFA], product=0x2061 [ Snapscan1212u_2]) at libusb:/dev/usb:/dev/ugen2.2

(I don't know why sane-find-scanner thiunks that my HP printer have a scanner, but that doesn't matter)

root@kg-v2# SANE_DEBUG_SNAPSCAN=255 scanimage -v -v -L
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[snapscan] add_usb_device(libusb:/dev/usb:/dev/ugen2.2)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:/dev/usb:/dev/ugen2.2)
[snapscan] snapscani_mutex_open: could not parse device string: No such file or directory
[snapscan] snapscani_usb_open: Can't get semaphore
[snapscan] add_usb_device: error opening device libusb:/dev/usb:/dev/ugen2.2: Invalid argument
[snapscan] sane_snapscan_get_devices (0x7fffffffe220, 0)

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
Calling sane_exit
[snapscan] sane_snapscan_exit
scanimage: finished

root@kg-v2# portversion -v | grep ^sane
sane-backends-1.0.20_4 = up-to-date with port
sane-frontends-1.0.14_5 = up-to-date with port

I did Google a bit, but that didn't turn up anything useful.
--
Regards,
Torfinn Ingolfsen

------------------------------

Message: 5
Date: Sun, 10 Jan 2010 19:23:16 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release
To: freeb...@freebsd.org, Wiktor Niesiobedzki <b...@w.evip.pl>
Message-ID: <201001101923....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-15"

On Sunday 10 January 2010 17:40:03 Wiktor Niesiobedzki wrote:
> The following reply was made to PR kern/141011; it has been noted by GNATS.

>
> Hello Hans,
>
> I've tried to comment out this section in your version of ukbd.c, but
> to no extent. Still some events get discarded somehow. Shall I enable
> some usb debug-flags to help getting to the core of the problem?

Hi,

The information we need is inside ukbd.c . Try to add printfs in code enabling
and disabling the keyboard. Especially in the USB keyboard read character
function, and try to figure out where the missing characters are going.

--HPS


------------------------------

Message: 6
Date: Sun, 10 Jan 2010 19:24:56 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: SANE vs USB scanner on 8.0
To: freeb...@freebsd.org
Message-ID: <201001101924....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

Hi,

Try to find the source code that is printing those errors.

--HPS

On Sunday 10 January 2010 18:42:52 Torfinn Ingolfsen wrote:
> Hi,
>
> Did anything more come out of this discussion?
> I recently upgraded my main workstation to FreeBSD 8.0-stable:
> tingo@kg-v2$ uname -a
> FreeBSD kg-v2.kg4.no 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Jan 6 21:21:40
> CET 2010 ro...@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
>
> Attached to the machine is a Agfa SnapScan 1212U scanner:
> root@kg-v2# usbconfig -u 2
> ugen2.1: <OHCI root HUB nVidia> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=ON ugen2.2: <Snapscan1212u_2 AGFA> at usbus2, cfg=0 md=HOST spd=FULL
> (12Mbps) pwr=ON
>
> root@kg-v2# sane-find-scanner -q
> found USB scanner (vendor=0x03f0 [HP], product=0xc202 [Photosmart 8200
> series]) at libusb:/dev/usb:/dev/ugen1.2 found USB scanner (vendor=0x06bd
> [AGFA], product=0x2061 [ Snapscan1212u_2]) at libusb:/dev/usb:/dev/ugen2.2
>
> (I don't know why sane-find-scanner thiunks that my HP printer have a
> scanner, but that doesn't matter)
>
> root@kg-v2# SANE_DEBUG_SNAPSCAN=255 scanimage -v -v -L
> [sanei_debug] Setting debug level of snapscan to 255.
> [snapscan] sane_snapscan_init
> [snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
> [snapscan] add_usb_device(libusb:/dev/usb:/dev/ugen2.2)
> [snapscan] add_usb_device: Detected (kind of) an USB device
> [snapscan] snapscani_usb_open(libusb:/dev/usb:/dev/ugen2.2)
> [snapscan] snapscani_mutex_open: could not parse device string: No such
> file or directory [snapscan] snapscani_usb_open: Can't get semaphore
> [snapscan] add_usb_device: error opening device
> libusb:/dev/usb:/dev/ugen2.2: Invalid argument [snapscan]
> sane_snapscan_get_devices (0x7fffffffe220, 0)
>
> No scanners were identified. If you were expecting something different,
> check that the scanner is plugged in, turned on and detected by the
> sane-find-scanner tool (if appropriate). Please read the documentation
> which came with this software (README, FAQ, manpages).
> Calling sane_exit
> [snapscan] sane_snapscan_exit
> scanimage: finished
>
> root@kg-v2# portversion -v | grep ^sane
> sane-backends-1.0.20_4 = up-to-date with port
> sane-frontends-1.0.14_5 = up-to-date with port
>
> I did Google a bit, but that didn't turn up anything useful.
>


------------------------------

Message: 7
Date: Sun, 10 Jan 2010 20:31:37 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: freebsd...@freebsd.org
Cc: Brandon Gooch <jamesbra...@gmail.com>,
freebsd-m...@freebsd.org, freeb...@freebsd.org
Message-ID: <201001102031....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

On Sunday 10 January 2010 18:40:17 Brandon Gooch wrote:
> On Sun, Jan 10, 2010 at 1:37 PM, Hans Petter Selasky <hsel...@c2i.net>
wrote:
> > Hi,
> >
> > During the last couple of days I've spent some time to finish my webcam
> > daemon. My webcam daemon is basically an application which consists of
> > userspace Video4Linux USB webcam drivers and some uLinux glue code which
> > links with libc, pthreads and libusb. The webcamd talks to
> > /dev/video_daemonX which is provided by the video4bsd kernel module.
> > There is full support for mmap/read/write/open/close. poll is not
> > supported.
> >
> > Basic operation and idea:
> >
> > /dev/video_daemonX is the interface for the webcamd. /dev/videoX is the
> > interface for the V4L application. The video4bsd transports all data
> > between these two devices. In the case the V4L application is using mmap,
> > no data is copied due to shared kernel memory buffer!
> >
> > Licensing issues:
> >
> > Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB
> > drivers which are GPL licensed. Some files inside the webcamd remains BSD
> > licensed which allows for building similar BSD licensed daemons.
> >
> > The rest of the code is BSD licensed.
> >
> > Source code:
> >
> > 1) FreeBSD 8-stable
> >
> > 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb:
> >
> > http://p4web.freebsd.org/chv.cgi?CH=172876
> >
> > http://perforce.freebsd.org/chv.cgi?CH=172876
> >
> > 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be
> > checked out in the same folder due to dependencies)
> >
> > svn --username anonsvn --password anonsvn \
> > checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd
> >
> > make all install
> > kldload video4bsd
> >
> > svn --username anonsvn --password anonsvn \
> > checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux
> >
> > make fetch
> > make patch
> > make all
> > make install
> >
> > # this will attach to the first detected webcam:
> > ./webcamd
> >
> > # this will try to attach to the given USB unit, interface and V4B unit.
> > ./webcamd -d ugen4.1 -i 0 -v 0
> >
> > # this will display webcam contents from /dev/video0 by default.
> > ./pwcview/pwcview
> >
> > Feedback and bug reports are welcome.
> >
> > Yes, I am working on getting this into ports!
> >
> > Known issues:
> >
> > 1) If you detach the USB webcam you need to manually restart the webcamd.
> >
> > --HPS
> >
> > Support: I will be available at #bsdusb on efnet during the day.
>
> Seems to work for just a second or two (I see my ugly mug on-screen),
> and then this:
>
> # ./pwcview/pwcview
> Webcam set to: 320x240 (sif) at 5 fps
> libv4lconvert: Error decompressing JPEG: fill_nbits error: need 8 more bits
> libv4l2: error converting / decoding frame data: v4l-convert: error
> parsing JPEG header: Not a JPG file ?

Hi,

Maybe this is related to a bug in the recent JPEG library. Try googling.

You can also try another mode:

webcamd -s vga

Or other commands. See webcamd -h .

--HPS

------------------------------

Message: 8
Date: Sun, 10 Jan 2010 20:34:44 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: freebsd-m...@freebsd.org
Cc: Brandon Gooch <jamesbra...@gmail.com>,
freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <201001102034....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

On Sunday 10 January 2010 20:31:37 Hans Petter Selasky wrote:
>
> Hi,
>
> Maybe this is related to a bug in the recent JPEG library. Try googling.
>
> You can also try another mode:
>
> webcamd -s vga
>
> Or other commands. See webcamd -h .

s/webcamd/pwcview/

--HPS


------------------------------

Message: 9
Date: Sun, 10 Jan 2010 12:44:10 -0700 (MST)
From: Warren Block <wbl...@wonkity.com>
Subject: Re: SANE vs USB scanner on 8.0
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freeb...@freebsd.org
Message-ID: <alpine.BSF.2.00.1...@wonkity.com>
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII

On Sun, 10 Jan 2010, Hans Petter Selasky wrote:
> On Sunday 10 January 2010 18:42:52 Torfinn Ingolfsen wrote:

>> root@kg-v2# SANE_DEBUG_SNAPSCAN=255 scanimage -v -v -L
>> [sanei_debug] Setting debug level of snapscan to 255.
>> [snapscan] sane_snapscan_init
>> [snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
>> [snapscan] add_usb_device(libusb:/dev/usb:/dev/ugen2.2)
>> [snapscan] add_usb_device: Detected (kind of) an USB device
>> [snapscan] snapscani_usb_open(libusb:/dev/usb:/dev/ugen2.2)
>> [snapscan] snapscani_mutex_open: could not parse device string: No such
>> file or directory [snapscan] snapscani_usb_open: Can't get semaphore
>> [snapscan] add_usb_device: error opening device
>> libusb:/dev/usb:/dev/ugen2.2: Invalid argument [snapscan]
>> sane_snapscan_get_devices (0x7fffffffe220, 0)
>
> Try to find the source code that is printing those errors.

It's in graphics/sane-backends/work/sane-backends-1.0.20/backend/ in
snapscan-mutex.c, line 135.

Looks to me like it wants "libusb:2:2" rather than
"libusb:/dev/usb:/dev/ugen2.2". Maybe an old format.

-Warren Block * Rapid City, South Dakota USA


------------------------------

Message: 10
Date: Sun, 10 Jan 2010 22:41:16 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Diego Ochoa Tocachi <diego....@gmail.com>
Cc: freebsd-m...@freebsd.org, Brandon Gooch
<jamesbra...@gmail.com>, freeb...@freebsd.org
Message-ID: <201001102241....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-15"

On Sunday 10 January 2010 22:31:50 Diego Ochoa Tocachi wrote:
> 2010/1/10 Hans Petter Selasky <hsel...@c2i.net>

freebsd-current not CC'ed.

> Hi,
>
> I was trying this driver with:
>
> my webcam:
> ugen7.2: <Lenovo EasyCamera vendor 0x046d> at usbus7, cfg=0 md=HOST
> spd=HIGH (480Mbps) pwr=ON
>
> my system:
> FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5
> 21:11:58 UTC 2010
> ro...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
> amd64
>
> When turn on the webcam:
>
> Jan 10 16:13:25 starkiller root: Unknown USB device: vendor 0x046d product
> 0x09b6 bus uhub7
> Jan 10 16:13:25 starkiller kernel: ugen7.2: <vendor 0x046d> at usbus7
>
> when execute ./webcamd -d ugen7.2 -i 0 -v 0
> Jan 10 16:13:29 starkiller root: Unknown USB device: vendor 0x046d product
> 0x09b6 bus uhub7
>
> Issues:
>
> To access /dev/video0 with a no-root user in operator group, I changed
> permisions: chmod 0660 /dev/video0 manually
>
> I can access using pwcview but I cant access from cheese, Do I something to
> get this?
>
>
> Thanks for this software, good work!!!
>

Hi,

You're welcome!

Some V4L drivers only support mmap and not read and write. To get that working
your application must replace open/read/write/close calls by libv4l2 or
libv4l1_open/read/write/close calls, and link with libv4l2 or libv4l1.

--HPS


------------------------------

Message: 11
Date: Sun, 10 Jan 2010 16:31:50 -0500
From: Diego Ochoa Tocachi <diego....@gmail.com>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd-m...@freebsd.org, Brandon Gooch
<jamesbra...@gmail.com>, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID:
<6951cb851001101331k20b...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

2010/1/10 Hans Petter Selasky <hsel...@c2i.net>

> On Sunday 10 January 2010 20:31:37 Hans Petter Selasky wrote:
> >
> > Hi,
> >
> > Maybe this is related to a bug in the recent JPEG library. Try googling.
> >
> > You can also try another mode:
> >
> > webcamd -s vga
> >
> > Or other commands. See webcamd -h .
>
> s/webcamd/pwcview/
>
> --HPS
> _______________________________________________
> freebsd-m...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "
> freebsd-multime...@freebsd.org"
>


Hi,

I was trying this driver with:

my webcam:
ugen7.2: <Lenovo EasyCamera vendor 0x046d> at usbus7, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON

my system:
FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5
21:11:58 UTC 2010
ro...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
amd64

When turn on the webcam:

Jan 10 16:13:25 starkiller root: Unknown USB device: vendor 0x046d product
0x09b6 bus uhub7
Jan 10 16:13:25 starkiller kernel: ugen7.2: <vendor 0x046d> at usbus7

when execute ./webcamd -d ugen7.2 -i 0 -v 0
Jan 10 16:13:29 starkiller root: Unknown USB device: vendor 0x046d product
0x09b6 bus uhub7

Issues:

To access /dev/video0 with a no-root user in operator group, I changed
permisions: chmod 0660 /dev/video0 manually

I can access using pwcview but I cant access from cheese, Do I something to
get this?


Thanks for this software, good work!!!


--
Diego Ochoa - darkbalder
Luis Pasteur 2-30 y Copernico
Telf: +593 7 4082144
Porta: 090085391
Cuenca - Ecuador


------------------------------

Message: 12
Date: Mon, 11 Jan 2010 00:27:50 +0100
From: Wiktor Niesiobedzki <b...@w.evip.pl>
Subject: Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd-usb <freeb...@freebsd.org>
Message-ID:
<2ae8edf31001101527w91...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

2010/1/10 Hans Petter Selasky <hsel...@c2i.net>:
> On Sunday 10 January 2010 17:40:03 Wiktor Niesiobedzki wrote:
>> The following reply was made to PR kern/141011; it has been noted by GNATS.
>
>>
>>  Hello Hans,
>>
>>  I've tried to comment out this section in your version of ukbd.c, but
>>  to no extent. Still some events get discarded somehow. Shall I enable
>>  some usb debug-flags to help getting to the core of the problem?
>
> Hi,
>
> The information we need is inside ukbd.c . Try to add printfs in code enabling
> and disabling the keyboard. Especially in the USB keyboard read character
> function, and try to figure out where the missing characters are going.


Hi,

Nothing new in enabling and disabling the keyboard. The only
intresting thing is, that although I have only one keyboard, the
ukbd_enable is called twice.

What I found somehow helping, is some additional printfs in ukbd_read_char.
Especially in beginning part:
printf("enter ukbd_read_char\n");
if (!KBD_IS_ACTIVE(kbd)) {
printf("kbd is not active - exiting\n");
return (NOKEY);
}

if (sc->sc_flags & UKBD_FLAG_POLLING) {
if (!mtx_owned(&Giant)) {
/* XXX cludge */
printf("ukbd_read_char: UKBD_FLAG_POOLING is
set and giant is not owned - recursing and locking giant\n");
int retval;
mtx_lock(&Giant);
retval = ukbd_read_char(kbd, wait);
mtx_unlock(&Giant);
return (retval);
}
} else {
/* XXX the keyboard layer requires Giant */
if (!mtx_owned(&Giant))
printf("ukbd_read_char: UKBD_FLAG_POOLING is
not set and Giant is not owned -> DISCARDING KEY!\n");
return (NOKEY);
}


Then i see this message:
"ukbd_read_char: UKBD_FLAG_POOLING is set and giant is not owned -
recursing and locking giant"

Full message is (for entering one character is something like that):
ukbd_read_char: UKBD_FLAG_POOLING is set and giant is not owned -
recursing and locking giant
enter ukbd_read_char
a (echo from GELI)
enter ukbd_read_char
ukbd_read_char: UKBD_FLAG_POOLING is set and giant is not owned -
recursing and locking giant
enter ukbd_read_char
enter ukbd_read_char

And supriselingly - no characters were lost, when I was typing my passphareses.

As far as I know (and I may know wrong - please correct me here) -
there is some relation between Giant and printfs (something like -
when you printf on console, you have to have a giant) but this is just
my wild guessing (maybe from java - where System.out.println is
synchronized method). Is it possible, that my printf's affected how
Giant is handled within ukbd and thus - I don't see misbehaviour of
ukbd now?

Or was it just my luck now? (I hardly believe that - I usulally got ~8
characters lost for a boot sequence and now noone).


Any hints for now?


Cheers,

Wiktor Niesiobedzki


------------------------------

Message: 13
Date: Sun, 10 Jan 2010 16:56:52 -0800 (PST)
From: PseudoCylon <moonlig...@yahoo.ca>
Subject: Re: Calling for testers if_run rt3572 support
To: Hans Petter Selasky <hsel...@c2i.net>,
freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <275073....@web51804.mail.re2.yahoo.com>
Content-Type: text/plain; charset=us-ascii

----- Original Message ----

> From: Hans Petter Selasky <hsel...@c2i.net>
> To: freebsd...@freebsd.org; freeb...@freebsd.org
> Cc: PseudoCylon <moonlig...@yahoo.ca>
> Sent: Sun, January 10, 2010 4:52:24 AM
> Subject: Re: Calling for testers if_run rt3572 support
>
> On Sunday 10 January 2010 01:04:34 PseudoCylon wrote:
> > Akinori
>
> Hi,
>
> Can you test and verify the following changes to your if_run driver?
>
> http://p4web.freebsd.org/chv.cgi?CH=172914
>
> http://perforce.freebsd.org/chv.cgi?CH=172914
>
> And provide patches if something was broken.
>
I have just loaded the driver, and unfortunately something is broken (the device stops responding). I'll send you patches as soon as I find out what's wrong.

> Please try to resolve the remaining XXX marks.
>
I will. And I can maintain my driver. Looking after one driver shouldn't (hope won't) be too hard.

> --HPS


Thank you for adding my driver to P4.

Akinori

__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/


------------------------------

Message: 14
Date: Mon, 11 Jan 2010 09:06:53 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: kern/141011: [usb] Encrypted root, geli password at boot;
enter key never release
To: Wiktor Niesiobedzki <b...@w.evip.pl>
Cc: freebsd-usb <freeb...@freebsd.org>
Message-ID: <201001110906....@c2i.net>
Content-Type: Text/Plain; charset="utf-8"

On Monday 11 January 2010 00:27:50 Wiktor Niesiobedzki wrote:
> 2010/1/10 Hans Petter Selasky <hsel...@c2i.net>:
> > On Sunday 10 January 2010 17:40:03 Wiktor Niesiobedzki wrote:
> >> The following reply was made to PR kern/141011; it has been noted by
> >> GNATS.
> >>
> >>
> >> Hello Hans,
> >>
> >> I've tried to comment out this section in your version of ukbd.c, but
> >> to no extent. Still some events get discarded somehow. Shall I enable
> >> some usb debug-flags to help getting to the core of the problem?
> >
> > Hi,
> >
> > The information we need is inside ukbd.c . Try to add printfs in code
> > enabling and disabling the keyboard. Especially in the USB keyboard read
> > character function, and try to figure out where the missing characters
> > are going.
>
> Hi,
>
> Nothing new in enabling and disabling the keyboard. The only
> intresting thing is, that although I have only one keyboard, the
> ukbd_enable is called twice.
>
> What I found somehow helping, is some additional printfs in ukbd_read_char.
> Especially in beginning part:
> printf("enter ukbd_read_char\n");
> if (!KBD_IS_ACTIVE(kbd)) {
> printf("kbd is not active - exiting\n");
> return (NOKEY);
> }
>
> if (sc->sc_flags & UKBD_FLAG_POLLING) {
> if (!mtx_owned(&Giant)) {
> /* XXX cludge */
> printf("ukbd_read_char: UKBD_FLAG_POOLING is
> set and giant is not owned - recursing and locking giant\n");
> int retval;
> mtx_lock(&Giant);
> retval = ukbd_read_char(kbd, wait);
> mtx_unlock(&Giant);
> return (retval);
> }
> } else {
> /* XXX the keyboard layer requires Giant */
> if (!mtx_owned(&Giant))
> printf("ukbd_read_char: UKBD_FLAG_POOLING is
> not set and Giant is not owned -> DISCARDING KEY!\n");
> return (NOKEY);
> }
>
>
> Then i see this message:
> "ukbd_read_char: UKBD_FLAG_POOLING is set and giant is not owned -
> recursing and locking giant"
>
> Full message is (for entering one character is something like that):
> ukbd_read_char: UKBD_FLAG_POOLING is set and giant is not owned -
> recursing and locking giant
> enter ukbd_read_char
> a (echo from GELI)
> enter ukbd_read_char
> ukbd_read_char: UKBD_FLAG_POOLING is set and giant is not owned -
> recursing and locking giant
> enter ukbd_read_char
> enter ukbd_read_char
>
> And supriselingly - no characters were lost, when I was typing my
> passphareses.
>
> As far as I know (and I may know wrong - please correct me here) -
> there is some relation between Giant and printfs (something like -
> when you printf on console, you have to have a giant) but this is just
> my wild guessing (maybe from java - where System.out.println is
> synchronized method). Is it possible, that my printf's affected how
> Giant is handled within ukbd and thus - I don't see misbehaviour of
> ukbd now?
>
> Or was it just my luck now? (I hardly believe that - I usulally got ~8
> characters lost for a boot sequence and now noone).
>
>
> Any hints for now?

It might be a timing issue, that we need to extend the polling loop after that
the first key has been pressed, so that the key release is also recorded.

--HPS


------------------------------

Message: 15
Date: Mon, 11 Jan 2010 11:07:10 GMT
From: FreeBSD bugmaster <bugm...@FreeBSD.org>
Subject: Current problem reports assigned to freeb...@FreeBSD.org
To: freeb...@FreeBSD.org
Message-ID: <201001111107....@freefall.freebsd.org>

Note: to view an individual PR, use:
http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker Resp. Description
--------------------------------------------------------------------------------
o usb/142427 usb EDIMAX EW7318USG should be added to usbdevs
o usb/142387 usb Netgear WPN111 not recognised by uath(4) after uathloa
o usb/142276 usb Cache Synchronization Error with Olympus FE210 Camera
o usb/142229 usb [ums] [hang] connecting a USB mouse to a Dell PE750 lo
o usb/141936 usb [usbdevs] [patch] add support for Advanced W-ZERO3[ES]
o usb/141918 usb ehci_interrupt: unrecoverable error, controller halted
o usb/141680 usb [uath] Netgear WG111T not working with uath driver
o usb/141664 usb [pcm] Logitech USB microphone failure [regression]
o usb/141474 usb [boot] FreeBSD 8.0 can not install from USB CDROM driv
o usb/141467 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter
o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM
o usb/141313 usb [usb8] nvidia USB 2.0 controller - stops copying on US
o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER
o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key
o usb/140928 usb [u3g] [usb8] [patch] ZTE CDMA2000 1X EV-DO (MG478/AC87
o usb/140920 usb [install] USB based install fails on 8.0-RELEASE [regr
o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b
f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe
o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0-
a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl
f usb/140714 usb [hang] [usb8] system freeze when disconect my flash us
o kern/140614 usb [uplcom] [patch] adding support for Radio Shack Gigwar
o usb/140590 usb [bluetooth] [usb8] ng_ubt(4) ng_l2cap_process_cmd_rej
o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d
o usb/140259 usb [libusb] [patch] [usb8] libusb-1.0 portability/compati
o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US
o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A
a usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after
a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass
o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor
o usb/139142 usb [ehci] [usb8] [patch] ehci drivers (NVIDIA nForce4 USB
o usb/138915 usb [patch] [usb8] [usb67] add support for SheevaPlug seri
a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s
f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t
a usb/138879 usb [uftdi] [patch] Patch to add support for CTI USB-Mini
o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv
o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT
o usb/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL
o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit
o usb/138172 usb [u3g] [patch] [usb67] Additional dev id for u3g (Optio
o usb/138138 usb [u3g] [patch] [usb67] Novatel U760 for u3g (Verizon an
o usb/138124 usb [usbaudio] [usb8] Axed uaudio functionality in the usb
o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is
o usb/137872 usb [usb67] [boot] slow booting on usb flash drive
f usb/137848 usb [panic] [usb67] Page fault when using an USB bluetooth
o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un
o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no
o usb/137616 usb [usb67][usb8][usbdevs] [patch]: usbdevs update: Please
o usb/137377 usb [usb8] Support for Huawei E180
o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro
p usb/137226 usb [usb67][patch] quirk for Philips extern USB disk
o usb/137190 usb [usb8][patch] inhibit spurious button releases for som
o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo
p usb/137188 usb [usb8][patch] correctly handle USB report descriptors
f bin/137180 usb [build] [patch] building world for 8.0-BETA2 fails on
o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att
p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H
o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis
f usb/135857 usb [urtw] [usb67] RTL8187 Wireless Adapter
o usb/135575 usb [usbdevs] [patch] [usb67] Add HTC Wizard phone vid/pid
o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa
p usb/135372 usb [usb67][umass] Quirk report for Teclast TL-C300 usb me
o usb/135348 usb [umass] USB Drive Hangs with ZFS (JMicron USB2/eSata)
o usb/135206 usb machine reboots when inserted USB device
o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu
o usb/135182 usb UMASS quirk - Olympus FE20 camera
o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible
o usb/134633 usb Add support for WILLCOM03(SHARP smart phone)
o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak
o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g
o usb/134193 usb System freeze on usb MP3 player insertion
o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod
o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive
o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt
o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa
o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache
o usb/133296 usb [rum] driver not working properly in hostap mode
p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA
o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as
o usb/132594 usb USB subsystem causes page fault and crashes
o usb/132312 usb Xorg 7.4 halts USB controller
o usb/132080 usb [patch] [usb] [rum] Kernel panic after NOMEM caused by
o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760
o usb/132036 usb [panic] page fault when connecting Olympus C740 camera
o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips
o usb/131900 usb [usbdevs] [patch] Additional product identification co
o usb/131583 usb [umass] Failure when detaching umass Device
o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data
o usb/131521 usb Registering Belkin UPS to usb_quirks.c
o usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk
o usb/131074 usb no run-time detection of usb devices plugged into exte
o usb/130736 usb Page fault unplugging USB stick
o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA
o usb/130208 usb Boot process severely hampered by umass0 error
o usb/130122 usb [newusb] DVD drive detects as 'da' device
o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U
o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system
o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support
o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan
o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem
o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis
o usb/129311 usb [usb] [panic] Instant crash with an USB card reader
o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and
o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a
s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa
o usb/128977 usb [usb] [patch] uaudio is not full duplex
o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2
o usb/128485 usb [umodem] [patch] Nokia N80 modem support
o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive
o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like
o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23
o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an
o usb/127926 usb [boot] USB Timeout during bootup
p usb/127549 usb [umass] [usb67] [patch] Meizu MiniPlayer M6 (SL) requi
s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should
o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr
o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support
o usb/127248 usb [ucom] panic while uplcom devices attaach and detach
o usb/127222 usb [ohci] Regression in 7.0 usb storage generic driver
o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c
o usb/126848 usb [usb]: USB Keyboard hangs during Installation
o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be
o usb/126519 usb [usb] [panic] panic when plugging in an iphone
o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device
o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if
o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite
o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d
o usb/125450 usb [panic] Removing USB flash card while being accessed c
o usb/125238 usb [ums] Habu Mouse turns off in X
o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U
o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi
o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe
o usb/124758 usb [rum] [panic] rum panics SMP kernel
o usb/124708 usb [panic] Kernel panic on USB KVM reattach
o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work
o kern/124130 usb [usb] gmirror fails to start usb devices that were pre
o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile
o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with
o usb/123691 usb usbd(8): usbd hangs
o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l
o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U
o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone
o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom
o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2
o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um
o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870
o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt
o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa
o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th
o usb/122813 usb [udbp] [request] udbp driver should be removed in favo
o usb/122621 usb [new driver] [patch] New driver for Sierra Wireless 3G
o usb/122547 usb [ehci] USB Printer not being recognized after reboot
o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci
o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE
o usb/122119 usb [umass] umass device causes creation of daX but not da
o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R
o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic
o usb/121734 usb [ugen] ugen HP1022 printer device not working since up
o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k
o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard
o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C
o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s
o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s
p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a
o usb/121169 usb [umass] Issues with usb mp3 player
o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS
o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det
o usb/120729 usb [panic] fault while in kernel mode with connecting USB
o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a
o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo
o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou
o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5
o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab
o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou
o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch
o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression]
o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i
o usb/119509 usb [usb] USB flaky on Dell Optiplex 755
o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas
o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress
o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun
o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and
o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround
o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer
o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se
o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread
o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi
o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin
o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS
o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE
o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS
o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work
o usb/117893 usb [umass] Lacie USB DVD writing failing
o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory
o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni
o usb/117313 usb [umass] [panic] panic on usb camera insertion
o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach
o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a
o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th
o usb/116699 usb [usbhid] USB HID devices do not initialize at system b
o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee
o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300
o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches
o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter
o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI
o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel
o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui
o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco
o usb/114682 usb [umass] generic USB media-card reader unusable
o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker
o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection
o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff
o usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in
o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated
s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe
o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found
o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device
o usb/107243 usb [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive q
o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu
o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st
s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never
o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil
o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele
o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r
o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size
o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar
o usb/99538 usb [keyboard] while using USB keyboard default params of
o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar
o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth
o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3
o usb/97472 usb [cam] [patch] add support for Olympus C150,D390
s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2.
o usb/97175 usb [umass] [hang] USB cardreader hangs system
o usb/96457 usb [umass] [panic] fatback on umass = reboot
o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram
o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync
s usb/96120 usb [ums] [request] USB mouse not always detected
s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620
o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb
s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen
o usb/95037 usb [umass] USB disk not recognized on hot-plug.
o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk
o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI
o usb/94384 usb [panic] kernel panic with usb2 hardware
o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB
o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion
o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work
o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w
o usb/92852 usb [ums] [patch] Vertical scroll not working properly on
o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS
o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb
o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE
o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand
o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg
o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n
o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return "
o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop
o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work
o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500
o usb/91283 usb [boot] [regression] booting very slow with usb devices
o usb/91238 usb [umass] USB tape unit fails to write a second tape fil
o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas
o usb/89954 usb [umass] [panic] USB Disk driver race condition?
s usb/89003 usb [request] LaCie Firewire drive not properly supported
o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg
o usb/88408 usb [axe] axe0 read PHY failed
o usb/87648 usb [mouse] Logitech USB-optical mouse problem.
o usb/87224 usb [usb] Cannot mount USB Zip750
o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the
o usb/86298 usb [mouse] Known good USB mouse won't work with correct s
s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device
f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa
s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a
o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN
o usb/83863 usb [ugen] Communication problem between opensc/openct via
o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe
o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d
o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent
o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic
s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy
o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected
o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack
o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci
o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55.
o usb/80862 usb [patch] USB locking issues: missing some Giant calls
o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me
o usb/80829 usb [modules] [panic] possible panic when loading USB-modu
s usb/80777 usb [request] usb_rem_task() should wait for callback to c
s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_
o usb/80774 usb [patch] have "usbd_find_desc" in line with the other "
o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails
o usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze
o usb/79723 usb [usb] [request] prepare for high speed isochronous tra
o usb/79722 usb [ehci] wrong alignments in ehci.h
a usb/79656 usb [ehci] RHSC interrupts lost
o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa
o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer
o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc
o usb/78984 usb [umass] [patch] Creative MUVO umass failure
o usb/77294 usb [ucom] [panic] ucom + ulpcom panic
o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect,
o usb/76732 usb [ums] Mouse problems with USB KVM Switch
o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device
o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by
o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0
s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade
o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn
o usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h
o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for
o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace)
o usb/74771 usb [umass] [hang] mounting write-protected umass device a
s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL
o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R
o usb/73307 usb [panic] Kernel panics on USB disconnect
s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl
o usb/71455 usb [umass] Slow USB umass performance of 5.3
o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati
o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n
o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1
o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes
o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters
o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports
o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction
o usb/67301 usb [uftdi] [panic] RTS and system panic
o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct
o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes
s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s
o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans
s bin/57255 usb [patch] usbd(8) and multi-function devices
s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2
s usb/51958 usb [urio] [patch] update for urio driver
o i386/46371 usb USB controller cannot be initialized on IBM Netfinity
o usb/40948 usb [umass] [request] USB HP CDW8200 does not work
o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem

334 problems total.

------------------------------

Message: 16
Date: Mon, 11 Jan 2010 13:08:43 +0100 (CET)
From: Gerhard Schmidt <sch...@ze.tum.de>
Subject: usb/142713: Kernel Panik when connecting an IPhone 3GS.
To: FreeBSD-gn...@FreeBSD.org
Message-ID: <201001111208....@etustar.ze.tum.de>


>Number: 142713
>Category: usb
>Synopsis: Kernel Panik when connecting an IPhone 3GS.
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 11 12:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Gerhard Schmidt
>Release: FreeBSD 7.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD etustar.ze.tum.de 7.2-STABLE FreeBSD 7.2-STABLE #3: Mon Jan 11 07:33:59 CET 2010 ro...@etustar.ze.tum.de:/usr/src/sys/amd64/compile/ETUSTAR amd64


>Description:
My FreeBSD Box Crashes when I connect my IPhone via USB to recharge it.
I did upgrade my FreeBSD Workstation today. It's working when the IPhone is connected when
FreeBSD is booting. But connectinig the IPhone to my running System causes a Crash.
Prior to this Update connecting the IPhone was no Problem. Registerd as uhid whitout Problems.

Dump header from device /dev/ad4s1b
Architecture: amd64
Architecture Version: 2
Dump Length: 3425812480B (3267 MB)
Blocksize: 512
Dumptime: Mon Jan 11 11:22:48 2010
Hostname: etustar.ze.tum.de
Magic: FreeBSD Kernel Dump
Version String: FreeBSD 7.2-STABLE #3: Mon Jan 11 07:33:59 CET 2010
ro...@etustar.ze.tum.de:/usr/src/sys/amd64/compile/ETUSTAR
Panic String: page fault
Dump Parity: 3310051040
Bounds: 0
Dump Status: good

The corefile can be optained from http://etustar.ze.tum.de/vmcore_20100111.bz2 (77MB)


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


------------------------------

Message: 17
Date: Mon, 11 Jan 2010 20:34:54 +0800
From: Alexander Logvinov <a...@logvinov.com>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID: <4B4B1AEE...@logvinov.com>
Content-Type: text/plain; charset=UTF-8

Hello!

On 10.01.2010 21:37 Hans Petter Selasky wrote:
> # this will display webcam contents from /dev/video0 by default.
> ./pwcview/pwcview
> Feedback and bug reports are welcome.
As you know I get a black window when I test my webcam under skype.
Here is skype output after pressing "Test" button:

$ skype
Starting the process...
Skype Xv: Xv ports available: 32
Skype XShm: XShm support enabled
Skype Xv: Using Xv port 304

$ xvinfo
X-Video Extension version 2.2
screen #0
Adaptor #0: "NV17 Video Texture"
number of ports: 32
port base: 304
operations supported: PutImage
supported visuals:
depth 24, visualID 0x21
depth 24, visualID 0x24
depth 24, visualID 0x25
depth 24, visualID 0x26
depth 24, visualID 0x27
depth 24, visualID 0x28
depth 24, visualID 0x29
depth 24, visualID 0x2a
depth 24, visualID 0x2b
depth 24, visualID 0x2c
depth 24, visualID 0x2d
depth 24, visualID 0x2e
depth 24, visualID 0x2f
depth 24, visualID 0x30
depth 24, visualID 0x31
depth 24, visualID 0x32
depth 24, visualID 0x33
depth 24, visualID 0x34
depth 24, visualID 0x35
depth 24, visualID 0x36
depth 24, visualID 0x37
depth 24, visualID 0x38
depth 24, visualID 0x39
depth 24, visualID 0x3a
depth 24, visualID 0x3b
depth 24, visualID 0x3c
depth 24, visualID 0x3d
depth 24, visualID 0x3e
depth 24, visualID 0x22
depth 24, visualID 0x3f
depth 24, visualID 0x40
depth 24, visualID 0x41
depth 24, visualID 0x42
depth 24, visualID 0x43
depth 24, visualID 0x44
depth 24, visualID 0x45
depth 24, visualID 0x46
depth 24, visualID 0x47
depth 24, visualID 0x48
depth 24, visualID 0x49
depth 24, visualID 0x4a
depth 24, visualID 0x4b
depth 24, visualID 0x4c
depth 24, visualID 0x4d
depth 24, visualID 0x4e
depth 24, visualID 0x4f
depth 24, visualID 0x50
depth 24, visualID 0x51
depth 24, visualID 0x52
depth 24, visualID 0x53
depth 24, visualID 0x54
depth 24, visualID 0x55
depth 24, visualID 0x56
depth 24, visualID 0x57
depth 24, visualID 0x58
depth 24, visualID 0x59
number of attributes: 7
"XV_SET_DEFAULTS" (range 0 to 0)
client settable attribute
"XV_ITURBT_709" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 0)
"XV_SYNC_TO_VBLANK" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 1)
"XV_BRIGHTNESS" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_CONTRAST" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_SATURATION" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_HUE" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
maximum XvImage size: 2046 x 2046
Number of image formats: 4
id: 0x32595559 (YUY2)
guid: 59555932-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x32315659 (YV12)
guid: 59563132-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x59565955 (UYVY)
guid: 55595659-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x30323449 (I420)
guid: 49343230-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)


--
Best regards,
Alexander

------------------------------

Message: 18
Date: Mon, 11 Jan 2010 15:08:43 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: freebsd...@freebsd.org
Cc: Brandon Gooch <jamesbra...@gmail.com>,
freebsd-m...@freebsd.org, freeb...@freebsd.org
Message-ID: <201001111508....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

On Sunday 10 January 2010 18:40:17 Brandon Gooch wrote:
>
> Seems to work for just a second or two (I see my ugly mug on-screen),
> and then this:
>
> # ./pwcview/pwcview
> Webcam set to: 320x240 (sif) at 5 fps
> libv4lconvert: Error decompressing JPEG: fill_nbits error: need 8 more bits
> libv4l2: error converting / decoding frame data: v4l-convert: error
> parsing JPEG header: Not a JPG file ?

Hi again,

The JPEG library fix is here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137265

Try to "svn up" and build fresh sources. I've found and fixed some bugs.

--HPS

------------------------------

Message: 19
Date: Mon, 11 Jan 2010 15:10:39 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Alexander Logvinov <a...@logvinov.com>
Cc: freebsd-m...@freebsd.org, freeb...@freebsd.org
Message-ID: <201001111510....@c2i.net>
Content-Type: Text/Plain; charset="utf-8"

On Monday 11 January 2010 13:34:54 Alexander Logvinov wrote:
> Hello!
>
> On 10.01.2010 21:37 Hans Petter Selasky wrote:
> > # this will display webcam contents from /dev/video0 by default.
> > ./pwcview/pwcview
> > Feedback and bug reports are welcome.
>
> As you know I get a black window when I test my webcam under skype.
> Here is skype output after pressing "Test" button:
>
> $ skype
> Starting the process...
> Skype Xv: Xv ports available: 32
> Skype XShm: XShm support enabled
> Skype Xv: Using Xv port 304
>
> $ xvinfo
> X-Video Extension version 2.2
> screen #0
> Adaptor #0: "NV17 Video Texture"
> number of ports: 32
> port base: 304
> operations supported: PutImage
> supported visuals:
> depth 24, visualID 0x21
> depth 24, visualID 0x24
> depth 24, visualID 0x25
> depth 24, visualID 0x26
> depth 24, visualID 0x27
> depth 24, visualID 0x28
> depth 24, visualID 0x29
> depth 24, visualID 0x2a
> depth 24, visualID 0x2b
> depth 24, visualID 0x2c
> depth 24, visualID 0x2d
> depth 24, visualID 0x2e
> depth 24, visualID 0x2f
> depth 24, visualID 0x30
> depth 24, visualID 0x31
> depth 24, visualID 0x32
> depth 24, visualID 0x33
> depth 24, visualID 0x34
> depth 24, visualID 0x35
> depth 24, visualID 0x36
> depth 24, visualID 0x37
> depth 24, visualID 0x38
> depth 24, visualID 0x39
> depth 24, visualID 0x3a
> depth 24, visualID 0x3b
> depth 24, visualID 0x3c
> depth 24, visualID 0x3d
> depth 24, visualID 0x3e
> depth 24, visualID 0x22
> depth 24, visualID 0x3f
> depth 24, visualID 0x40
> depth 24, visualID 0x41
> depth 24, visualID 0x42
> depth 24, visualID 0x43
> depth 24, visualID 0x44
> depth 24, visualID 0x45
> depth 24, visualID 0x46
> depth 24, visualID 0x47
> depth 24, visualID 0x48
> depth 24, visualID 0x49
> depth 24, visualID 0x4a
> depth 24, visualID 0x4b
> depth 24, visualID 0x4c
> depth 24, visualID 0x4d
> depth 24, visualID 0x4e
> depth 24, visualID 0x4f
> depth 24, visualID 0x50
> depth 24, visualID 0x51
> depth 24, visualID 0x52
> depth 24, visualID 0x53
> depth 24, visualID 0x54
> depth 24, visualID 0x55
> depth 24, visualID 0x56
> depth 24, visualID 0x57
> depth 24, visualID 0x58
> depth 24, visualID 0x59
> number of attributes: 7
> "XV_SET_DEFAULTS" (range 0 to 0)
> client settable attribute
> "XV_ITURBT_709" (range 0 to 1)
> client settable attribute
> client gettable attribute (current value is 0)
> "XV_SYNC_TO_VBLANK" (range 0 to 1)
> client settable attribute
> client gettable attribute (current value is 1)
> "XV_BRIGHTNESS" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is 0)
> "XV_CONTRAST" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is 0)
> "XV_SATURATION" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is 0)
> "XV_HUE" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is 0)
> maximum XvImage size: 2046 x 2046
> Number of image formats: 4
> id: 0x32595559 (YUY2)
> guid: 59555932-0000-0010-8000-00aa00389b71
> bits per pixel: 16
> number of planes: 1
> type: YUV (packed)
> id: 0x32315659 (YV12)
> guid: 59563132-0000-0010-8000-00aa00389b71
> bits per pixel: 12
> number of planes: 3
> type: YUV (planar)
> id: 0x59565955 (UYVY)
> guid: 55595659-0000-0010-8000-00aa00389b71
> bits per pixel: 16
> number of planes: 1
> type: YUV (packed)
> id: 0x30323449 (I420)
> guid: 49343230-0000-0010-8000-00aa00389b71
> bits per pixel: 12
> number of planes: 3
> type: YUV (planar)

Hi,

Try to define V4B_DEBUG in top of webcamd.c and recompile the program. What is
printed when skype is started by webcamd?

--HPS


------------------------------

Message: 20
Date: Mon, 11 Jan 2010 18:01:05 +0100
From: "Pawel Pekala" <c0...@o2.pl>
Subject: usb/142719: [urtw] [usb8] AirLive WL-1600USB (RTL8187L
chipset) fails to work
To: "FreeBSD gnats submit" <FreeBSD-gn...@FreeBSD.org>
Message-ID: <1263229...@caprica.slowicza.org>


>Number: 142719
>Category: usb
>Synopsis: [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fails to work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 11 17:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Pawel Pekala
>Release: FreeBSD 8.0-STABLE i386
>Organization:
>Environment:


System: FreeBSD 8.0-STABLE #0: Mon Jan 11 17:00:23 CET 2010
co...@caprica.slowicza.org:/usr/obj/usr/src/sys/CORN

>Description:


Device seems to be recognized as urtw0, but scanning for networks
or setting IP address fails:

[corn:~]# ifconfig urtw0 scan up
ifconfig: unable to get scan results
[corn:~]# ifconfig urtw0 inet 10.1.0.33 netmask 255.255.255.0
ifconfig: ioctl (SIOCAIFADDR): Invalid argument

Here`s my dmesg:

Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-STABLE #0: Mon Jan 11 17:00:23 CET 2010
co...@caprica.slowicza.org:/usr/obj/usr/src/sys/CORN i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU T6600 @ 2.20GHz (2194.51-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x1067a Stepping = 10
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x408e39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE>
AMD Features=0x20100000<NX,LM>
AMD Features2=0x1<LAHF>
TSC: P-state invariant
real memory = 2147483648 (2048 MB)
avail memory = 2055544832 (1960 MB)
ACPI APIC Table: <090909 APIC1656>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <090909 XSDT1656> on motherboard
acpi0: [ITHREAD]
acpi_ec0: <Embedded Controller: GPE 0x1b, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
unknown: I/O range not supported
unknown: I/O range not supported
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7dd00000 (3) failed
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xdc00-0xdc07 mem 0xfe400000-0xfe7fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0
agp0: <Intel GM45 SVGA controller> on vgapci0
agp0: detected 32764k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xfe800000-0xfe8fffff at device 2.1 on pci0
uhci0: <Intel 82801I (ICH9) USB controller> port 0xd880-0xd89f irq 16 at device 26.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x2f00
usbus0: <Intel 82801I (ICH9) USB controller> on uhci0
uhci1: <Intel 82801I (ICH9) USB controller> port 0xd800-0xd81f irq 21 at device 26.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x2f00
usbus1: <Intel 82801I (ICH9) USB controller> on uhci1
uhci2: <Intel 82801I (ICH9) USB controller> port 0xd480-0xd49f irq 19 at device 26.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x2f00
usbus2: <Intel 82801I (ICH9) USB controller> on uhci2
ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfe9fbc00-0xfe9fbfff irq 18 at device 26.7 on pci0
ehci0: [ITHREAD]
usbus3: EHCI version 1.0
usbus3: <Intel 82801I (ICH9) USB 2.0 controller> on ehci0
hdac0: <Intel 82801I High Definition Audio Controller> mem 0xfe9f4000-0xfe9f7fff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20091113_0138
hdac0: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <network> at device 0.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
pci3: <ACPI PCI bus> on pcib3
ale0: <Atheros AR8121/AR8113/AR8114 PCIe Ethernet> port 0xec00-0xec7f mem 0xfebc0000-0xfebfffff irq 17 at device 0.0 on pci3
ale0: 960 Tx FIFO, 1024 Rx FIFO
ale0: Using 1 MSI messages.
miibus0: <MII bus> on ale0
atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
ale0: Ethernet address: 90:e6:ba:98:7d:77
ale0: [FILTER]
uhci3: <Intel 82801I (ICH9) USB controller> port 0xd400-0xd41f irq 23 at device 29.0 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x2f00
usbus4: <Intel 82801I (ICH9) USB controller> on uhci3
uhci4: <Intel 82801I (ICH9) USB controller> port 0xd080-0xd09f irq 19 at device 29.1 on pci0
uhci4: [ITHREAD]
uhci4: LegSup = 0x2f00
usbus5: <Intel 82801I (ICH9) USB controller> on uhci4
uhci5: <Intel 82801I (ICH9) USB controller> port 0xd000-0xd01f irq 18 at device 29.2 on pci0
uhci5: [ITHREAD]
uhci5: LegSup = 0x2f00
usbus6: <Intel 82801I (ICH9) USB controller> on uhci5
ehci1: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfe9fb800-0xfe9fbbff irq 23 at device 29.7 on pci0
ehci1: [ITHREAD]
usbus7: EHCI version 1.0
usbus7: <Intel 82801I (ICH9) USB 2.0 controller> on ehci1
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel AHCI controller> port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc41f mem 0xfe9fb000-0xfe9fb7ff irq 19 at device 31.2 on pci0
atapci0: [ITHREAD]
atapci0: AHCI v1.20 controller with 4 3Gbps ports, PM not supported
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
acpi_button0: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
cpu0: <ACPI CPU> on acpi0
ACPI Warning: Incorrect checksum in table [ATKG] - B5, should be E5 20090521 tbutils-275
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata0: [ITHREAD]
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
ata1: [ITHREAD]
ppc0: parallel port not found.
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 12Mbps Full Speed USB v1.0
usbus7: 480Mbps High Speed USB v2.0
ad4: 476940MB <Seagate ST9500325AS 0002SDM1> at ata2-master UDMA100 SATA 3Gb/s
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <Intel> at usbus5
uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen6.1: <Intel> at usbus6
uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
ugen7.1: <Intel> at usbus7
uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
acd0: DVDR <MATSHITADVD-RAM UJ862AS/1.12> at ata3-master UDMA66 SATA 1.5Gb/s
hdac0: HDA Codec #0: VIA VT1708S_0
pcm0: <HDA VIA VT1708S_0 PCM #0 Analog> at cad 0 nid 1 on hdac0
SMP: AP CPU #1 Launched!
Root mount waiting for: usbus7 usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub6: 2 ports with 2 removable, self powered
Root mount waiting for: usbus7 usbus3
Root mount waiting for: usbus7 usbus3
uhub3: 6 ports with 6 removable, self powered
uhub7: 6 ports with 6 removable, self powered
Root mount waiting for: usbus7 usbus3
ugen7.2: <vendor 0x1b75> at usbus7
urtw0: <vendor 0x1b75 product 0x8187, class 0/0, rev 2.00/1.00, addr 2> on usbus7
urtw0: unknown RTL8187L type: 0x8000000
ugen3.2: <Chicony Electronics Co., Ltd.> at usbus3
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
urtw0: rtl8187l rf rtl8225u hwrev none
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Root mount waiting for: usbus7
Trying to mount root from ufs:/dev/ad4s1a
ale0: link state changed to UP
drm0: <Mobile Intel\M-B\M-. GM45 Express Chipset> on vgapci0
info: [drm] MSI enabled 1 message(s)
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] AGP at 0xd0000000 256MB
info: [drm] Initialized i915 1.6.0 20080730
drm0: [ITHREAD]
ugen7.2: <vendor 0x1b75> at usbus7 (disconnected)
urtw0: at uhub7, port 4, addr 2 (disconnected)
urtw0: failed to stop (USB_ERR_NOT_CONFIGURED)
ugen7.2: <vendor 0x1b75> at usbus7
urtw0: <vendor 0x1b75 product 0x8187, class 0/0, rev 2.00/1.00, addr 2> on usbus7
urtw0: unknown RTL8187L type: 0x8000000
urtw0: rtl8187l rf rtl8225u hwrev none
ugen7.2: <vendor 0x1b75> at usbus7 (disconnected)
urtw0: at uhub7, port 3, addr 2 (disconnected)
urtw0: failed to stop (USB_ERR_NOT_CONFIGURED)
ugen7.2: <vendor 0x1b75> at usbus7
urtw0: <vendor 0x1b75 product 0x8187, class 0/0, rev 2.00/1.00, addr 2> on usbus7
urtw0: unknown RTL8187L type: 0x8000000
urtw0: rtl8187l rf rtl8225u hwrev none

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


------------------------------

End of freebsd-usb Digest, Vol 271, Issue 1
*******************************************

0 new messages