From owner-freebsd-current@FreeBSD.ORG Fri Jan 22 08:22:47 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1D0D1065698; Fri, 22 Jan 2010 08:22:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.tele2.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 035AE8FC14; Fri, 22 Jan 2010 08:22:46 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=9zKBo0zsyzYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=2UwofreFRcBtx4jehzgA:9 a=6Q9vSM1yiG_MHxnB6qwA:7 a=xikmeNiRoirvha36V6SIMZGC_WcA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 979686147; Fri, 22 Jan 2010 09:22:44 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 22 Jan 2010 09:21:19 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> <20100120064620.GJ46479@stlux503.dsto.defence.gov.au> <20100122045750.GF56085@stlux503.dsto.defence.gov.au> In-Reply-To: <20100122045750.GF56085@stlux503.dsto.defence.gov.au> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001220921.19252.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org, "Wilkinson, Alex" Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing [SEC=UNCLASSIFIED] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 08:22:47 -0000 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