From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 28 12:09:20 2004 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 A746C16A4CF for ; Sun, 28 Mar 2004 12:09:20 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B45BB43D39 for ; Sun, 28 Mar 2004 12:09:19 -0800 (PST) (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) i2SK7nUS096605 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 28 Mar 2004 22:07:51 +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.10/8.12.10) with ESMTP id i2SK6vhn020159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 28 Mar 2004 22:06:58 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i2SK6vWL021961; Sun, 28 Mar 2004 22:06:57 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i2SK6vgA021960; Sun, 28 Mar 2004 22:06:57 +0200 (CEST) (envelope-from ticso) Date: Sun, 28 Mar 2004 22:06:57 +0200 From: Bernd Walter To: jitendra pande Message-ID: <20040328200656.GF19739@cicely12.cicely.de> References: <20040328105156.82902.qmail@web42003.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040328105156.82902.qmail@web42003.mail.yahoo.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.2 required=3.0 tests=BAYES_00,PLING_PLING autolearn=no version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.7 PLING_PLING Subject has lots of exclamation marks X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: Problem with usb in FreeBSD 4.8....help!!! 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: Sun, 28 Mar 2004 20:09:20 -0000 On Sun, Mar 28, 2004 at 02:51:56AM -0800, jitendra pande wrote: > Hi, > > I have stuck with a problem with usb devices. > > In case of FreeBSD 4.8, whenever a new USB device is attached to the system, no device node is dynamically being created within the dev file system. > > This is in contrast to the behavior there with FreeBSD 5.0 where a new device node is being created on attaching a new USB device, Fox example when first USB device is attached then /dev/ugen0 node is created dynamically in dev file system. when 2nd device is added then /dev/ugen1 and so on .....ugen2, ugen3....... > > On the other hand with freeBSD 4.8 there exist some static device node /dev/ugen0, /dev/ugen0.x where x =1-16 within the /dev file system. > > My application uses libusb for iinteracting with the usb devices...libusb on freeBSD 4.8 tries to find /debv/ugen0, /dev/ugen1 and so on....hence couldn't able to detect more then one device. > > It would really be great if someone can help me in resolving the issue Any idea why this changes in the behavior with FreeBSD 4.8 and FreeBSD 5.0 You are expected to create devnodes manualy in 4.x. /dev/MAKEDEV script will help you. See MAKEDEV manpage for details or read the handbook. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de