From owner-freebsd-usb@FreeBSD.ORG Tue May 17 09:19:53 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3B631065673 for ; Tue, 17 May 2011 09:19:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 28D618FC18 for ; Tue, 17 May 2011 09:19:52 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=EsGlCpMeIw85Gy1IHWHJoTo3ieATU4tNmYze/bSqBec= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=z-Xvt5ykEnYA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=gslHJRHT9D383ZftwssA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 127347010; Tue, 17 May 2011 11:19:51 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 17 May 2011 11:18:43 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: 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: <201105171118.43267.hselasky@c2i.net> Cc: Charles Sprickman Subject: Re: usb serial port device naming X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 09:19:53 -0000 On Tuesday 17 May 2011 09:00:00 Charles Sprickman wrote: > Hello, > > I recently started moving our console server from one box (4.11) to > another (8.1). The old box had some RocketPort PCI cards and a 16 port > USB to serial adapter. I moved the USB to serial device to the 8.1 box > and added another 8 port USB to serial adapter. > > I moved the 16 port box without a reboot, and then added the 8 port box. > I started setting up conserver (console server software) with the new > device names, and then decided perhaps a reboot to verify the device names > "stuck" across reboots was in order. Sure enough, on reboot the 8 port > device preceded the 16 port - meaning my /dev/ttyU0 moved from being the > first port on the 16 port box to being the first port on the 8 port box. > > Is there anything I can do to "lock" these port assignments? I suspect > that on a reboot the order will stay the same, but if someone flips the > ports around or unplugs either of these while the box is up all my console > mappings will get scrambled. > > Thanks, > > Charles Hi, If you run 8-stable, there is some information you can lookup via sysctls of the USB devices, which tells you which port belongs to which device. Use the serial number to identify your device, if your device has such a value. usbconfig -d X.Y dump_device_desc --HPS