From owner-freebsd-multimedia@FreeBSD.ORG Sat Jun 25 07:56:19 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE3B1106567A for ; Sat, 25 Jun 2011 07:56:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6AC1D8FC13 for ; Sat, 25 Jun 2011 07:56:18 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=XR4AdwVFe5G+K9PtySS1/JOnv6WK/hruile8wX/SUjk= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=ZCEOgVCbajUA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=xq3W2uTSAAAA:8 a=w6RbqzLyAAAA:20 a=OdR5sfXFAAAA:8 a=xQRd8kfCxtXgzuJFEkAA:9 a=hApECULoFfg-ZDU9aN0A:7 a=wPNLvfGTeEIA:10 a=K3ocPEHWFzcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 143916154; Sat, 25 Jun 2011 09:56:17 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Sat, 25 Jun 2011 09:54:36 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20110625024444.8278a724.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20110625024444.8278a724.torfinn.ingolfsen@broadpark.no> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106250954.36809.hselasky@c2i.net> Cc: Subject: Re: webcamd - how does one get new drivers into it? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 07:56:19 -0000 On Saturday 25 June 2011 02:44:44 Torfinn Ingolfsen wrote: > I got a new device, a PCTV nanoStick T2[1]. More info here[2]. > I tried using webcamd with it: > root@kg-v2# uname -a > FreeBSD kg-v2.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #3: Thu Sep 16 22:18:48 > CEST 2010 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 > root@kg-v2# portversion -v | grep webcamd > webcamd-0.1.26 = up-to-date with port > root@kg-v2# portversion -v | grep cuse > cuse4bsd-kmod-0.1.14 = up-to-date with port > root@kg-v2# kldstat | grep cuse > 11 1 0xffffffff81052000 30a6 cuse4bsd.ko > root@kg-v2# usbconfig -u 3 -a 2 > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON root@kg-v2# webcamd -d ugen3.2 -i 0 -v 0 > Cannot find USB device > > So how does one get new drivers into webcamd? > Is therer a porting guide or some documentation? > > References: > 1) http://linuxtv.org/wiki/index.php/Pinnacle_PCTV_nanoStick_T2_%28290e%29 > 2) http://sites.google.com/site/tingox/pctv_nanostick_t2_freebsd Hi, svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/ports svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux/tools/linux_make 0) Build and install linux_make tool. cd linux_make make all install clean 1) cd ports/multimedia/webcamd # from my SVN make extract patch 2) Patch in new driver in work/*webcamd*/media_tree Make sure all Linux Makefiles/KBuild are updated properly. 3) Add new CONFIG_XXXX entries to work/*webcamd*/config 4) Run make configure 5) Run make -j2 all Resolve any breakage. --HPS