From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 09:06:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33B4337B404 for ; Fri, 8 Aug 2003 09:06:20 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81B2643FBD for ; Fri, 8 Aug 2003 09:06:18 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h78G69aK034123 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 8 Aug 2003 18:06:15 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h78G67A4024768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2003 18:06:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h78G67NS046937; Fri, 8 Aug 2003 18:06:07 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h78G67cX046936; Fri, 8 Aug 2003 18:06:07 +0200 (CEST) Date: Fri, 8 Aug 2003 18:06:07 +0200 From: Bernd Walter To: Paulo Roberto Message-ID: <20030808160606.GA46866@cicely12.cicely.de> References: <20030808145626.80036.qmail@web14914.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030808145626.80036.qmail@web14914.mail.yahoo.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: porting a webcam X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2003 16:06:20 -0000 On Fri, Aug 08, 2003 at 07:56:26AM -0700, Paulo Roberto wrote: > Hello, > > I am about to code my first kmod. I am trying to port an usb camera to > FreeBSD, and since I am new at system development, I hope you don't > mind helping me out. If this is not the correct list I should post, > please point me what list I should post to. > > I got a few questions: > > * Does the 5 series differs too much to from the 4-stable to write a > device driver? I am planning to code for 4.8 (the one I am using now) > and I wonder how hard would it be to port it later to the 5 series. > > * I am reading the developers handbook, is there another good reference > recommended? Any good point of reference for usb/camera > protocols/device drivers? > > * You guys think it is too difficult and I should just give up due to > my lack of experience? And if I manage to code properly, is it too > bureaucratic to get it into the FreeBSD kernel? I wouldn't write a kernel driver for a camera and use ugen(4) instead. The state of ugen is similar in 4.x and 5.x so you don't have to worry about a special version. The most important part is getting informations about the protocol used by your camera. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de