From owner-freebsd-usb@freebsd.org Wed Aug 5 11:43:05 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 067DF9B3A27 for ; Wed, 5 Aug 2015 11:43:05 +0000 (UTC) (envelope-from tom.lislegaard@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA145139 for ; Wed, 5 Aug 2015 11:43:04 +0000 (UTC) (envelope-from tom.lislegaard@gmail.com) Received: by igk11 with SMTP id 11so112364163igk.1 for ; Wed, 05 Aug 2015 04:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=1IM98kyMWEv7pptYYQ4B8DUUNtqzgrcTflIJ+w8Jyy8=; b=biPmVoAdrkHSYUza4iePIMlcQsT7vQl8dDo1q1k7N+vly239Y69W76mDWw2kV5CDfI kfkBPnrwjh31DbEfGBCshI0HeukFHf6Ki2A/rhhROuzNBYHWDjLw5a4Av3bJSr9d/4Ks mQs5yUyK7cXbv+QiaD68XK1OMQHuYmHz9WHdATBRHQTRPCbgfiGxf1aYP87EdnZYcoHd cX22xU/MgMjB3s4Gm/5B116r+8OEJcEifjNpT/7JleFMpu+xlErVlQETd1LRhHr4xfzZ U2VDEDcRLaNJgZ0Ozh/zF7HjXlJZDbYwQxqVTuIo80ek5IUQTuizA0U6bWjxzwivhc6C H4Iw== MIME-Version: 1.0 X-Received: by 10.50.62.243 with SMTP id b19mr10056060igs.88.1438774984065; Wed, 05 Aug 2015 04:43:04 -0700 (PDT) Sender: tom.lislegaard@gmail.com Received: by 10.107.10.164 with HTTP; Wed, 5 Aug 2015 04:43:04 -0700 (PDT) In-Reply-To: <55B73178.20005@selasky.org> References: <55AAC427.7090505@selasky.org> <55ACAA70.7010909@selasky.org> <55B73178.20005@selasky.org> Date: Wed, 5 Aug 2015 13:43:04 +0200 X-Google-Sender-Auth: bTMpd42psTVydqky6mOr8DIAoTs Message-ID: Subject: Re: Logitech C525 webcam won't work on Raspberry PI2 From: Tom Lislegaard To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 11:43:05 -0000 On Tue, Jul 28, 2015 at 9:38 AM, Hans Petter Selasky wrote: > On 07/20/15 11:29, Tom Lislegaard wrote: >> >> On Mon, Jul 20, 2015 at 9:59 AM, Hans Petter Selasky >> wrote: >>> >>> Hi, >>> >>> On 07/20/15 01:41, Tom Lislegaard wrote: >>>> >>>> >>>> Is this a current model? >>>> I may look at an alternative to the C525, but unfortunately the E3500 >>>> is truly a piece of crap and inadequate for my intended use. My >>>> requirement is reasonable quality stills, streaming video is not >>>> important. >>> >>> >>> >>> Do you have an USB analyzer which can record the USB traffic? Else if it >>> is >>> important to you, maybe you can ship me such a webcam and I can analyze >>> it >>> for you? >>> >>> --HPS >> >> >> I have no analyzer - and nowhere near the knowledge to use one :-) >> >> If you PM me your address I'll take you up on the offer to check it out. >> >> thanks >> -tom >> > > Hi, > > Can you try this: > > https://svnweb.freebsd.org/changeset/base/285935 > > --HPS With the patch the camera is detected correctly, and webcamd starts and creates the /dev/video0 device. root@rpi2:~ # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (2mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) ugen0.4: <11n Adapter D-Link> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA) ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) root@rpi2:~ # pgrep -lf webcamd 28483 /usr/local/sbin/webcamd -i 0 -d ugen0.5 -B -U webcamd -G webcamd -H I still can't read anything off the camera though with pwcview root@rpi2:~ # pwcview -h -c 1 -d /dev/video0 -o x.jpg Webcam set to: 320x240 (sif) at 5 fps libv4l2: error turning on stream: Device not configured libv4l2: error reading: Invalid argument Error reading from webcam: Invalid argument Am I overlooking something obvious? -tom