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. Re: usb/142957: patch for USB disk SYNCHRONIZE CACHE problem
(Hans Petter Selasky)
2. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Dag-Erling Sm?rgrav)
3. Re: usb/142957: patch for USB disk SYNCHRONIZE CACHE problem
(Hans Petter Selasky)
4. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Andrew Thompson)
5. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Henry Hu)
6. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Andrew Thompson)
7. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Vladimir Grebenschikov)
8. usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4) (robert)
9. usb/142991: Patch to add Crystalfontz 533 USB LCD (Markus Dolze)
10. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Wilkinson, Alex)
11. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Wilkinson, Alex)
12. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Wilkinson, Alex)
13. multimedia/libv4l/ (video4bsd.ko) -> Fatal trap 12: page
fault while in kernel mode [SEC=UNCLASSIFIED] (Wilkinson, Alex)
14. Re: multimedia/libv4l/ (video4bsd.ko) -> Fatal trap 12: page
fault while in kernel mode [SEC=UNCLASSIFIED] (Hans Petter Selasky)
15. Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4) (Hans Petter Selasky)
16. Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4) (Hans Petter Selasky)
17. Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4) (Robert Blacquiere)
18. Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4) (Robert Blacquiere)
19. Re: SANE vs USB scanner on 8.0 (Torfinn Ingolfsen)
20. Re: SANE vs USB scanner on 8.0 (Hans Petter Selasky)
21. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Hans Petter Selasky)
22. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
23. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
24. Re: multimedia/libv4l/ (video4bsd.ko) -> Fatal trap 12: page
fault while in kernel mode [SEC=UNCLASSIFIED] (Wilkinson, Alex)
25. libv4l2: error converting / decoding frame data: v4l-convert:
... [SEC=UNCLASSIFIED] (Wilkinson, Alex)
26. Re: usb/143045: [umass] [patch] mounting Fujitsu 2600Z camera
doesn't work (lin...@FreeBSD.org)
27. Re: libv4l2: error converting / decoding frame data:
v4l-convert: ... [SEC=UNCLASSIFIED] (Ernst W. Winter)
28. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Wilkinson, Alex)
29. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Daichi GOTO)
30. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
(Hans Petter Selasky)
31. Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED] (Hans Petter Selasky)
----------------------------------------------------------------------
Message: 1
Date: Tue, 19 Jan 2010 16:34:58 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: usb/142957: patch for USB disk SYNCHRONIZE CACHE problem
To: freeb...@freebsd.org
Cc: Tom Vijlbrief <tom.vi...@xs4all.nl>,
freebsd-gn...@freebsd.org
Message-ID: <201001191634....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-15"
On Tuesday 19 January 2010 09:13:34 Tom Vijlbrief wrote:
> usb/142957
>
Can you try to cvsup to 9-current and try the following patch:
http://p4web.freebsd.org/chv.cgi?CH=173371
http://perforce.freebsd.org/chv.cgi?CH=173371
--HPS
------------------------------
Message: 2
Date: Tue, 19 Jan 2010 16:38:28 +0100
From: Dag-Erling Sm?rgrav <d...@des.no>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <86bpgqd...@ds4.des.no>
Content-Type: text/plain; charset=utf-8
Hans Petter Selasky <hsel...@c2i.net> writes:
> Please check /etc/make.conf and replace any CFLAGS= with CFLAGS+=
Bzzt, wrong. It will make no difference whatsoever; make.conf is
included by sys.mk before the Makefile itself is read, so the Makefile
overrides make.conf, not the other way around.
DES
--
Dag-Erling Smørgrav - d...@des.no
------------------------------
Message: 3
Date: Tue, 19 Jan 2010 15:40:06 GMT
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: usb/142957: patch for USB disk SYNCHRONIZE CACHE problem
To: freeb...@FreeBSD.org
Message-ID: <201001191540....@freefall.freebsd.org>
The following reply was made to PR usb/142957; it has been noted by GNATS.
From: Hans Petter Selasky <hsel...@c2i.net>
To: freeb...@freebsd.org
Cc: Tom Vijlbrief <tom.vi...@xs4all.nl>,
freebsd-gn...@freebsd.org
Subject: Re: usb/142957: patch for USB disk SYNCHRONIZE CACHE problem
Date: Tue, 19 Jan 2010 16:34:58 +0100
On Tuesday 19 January 2010 09:13:34 Tom Vijlbrief wrote:
> usb/142957
>
Can you try to cvsup to 9-current and try the following patch:
http://p4web.freebsd.org/chv.cgi?CH=173371
http://perforce.freebsd.org/chv.cgi?CH=173371
--HPS
------------------------------
Message: 4
Date: Wed, 20 Jan 2010 05:53:06 +1300
From: Andrew Thompson <tho...@FreeBSD.org>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <20100119165...@citylink.fud.org.nz>
Content-Type: text/plain; charset=us-ascii
On Tue, Jan 19, 2010 at 05:12:17PM +0800, Wilkinson, Alex wrote:
>
> 0n Thu, Jan 14, 2010 at 10:03:29PM +1300, Andrew Thompson wrote:
>
> >On Thu, Jan 14, 2010 at 04:48:31PM +0800, Wilkinson, Alex wrote:
> >>
> >> 0n Thu, Jan 14, 2010 at 09:24:47AM +0100, Hans Petter Selasky wrote:
> >>
> >> >I think Andrew made a fixed port which you can test.
> >>
> >> Can you please point me in the direction to this ?
> >
> >I'l update the tarball tomorrow and send it out.
>
> Got these errors:
>
> [FreeBSD 9.0-CURRENT #0 r202270: Thu Jan 14 11:20:04 WST 2010]
>
> ===> Building for webcamd-0.1.0
> Warning: Object directory not changed from original /usr/ports/multimedia/webcamd/work/webcamd-0.1.0
> cc -O2 -pipe -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/v4l-dvb/linux/drivers/media/video/gspca -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/v4l-dvb/linux/include -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/v4l-dvb/linux -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0 -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/dummy -DCONFIG_VIDEO_V4L1_COMPAT -DHAVE_WEBCAMD -include webcamd_global.h -O2 -Wall -Wno-pointer-sign -fvisibility=hidden -std=gnu99 -fstack-protector -c webcamd.c
> webcamd.c:37:23: error: video4bsd.h: No such file or directory
> webcamd.c:55: error: 'V4B_ALLOC_UNIT_MAX' undeclared here (not in a function)
> webcamd.c: In function 'main':
> webcamd.c:126: error: storage size of 'cmd' isn't known
> webcamd.c:176: error: 'V4B_DEVICES_MAX' undeclared (first use in this function)
Do you have CFLAGS set in /etc/make.conf by chance?
Andrew
------------------------------
Message: 5
Date: Wed, 20 Jan 2010 01:33:14 +0800
From: Henry Hu <henry...@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:
<53a1e0711001190933y64a...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello,
On Sun, Jan 10, 2010 at 9: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.
I've tested on my webcam and it works here.
I have an USB Video Class webcam:
ugen2.2: <Vega USB 2.0 Camera. Vimicro Corp.> at usbus2, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON
This is the first time it works in FreeBSD! Thanks a lot!
Currently, it works with -s vga and -s cif. There are many other modes
supported by the webcam, but pwcview just does not support them. This
webcam supports at most 1280x1024, and the quality is clearly better
than 640x480.
There are some problems, however. First, when I start pwcview with an
unsupported mode, the content of the window is green, and I cannot
kill the process. Only after terminating webcamd can I terminate the
process.
Second, I cannot restart pwcview without restarting webcamd. At the
second time I start pwcview with -s vga, the window is green, and I
cannot kill it. The situation is similar to unsupported size.
I've also tried applications such as pidgin, skype and mplayer.
However no one successfully played from the webcam. I doubt it needs
some extra work.
I've changed pwcview a bit to keep the settings in internal variables
instead of fetching them every time. Else I cannot change most
parameters. Maybe the webcam only supports a certain set of setting
values, and use the nearest value after setting them.
Thanks again for the great work! It never caused any kernel panic, and
the programs are fairly stable.
> 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.
> _______________________________________________
> freebsd-m...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "freebsd-multime...@freebsd.org"
>
Cheers,
Henry
------------------------------
Message: 6
Date: Wed, 20 Jan 2010 07:20:22 +1300
From: Andrew Thompson <tho...@FreeBSD.org>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: Dag-Erling Sm??rgrav <d...@des.no>
Cc: freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <20100119182...@citylink.fud.org.nz>
Content-Type: text/plain; charset=us-ascii
On Tue, Jan 19, 2010 at 04:38:28PM +0100, Dag-Erling Sm??rgrav wrote:
> Hans Petter Selasky <hsel...@c2i.net> writes:
> > Please check /etc/make.conf and replace any CFLAGS= with CFLAGS+=
>
> Bzzt, wrong. It will make no difference whatsoever; make.conf is
> included by sys.mk before the Makefile itself is read, so the Makefile
> overrides make.conf, not the other way around.
I have tested this with CFLAGS=-g in /etc/make.conf
/usr/ports/multimedia/webcamd# make -dA
...
Global:CFLAGS = -g -I/usr/local/include
...
(cd /usr/ports/multimedia/webcamd/work/webcamd-0.1.0; if ! /usr/bin/env
SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local
X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib
-lXm -lXp" LIBDIR="/usr/lib" CC="cc" CFLAGS="-g -I/usr/local/include"
CXX="c++" CXXFLAGS="-g -I/usr/local/include" MANPREFIX="/usr/local"
BSD_INSTALL_PROGRAM="install -s -o root -g
wheel -m 555" BSD_INSTALL_SCRIPT="install -o root -g wheel -m 555"
BSD_INSTALL_DATA="install -o root -g wheel -m 444"
BSD_INSTALL_MAN="install -o root -g wheel -m 444" make -f M
akefile all; then if [ x != x ] ; then echo "===> Compilation
failed unexpectedly."; (echo ) | /usr/bin/fmt 75 79 ; fi; false;
fi)
...
Global:CFLAGS = -g
So CFLAGS is being properly passed to the
/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/Makefile via the
environment but its getting overridden and causing the reported build error.
Andrew
------------------------------
Message: 7
Date: Tue, 19 Jan 2010 23:12:32 +0300
From: Vladimir Grebenschikov <vo...@fbsd.ru>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: vo...@fbsd.ru
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID: <1263931952.2993.7.camel@localhost>
Content-Type: text/plain; charset="KOI8-R"
Hi
I've tested with recent ports.
pwcview works fine, both vga and sif
but skype still sees /dev/video0 but fails to play anything from it,
multimedia/cheese even does not sees webcam.
Is it supposed, or I am so unlucky ?
PS. microphone in cam work also as snd_uaudio pcm2
-----Original Message-----
From: Vladimir Grebenschikov <vo...@fbsd.ru>
Reply-to: vo...@fbsd.ru
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
Date: Tue, 12 Jan 2010 00:10:52 +0300
Hi
Thanks you for efforts!
I've tested it with
ugen4.2: <USB 2.0 Camera Vimicro Corp> at usbus4, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON
on 9-CURRENT
pwcview works fine:
$ ./pwcview/pwcview
Webcam set to: 320x240 (sif) at 5 fps
skype detects video device, but shows only black window instead of
picture.
build webcamd.c with debug shows:
$ ./webcamd
Probing for 0.0.0
KrefGet: 0x483e2304 = 1
KrefGet: 0x483e2304 = 2
KrefGet: 0x483e2554 = 1
KrefGet: 0x483e2610 = 1
Added device 0x48318b04
KrefGet: 0x48318b08 = 1
Received command 1 0x00000000
KrefGet: 0x48318b08 = 2
Status = 0
Received command 5 0x40047601
Status = -22
Received command 5 0x403c7601
Status = 0
Received command 5 0x400e7606
Status = 0
Received command 5 0x800e7607
Status = -22
Received command 5 0x800e7607
Status = 0
Received command 5 0x40207609
Status = 0
Received command 5 0x8020760a
Status = 0
... and then in loop:
Status = -22
Received command 3 0x00025800
Status = -22
Received command 3 0x00025800
Status = -22
Received command 3 0x00025800
Status = -22
Received command 3 0x00025800
Status = -22
Received command 3 0x00025800
...
Side question, is it possible to use audio microphone of USB camera ?
-----Original Message-----
From: Hans Petter Selasky <hsel...@c2i.net>
To: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Subject: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
Date: Sun, 10 Jan 2010 14:37:37 +0100
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.
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to
"freebsd-curre...@freebsd.org"
--
Vladimir B. Grebenschikov
vo...@fbsd.ru
------------------------------
Message: 8
Date: Tue, 19 Jan 2010 20:52:08 GMT
From: robert <rob...@blacquiere.nl>
Subject: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4)
To: freebsd-gn...@FreeBSD.org
Message-ID: <201001192052....@www.freebsd.org>
>Number: 142989
>Category: usb
>Synopsis: canon eos 50D attaches but detaches after few seconds (1 - 4)
>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: Tue Jan 19 21:00:20 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: robert
>Release: FreeBSD 8.0
>Organization:
>Environment:
FreeBSD x300.blacquiere.local 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
>Description:
Canon EOS 50D dslr connected to usb ports attaches but detaches after few seconds, between 1 and 4 seconds.
ugen6.2: <Canon Inc.> at usbus6
ugen6.2: <Canon Inc.> at usbus6 (disconnected)
usbconfig list does not show any Canon device any more.
>How-To-Repeat:
attach canon eos 50D firmware version 1.07 with usb on freebsd 8.0 laptop.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
------------------------------
Message: 9
Date: Tue, 19 Jan 2010 21:05:31 GMT
From: Markus Dolze <bsd...@nurfuerspam.de>
Subject: usb/142991: Patch to add Crystalfontz 533 USB LCD
To: freebsd-gn...@FreeBSD.org
Message-ID: <201001192105....@www.freebsd.org>
>Number: 142991
>Category: usb
>Synopsis: Patch to add Crystalfontz 533 USB LCD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 19 21:10:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Markus Dolze
>Release: 7.2-RELEASE
>Organization:
>Environment:
FreeBSD kirika.intra.mdolze.de 7.2-RELEASE FreeBSD 7.2-RELEASE #3: Wed Jan 13 22:20:53 CET 2010 ro...@kirika.intra.mdolze.de:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Add USB product ID for Crystalfontz 533 USB LCD.
>How-To-Repeat:
>Fix:
Apply attached patch
Patch attached with submission follows:
--- ./sys/dev/usb/usbdevs.orig 2010-01-13 18:59:48.000000000 +0100
+++ ./sys/dev/usb/usbdevs 2010-01-13 22:18:40.000000000 +0100
@@ -1308,6 +1308,7 @@
product FTDI CFA_633 0xfc0b Crystalfontz CFA-633 USB LCD
product FTDI CFA_631 0xfc0c Crystalfontz CFA-631 USB LCD
product FTDI CFA_635 0xfc0d Crystalfontz CFA-635 USB LCD
+product FTDI CFA_533 0xfc0e Crystalfontz CFA-533 USB LCD
product FTDI SEMC_DSS20 0xfc82 SEMC DSS-20 SyncStation
/* Fuji photo products */
--- ./sys/dev/usb/uftdi.c.orig 2010-01-13 19:09:34.000000000 +0100
+++ ./sys/dev/usb/uftdi.c 2010-01-13 22:19:09.000000000 +0100
@@ -152,6 +152,7 @@
(uaa->product == USB_PRODUCT_FTDI_SERIAL_8U100AX ||
uaa->product == USB_PRODUCT_FTDI_SERIAL_8U232AM ||
uaa->product == USB_PRODUCT_FTDI_SEMC_DSS20 ||
+ uaa->product == USB_PRODUCT_FTDI_CFA_533 ||
uaa->product == USB_PRODUCT_FTDI_CFA_631 ||
uaa->product == USB_PRODUCT_FTDI_CFA_632 ||
uaa->product == USB_PRODUCT_FTDI_CFA_633 ||
@@ -237,6 +238,7 @@
case USB_PRODUCT_FTDI_SEMC_DSS20:
case USB_PRODUCT_FTDI_SERIAL_8U232AM:
case USB_PRODUCT_FTDI_SERIAL_2232C:
+ case USB_PRODUCT_FTDI_CFA_533:
case USB_PRODUCT_FTDI_CFA_631:
case USB_PRODUCT_FTDI_CFA_632:
case USB_PRODUCT_FTDI_CFA_633:
>Release-Note:
>Audit-Trail:
>Unformatted:
------------------------------
Message: 10
Date: Wed, 20 Jan 2010 05:50:22 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freeb...@freebsd.org, freebsd...@freebsd.org
Message-ID: <20100119215...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
0n Wed, Jan 20, 2010 at 05:53:06AM +1300, Andrew Thompson wrote:
>> Got these errors:
>>
>> [FreeBSD 9.0-CURRENT #0 r202270: Thu Jan 14 11:20:04 WST 2010]
>>
>> ===> Building for webcamd-0.1.0
>> Warning: Object directory not changed from original /usr/ports/multimedia/webcamd/work/webcamd-0.1.0
>> cc -O2 -pipe -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/v4l-dvb/linux/drivers/media/video/gspca -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/v4l-dvb/linux/include -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/v4l-dvb/linux -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0 -I/usr/ports/multimedia/webcamd/work/webcamd-0.1.0/dummy -DCONFIG_VIDEO_V4L1_COMPAT -DHAVE_WEBCAMD -include webcamd_global.h -O2 -Wall -Wno-pointer-sign -fvisibility=hidden -std=gnu99 -fstack-protector -c webcamd.c
>> webcamd.c:37:23: error: video4bsd.h: No such file or directory
>> webcamd.c:55: error: 'V4B_ALLOC_UNIT_MAX' undeclared here (not in a function)
>> webcamd.c: In function 'main':
>> webcamd.c:126: error: storage size of 'cmd' isn't known
>> webcamd.c:176: error: 'V4B_DEVICES_MAX' undeclared (first use in this function)
>
>Do you have CFLAGS set in /etc/make.conf by chance?
yup:
#grep CFLAGS /etc/make.conf
CFLAGS= -O2 -pipe
-Alex
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 11
Date: Wed, 20 Jan 2010 05:57:34 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freeb...@freebsd.org, freebsd...@freebsd.org
Message-ID: <20100119215...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
0n Tue, Jan 19, 2010 at 04:29:13PM +0100, Hans Petter Selasky wrote:
>Please check /etc/make.conf and replace any CFLAGS= with CFLAGS+=
Yup, that worked! Great!
===> Installing rc.d startup script(s)
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for webcamd-0.1.0
===> Cleaning for webcamd-0.1.0
-Alex
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 12
Date: Wed, 20 Jan 2010 14:46:20 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freeb...@freebsd.org, freebsd...@freebsd.org
Message-ID: <20100120064...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
0n Sun, Jan 10, 2010 at 02:37:37PM +0100, Hans Petter Selasky wrote:
>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.
OK, after all the wresting i have it working! Great stuff Hans and Andrew!
attaches as: kernel: ugen7.2: <vendor 0x046d> at usbus7
And works dam well.
What apps could i expect this to work with in the future ? skype ?
-Alex
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 13
Date: Wed, 20 Jan 2010 16:37:26 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: multimedia/libv4l/ (video4bsd.ko) -> Fatal trap 12: page
fault while in kernel mode [SEC=UNCLASSIFIED]
To: freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <20100120083...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
The following ports initially installed and worked fine:
multimedia/libv4l
multimedia/webcamd
multimedia/pwcview
however, after a reboot video4bsd.ko panic'd my machine and i was unable to
boot. I had to use the LiveFS to rescue the box. Here is the bt from DDB:
FreeBSD 9.0-CURRENT #0 r202270:
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
458752K of memory above 4GB ignored
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 9.0-CURRENT #0 r202270: Thu Jan 14 11:20:04 WST 2010
WARNING: WITNESS option enabled, expect reduced performance.
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex cdev (cdev) r = 0 (0xc0df5bd8) locked @ /usr/src/sys/kern/kern_conf.c:72
KDB: stack backtrace:
db_trace_self_wrapper(c0c9e3fb,c1c20b7c,c08d5375,c0c94c4e,48,...) at db_trace_self_wrapper+0x26
kdb_backtrace(c0c94c4e,48,ffffffff,c0f3814c,c1c20bb4,...) at kdb_backtrace+0x29
_witness_debugger(c0ca08bd,c1c20bc8,4,1,0,...) at _witness_debugger+0x25
witness_warn(5,0,c0cd5368,c1c20ce8,c0df5540,...) at witness_warn+0x1fd
trap(c1c20c54) at trap+0x19e
calltrap() at calltrap+0x6
--- trap 0xc, eip = 0xc087f1c3, esp = 0xc1c20c94, ebp = 0xc1c20ca4 ---
_mtx_assert(f000fea5,4,c0ca03dd,240,0,...) at _mtx_assert+0x53
alloc_unrl(0,4,c0c8fa0e,202,c7952000,...) at alloc_unrl+0x2f
devfs_create(c7952000,40,20,c1bb1a3a,c1c20d60,...) at devfs_create+0x42
make_dev_credv(0,0,5,1a4,c1bb1a3a,...) at make_dev_credv+0x103
make_dev(c1bb2000,0,0,5,1a4,...) at make_dev+0x43
v4b_init(0,1c1ec00,1c1ec00,1c1e000,1c25000,...) at v4b_init+0x7b
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0xf000feb5
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc087f1c3
stack pointer = 0x28:0xc1c20c94
frame pointer = 0x28:0xc1c20ca4
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 ()
[thread pid 0 tid 0 ]
Stopped at _mtx_assert+0x53: movl 0x10(%edx),%eax
db> bt
Tracing pid 0 tid 0 td 0xc0df57f0
_mtx_assert(f000fea5,4,c0ca03dd,240,0,...) at _mtx_assert+0x53
alloc_unrl(0,4,c0c8fa0e,202,c7952000,...) at alloc_unrl+0x2f
devfs_create(c7952000,40,20,c1bb1a3a,c1c20d60,...) at devfs_create+0x42
make_dev_credv(0,0,5,1a4,c1bb1a3a,...) at make_dev_credv+0x103
make_dev(c1bb2000,0,0,5,1a4,...) at make_dev+0x43
v4b_init(0,1c1ec00,1c1ec00,1c1e000,1c25000,...) at v4b_init+0x7b
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
db>
It was to early in the bootstrap process to get a core dump (call doadump).
i.e. "no dumpdev available" message.
-Alex
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 14
Date: Wed, 20 Jan 2010 10:13:07 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: multimedia/libv4l/ (video4bsd.ko) -> Fatal trap 12: page
fault while in kernel mode [SEC=UNCLASSIFIED]
To: freebsd...@freebsd.org
Cc: freeb...@freebsd.org
Message-ID: <201001201013....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Wednesday 20 January 2010 09:37:26 Wilkinson, Alex wrote:
> The following ports initially installed and worked fine:
>
> multimedia/libv4l
> multimedia/webcamd
> multimedia/pwcview
>
> however, after a reboot video4bsd.ko panic'd my machine and i was unable to
> boot. I had to use the LiveFS to rescue the box. Here is the bt from DDB:
>
This issue is fixed. Just update the ports.
--HPS
------------------------------
Message: 15
Date: Wed, 20 Jan 2010 10:14:31 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4)
To: freeb...@freebsd.org
Cc: freebsd-gn...@freebsd.org, robert <rob...@blacquiere.nl>
Message-ID: <201001201014....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-15"
On Tuesday 19 January 2010 21:52:08 robert wrote:
> >Number: 142989
> >Category: usb
> >Synopsis: canon eos 50D attaches but detaches after few seconds (1 -
> > 4) 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: Tue Jan 19 21:00:20 UTC 2010
> >Closed-Date:
> >Last-Modified:
> >Originator: robert
> >Release: FreeBSD 8.0
> >Organization:
> >Environment:
>
> FreeBSD x300.blacquiere.local 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
>
> >Description:
>
> Canon EOS 50D dslr connected to usb ports attaches but detaches after few
> seconds, between 1 and 4 seconds.
>
> ugen6.2: <Canon Inc.> at usbus6
> ugen6.2: <Canon Inc.> at usbus6 (disconnected)
>
> usbconfig list does not show any Canon device any more.
>
> >How-To-Repeat:
>
> attach canon eos 50D firmware version 1.07 with usb on freebsd 8.0 laptop.
>
> >Fix:
> >
> >
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
Can you try with an 9-current kernel?
--HPS
------------------------------
Message: 16
Date: Wed, 20 Jan 2010 09:20:02 GMT
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4)
To: freeb...@FreeBSD.org
Message-ID: <201001200920....@freefall.freebsd.org>
The following reply was made to PR usb/142989; it has been noted by GNATS.
From: Hans Petter Selasky <hsel...@c2i.net>
To: freeb...@freebsd.org
Cc: robert <rob...@blacquiere.nl>,
freebsd-gn...@freebsd.org
Subject: Re: usb/142989: canon eos 50D attaches but detaches after few seconds (1 - 4)
Date: Wed, 20 Jan 2010 10:14:31 +0100
On Tuesday 19 January 2010 21:52:08 robert wrote:
> >Number: 142989
> >Category: usb
> >Synopsis: canon eos 50D attaches but detaches after few seconds (1 -
> > 4) 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: Tue Jan 19 21:00:20 UTC 2010
> >Closed-Date:
> >Last-Modified:
> >Originator: robert
> >Release: FreeBSD 8.0
> >Organization:
> >Environment:
>
> FreeBSD x300.blacquiere.local 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
>
> >Description:
>
> Canon EOS 50D dslr connected to usb ports attaches but detaches after few
> seconds, between 1 and 4 seconds.
>
> ugen6.2: <Canon Inc.> at usbus6
> ugen6.2: <Canon Inc.> at usbus6 (disconnected)
>
> usbconfig list does not show any Canon device any more.
>
> >How-To-Repeat:
>
> attach canon eos 50D firmware version 1.07 with usb on freebsd 8.0 laptop.
>
> >Fix:
> >
> >
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
Can you try with an 9-current kernel?
--HPS
------------------------------
Message: 17
Date: Wed, 20 Jan 2010 10:23:37 +0100
From: Robert Blacquiere <rob...@blacquiere.nl>
Subject: Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4)
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebsd-gn...@freebsd.org, freeb...@freebsd.org
Message-ID: <20100120092...@macmini.blacquiere.nl>
Content-Type: text/plain; charset=us-ascii
On Wed, Jan 20, 2010 at 10:14:31AM +0100, Hans Petter Selasky wrote:
> On Tuesday 19 January 2010 21:52:08 robert wrote:
> > >Number: 142989
> > >Category: usb
> > >Synopsis: canon eos 50D attaches but detaches after few seconds (1 -
> > > 4) Confidential: no
<snip>
> >
> > FreeBSD x300.blacquiere.local 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
> >
> > >Description:
> >
> > Canon EOS 50D dslr connected to usb ports attaches but detaches after few
> > seconds, between 1 and 4 seconds.
> >
> > ugen6.2: <Canon Inc.> at usbus6
> > ugen6.2: <Canon Inc.> at usbus6 (disconnected)
> >
> > usbconfig list does not show any Canon device any more.
> >
> > >How-To-Repeat:
> >
> > attach canon eos 50D firmware version 1.07 with usb on freebsd 8.0 laptop.
> >
> > >Fix:
> > >
> > >
> > >Release-Note:
> > >Audit-Trail:
> > >Unformatted:
> >
>
> Can you try with an 9-current kernel?
>
> --HPS
I will try this later this week. Maybe tomorrow time allowing.
Regards
Robert Blacquiere
------------------------------
Message: 18
Date: Wed, 20 Jan 2010 10:10:09 GMT
From: Robert Blacquiere <rob...@blacquiere.nl>
Subject: Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4)
To: freeb...@FreeBSD.org
Message-ID: <201001201010....@freefall.freebsd.org>
The following reply was made to PR usb/142989; it has been noted by GNATS.
From: Robert Blacquiere <rob...@blacquiere.nl>
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freeb...@freebsd.org, freebsd-gn...@freebsd.org
Subject: Re: usb/142989: canon eos 50D attaches but detaches after few
seconds (1 - 4)
Date: Wed, 20 Jan 2010 10:23:37 +0100
On Wed, Jan 20, 2010 at 10:14:31AM +0100, Hans Petter Selasky wrote:
> On Tuesday 19 January 2010 21:52:08 robert wrote:
> > >Number: 142989
> > >Category: usb
> > >Synopsis: canon eos 50D attaches but detaches after few seconds (1 -
> > > 4) Confidential: no
<snip>
> >
> > FreeBSD x300.blacquiere.local 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
> >
> > >Description:
> >
> > Canon EOS 50D dslr connected to usb ports attaches but detaches after few
> > seconds, between 1 and 4 seconds.
> >
> > ugen6.2: <Canon Inc.> at usbus6
> > ugen6.2: <Canon Inc.> at usbus6 (disconnected)
> >
> > usbconfig list does not show any Canon device any more.
> >
> > >How-To-Repeat:
> >
> > attach canon eos 50D firmware version 1.07 with usb on freebsd 8.0 laptop.
> >
> > >Fix:
> > >
> > >
> > >Release-Note:
> > >Audit-Trail:
> > >Unformatted:
> >
>
> Can you try with an 9-current kernel?
>
> --HPS
I will try this later this week. Maybe tomorrow time allowing.
Regards
Robert Blacquiere
------------------------------
Message: 19
Date: Wed, 20 Jan 2010 16:38:46 +0100
From: Torfinn Ingolfsen <torfinn....@broadpark.no>
Subject: Re: SANE vs USB scanner on 8.0
To: freeb...@FreeBSD.org
Message-ID: <20100120163846.34238...@broadpark.no>
Content-Type: text/plain; charset=US-ASCII
On Tue, 12 Jan 2010 22:20:35 +0100
Torfinn Ingolfsen <torfinn....@broadpark.no> wrote:
> Hmm, werer do I find documentation on libusb as implemted in FreeBSD
> 8.0? The docs at linusb.sf.net talks a lot of data types, etc. nut
> doeen't mention how "device names" (for lack of a better description)
> is supposed to work.
> is libusb on FreeBSD 8 supposed to work with "libusb:2:2" format
> descriptors?
Nobody knows?
--
Regards,
Torfinn Ingolfsen
------------------------------
Message: 20
Date: Wed, 20 Jan 2010 16:50:24 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: SANE vs USB scanner on 8.0
To: freeb...@freebsd.org
Message-ID: <201001201650....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Wednesday 20 January 2010 16:38:46 Torfinn Ingolfsen wrote:
> On Tue, 12 Jan 2010 22:20:35 +0100
>
> Torfinn Ingolfsen <torfinn....@broadpark.no> wrote:
> > Hmm, werer do I find documentation on libusb as implemted in FreeBSD
> > 8.0? The docs at linusb.sf.net talks a lot of data types, etc. nut
> > doeen't mention how "device names" (for lack of a better description)
> > is supposed to work.
> > is libusb on FreeBSD 8 supposed to work with "libusb:2:2" format
> > descriptors?
>
> Nobody knows?
>
Hi,
The FreeBSD LibUSB should be feature compliant with libusb from sourceforge.
--HPS
------------------------------
Message: 21
Date: Wed, 20 Jan 2010 18:51:50 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freeb...@freebsd.org
Cc: freebsd...@freebsd.org
Message-ID: <201001201851....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Wednesday 20 January 2010 07:46:20 Wilkinson, Alex wrote:
> And works dam well.
>
Thanks.
> What apps could i expect this to work with in the future ? skype ?
Basically all V4L appllications.
--HPS
------------------------------
Message: 22
Date: Wed, 20 Jan 2010 18:56:34 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Henry Hu <henry...@gmail.com>
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID: <201001201856....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
Hi,
On Tuesday 19 January 2010 18:33:14 Henry Hu wrote:
> There are some problems, however. First, when I start pwcview with an
> unsupported mode, the content of the window is green, and I cannot
> kill the process. Only after terminating webcamd can I terminate the
> process.
I know what the problem is, and I will try to fix it in the next release of
webcamd.
> Second, I cannot restart pwcview without restarting webcamd. At the
> second time I start pwcview with -s vga, the window is green, and I
> cannot kill it. The situation is similar to unsupported size.
>
> I've also tried applications such as pidgin, skype and mplayer.
> However no one successfully played from the webcam. I doubt it needs
> some extra work.
You need to recompile these applications after installing libv4l. I have vlc
working with the new stuff.
>
> Thanks again for the great work! It never caused any kernel panic, and
> the programs are fairly stable.
Thanks!
--HPS
------------------------------
Message: 23
Date: Wed, 20 Jan 2010 18:59:30 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: vo...@fbsd.ru
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID: <201001201859....@c2i.net>
Content-Type: Text/Plain; charset="koi8-r"
On Tuesday 19 January 2010 21:12:32 Vladimir Grebenschikov wrote:
> Hi
>
> I've tested with recent ports.
>
> pwcview works fine, both vga and sif
>
> but skype still sees /dev/video0 but fails to play anything from it,
> multimedia/cheese even does not sees webcam.
>
> Is it supposed, or I am so unlucky ?
Yes it is supposed to work, but you maybe need to tweak/rebuild the gstreamer
V4L2 code.
--HPS
------------------------------
Message: 24
Date: Thu, 21 Jan 2010 08:51:12 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: Re: multimedia/libv4l/ (video4bsd.ko) -> Fatal trap 12: page
fault while in kernel mode [SEC=UNCLASSIFIED]
To: freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <20100121005...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
0n Wed, Jan 20, 2010 at 10:13:07AM +0100, Hans Petter Selasky wrote:
>On Wednesday 20 January 2010 09:37:26 Wilkinson, Alex wrote:
>> The following ports initially installed and worked fine:
>>
>> multimedia/libv4l
>> multimedia/webcamd
>> multimedia/pwcview
>>
>> however, after a reboot video4bsd.ko panic'd my machine and i was unable to
>> boot. I had to use the LiveFS to rescue the box. Here is the bt from DDB:
>
>This issue is fixed. Just update the ports.
Ah, yep. Updating multimedia/video4bsd-kmod/ fixed this issue. Thanks!
-Alex
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 25
Date: Thu, 21 Jan 2010 10:42:57 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: libv4l2: error converting / decoding frame data: v4l-convert:
... [SEC=UNCLASSIFIED]
To: freebsd...@freebsd.org, freeb...@freebsd.org
Message-ID: <20100121024...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
[FreeBSD 9.0-CURRENT #1 r202680M: Thu Jan 21 09:35:32]
pwcview(1) is consistently crashing on me today with the following:
#sudo pwcview
Webcam set to: 320x240 (sif) at 5 fps
libv4l2: error converting / decoding frame data: v4l-convert: error parsing JPEG
header: Bogus jpeg format
Error reading from webcam: Input/output error
-Alex
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 26
Date: Thu, 21 Jan 2010 04:56:33 GMT
From: lin...@FreeBSD.org
Subject: Re: usb/143045: [umass] [patch] mounting Fujitsu 2600Z camera
doesn't work
To: lin...@FreeBSD.org, freebs...@FreeBSD.org,
freeb...@FreeBSD.org
Message-ID: <201001210456....@freefall.freebsd.org>
Old Synopsis: Fujitsu 2600Z camera mounting
New Synopsis: [umass] [patch] mounting Fujitsu 2600Z camera doesn't work
Responsible-Changed-From-To: freebsd-bugs->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Thu Jan 21 04:55:30 UTC 2010
Responsible-Changed-Why:
reclassify.
http://www.freebsd.org/cgi/query-pr.cgi?pr=143045
------------------------------
Message: 27
Date: Thu, 21 Jan 2010 13:26:04 +0100
From: "Ernst W. Winter" <ewi...@ewinter.org>
Subject: Re: libv4l2: error converting / decoding frame data:
v4l-convert: ... [SEC=UNCLASSIFIED]
To: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Cc: freeb...@freebsd.org
Message-ID: <2010012112...@lobo.ewinter.org>
Content-Type: text/plain; charset=us-ascii
On Thu, 21 Jan 2010, Wilkinson, Alex wrote:
>
> [FreeBSD 9.0-CURRENT #1 r202680M: Thu Jan 21 09:35:32]
>
> pwcview(1) is consistently crashing on me today with the following:
>
> #sudo pwcview
> Webcam set to: 320x240 (sif) at 5 fps
> libv4l2: error converting / decoding frame data: v4l-convert: error parsing JPEG
> header: Bogus jpeg format
> Error reading from webcam: Input/output error
>
> -Alex
>
Thanks for the tip, I just tried it and it works like a charm with
8.-STABLE, didn't even know it would work or existed. Using a ASUS
Laptop here M51Kseries.
If I can help or if there are any other quetsions let me know.
> IMPORTANT: This email remains the property of the Australian
> Defence Organisation and is subject to the jurisdiction of section
> 70 of the CRIMES ACT 1914. If you have received this email in
> error, you are requested to contact the sender and delete the
> email.
>
> _______________________________________________
> freeb...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb...@freebsd.org"
Ernst Winter
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Mail plain ASCII text. HTML & Base64 text are spam.
------------------------------
Message: 28
Date: Fri, 22 Jan 2010 12:57:50 +0800
From: "Wilkinson, Alex" <alex.wi...@dsto.defence.gov.au>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freeb...@freebsd.org, freebsd...@freebsd.org
Message-ID: <20100122045...@stlux503.dsto.defence.gov.au>
Content-Type: text/plain; charset="us-ascii"
0n Wed, Jan 20, 2010 at 02:46:20PM +0800, Wilkinson, Alex wrote:
> 0n Sun, Jan 10, 2010 at 02:37:37PM +0100, Hans Petter Selasky wrote:
>
> >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.
/usr/ports/multimedia/pwcview (PORTVERSION=1.4.1) crashes within 2-3mins of use with the following:
#sudo pwcview
Webcam set to: 320x240 (sif) at 5 fps
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4l2: error dequeuing buf: Device not configured
Error reading from webcam: Device not configured
I rebuilt /usr/ports/multimedia/pwcview with symbolls and got the following:
#sudo gdb pwcview 75557
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Attaching to program: /usr/local/bin/pwcview, process 75557
Reading symbols from /usr/local/lib/libSDL-1.2.so.11...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libSDL-1.2.so.11
Reading symbols from /usr/local/lib/libjpeg.so.10...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libjpeg.so.10
Reading symbols from /usr/local/lib/libv4l1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libv4l1.so.0
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
[New Thread 28601140 (LWP 100451)]
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/lib/libvgl.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvgl.so.6
Reading symbols from /usr/local/lib/libaa.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libaa.so.1
Reading symbols from /usr/local/lib/libncurses.so.5.7...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libncurses.so.5.7
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libX11.so.6
Reading symbols from /usr/local/lib/libxcb.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxcb.so.2
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/local/lib/libpthread-stubs.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libpthread-stubs.so.0
Reading symbols from /usr/lib/librpcsvc.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librpcsvc.so.5
Reading symbols from /usr/lib/libusbhid.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libusbhid.so.4
Reading symbols from /usr/local/lib/libv4l2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libv4l2.so.0
Reading symbols from /usr/local/lib/libtinfo.so.5.7...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libtinfo.so.5.7
Reading symbols from /usr/local/lib/libv4lconvert.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libv4lconvert.so.0
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXext.so.6
Reading symbols from /usr/local/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXrender.so.1
Reading symbols from /usr/local/lib/libXrandr.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXrandr.so.2
Reading symbols from /usr/local/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXcursor.so.1
Reading symbols from /usr/local/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXfixes.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
[Switching to Thread 28601140 (LWP 100451)]
0x281958bf in syscall () from /lib/libc.so.7
(gdb) b exit
Breakpoint 1 at 0x281bd974
(gdb) cont
Continuing.
Breakpoint 1, 0x281bd974 in exit () from /lib/libc.so.7
(gdb) bt
#0 0x281bd974 in exit () from /lib/libc.so.7
#1 0x080494cf in ?? ()
#2 0x00000000 in ?? ()
#3 0xbfbfec64 in ?? ()
#4 0xbfbfec6c in ?? ()
#5 0xbfbfec50 in ?? ()
#6 0xbfbfec60 in ?? ()
#7 0x00000000 in ?? ()
#8 0xbfbfec5c in ?? ()
#9 0x08049435 in ?? ()
#10 0x28054f60 in dlclose () from /libexec/ld-elf.so.1
Previous frame inner to this frame (corrupt stack?)
(gdb)
(gdb) cont
Continuing.
Program exited normally.
(gdb)
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
------------------------------
Message: 29
Date: Fri, 22 Jan 2010 14:03:07 +0900
From: Daichi GOTO <dai...@freebsd.org>
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: <4B59318B...@freebsd.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Hans, I have checked your work, and it works well, great :)
This is a little tweak,
--- /usr/local/etc/devd/webcamd.conf.orig 2010-01-22 13:19:20.371987293
+0900
+++ /usr/local/etc/devd/webcamd.conf 2010-01-22 13:52:00.286912793 +0900
@@ -1,5 +1,5 @@
attach 100 {
- device-name "ugen[0-9]+";
+ device-name "ugen[0-9.]+";
match "intclass" "(0x0e|0xff)";
action "/usr/local/etc/rc.d/webcamd start $device-name";
};
I want to know what does "intclass" mean. The webcamd(8) cannot
been engaged automatically by devd(8), because of not match of
"intclass".
when webcam device attached, cosole output:
Jan 22 13:50:26 parancell daichi: Unknown USB device: vendor 0x046d
product 0x09a2 bus uhub7
Jan 22 13:50:26 parancell kernel: ugen7.2: <vendor 0x046d> at usbus7
% sudo usbconfig -d ugen7.2
ugen7.2: <product 0x09a2 vendor 0x046d> at usbus7, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON
%
On 2010/01/10 22:37, Hans Petter Selasky 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.
> _______________________________________________
> freebsd...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"
--
Daichi GOTO
81-42-316-7945 | dai...@ongs.co.jp | http://www.ongs.co.jp
LinkedIn: http://linkedin.com/in/daichigoto
------------------------------
Message: 30
Date: Fri, 22 Jan 2010 09:16:51 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
To: Daichi GOTO <dai...@freebsd.org>
Cc: freebsd-m...@freebsd.org, freebsd...@freebsd.org,
freeb...@freebsd.org
Message-ID: <201001220916....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Friday 22 January 2010 06:03:07 Daichi GOTO wrote:
> Hi Hans, I have checked your work, and it works well, great :)
>
> This is a little tweak,
>
> --- /usr/local/etc/devd/webcamd.conf.orig 2010-01-22 13:19:20.371987293
> +0900
> +++ /usr/local/etc/devd/webcamd.conf 2010-01-22 13:52:00.286912793 +0900
> @@ -1,5 +1,5 @@
> attach 100 {
> - device-name "ugen[0-9]+";
> + device-name "ugen[0-9.]+";
> match "intclass" "(0x0e|0xff)";
> action "/usr/local/etc/rc.d/webcamd start $device-name";
> };
>
>
> I want to know what does "intclass" mean. The webcamd(8) cannot
> been engaged automatically by devd(8), because of not match of
> "intclass".
Hi,
See:
usbconfig -u 7 -a 2 dump_curr_config_desc | grep -i class
To figure out what interface class your USB device is using.
--HPS
------------------------------
Message: 31
Date: Fri, 22 Jan 2010 09:21:19 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing
[SEC=UNCLASSIFIED]
To: freebsd...@freebsd.org
Cc: freeb...@freebsd.org
Message-ID: <201001220921....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Friday 22 January 2010 05:57:50 Wilkinson, Alex wrote:
> 0n Wed, Jan 20, 2010 at 02:46:20PM +0800, Wilkinson, Alex wrote:
> > 0n Sun, Jan 10, 2010 at 02:37:37PM +0100, Hans Petter Selasky
wrote:
> > >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.
>
> /usr/ports/multimedia/pwcview (PORTVERSION=1.4.1) crashes within 2-3mins of
> use with the following:
>
> #sudo pwcview
> Webcam set to: 320x240 (sif) at 5 fps
> libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more
> bits libv4l2: error dequeuing buf: Device not configured
> Error reading from webcam: Device not configured
>
> I rebuilt /usr/ports/multimedia/pwcview with symbolls and got the
> following:
>
Hi,
Maye that is a bug in /usr/ports/multimedia/libv4l which is external code,
where the printout comes from. Maybe the code should be more fault tolerant.
Try googling first.
Can you dump the USB descriptors of your device?
usbconfig -u X -a Y dump_device_desc dump_curr_config_desc
--HPS
------------------------------
End of freebsd-usb Digest, Vol 272, Issue 2
*******************************************