From owner-freebsd-drivers@FreeBSD.ORG Thu Apr 3 16:40:42 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0761065676; Thu, 3 Apr 2008 16:40:42 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from parsely.rain.com (parsely.rain.com [199.26.172.196]) by mx1.freebsd.org (Postfix) with ESMTP id C1DC08FC16; Thu, 3 Apr 2008 16:40:26 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by parsely.rain.com (8.11.4/8.11.4) with UUCP id m33GeNA38620; Thu, 3 Apr 2008 09:40:23 -0700 (PDT) (envelope-from freebsd@sopwith.solgatos.com) Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id QAA02025; Thu, 3 Apr 2008 16:38:27 GMT Message-Id: <200804031638.QAA02025@sopwith.solgatos.com> To: freebsd-drivers@freebsd.org, freebsd-questions@freebsd.org Date: Thu, 03 Apr 2008 09:38:27 +0100 From: Dieter Cc: Subject: trying atausb instead of umass, part 2 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 16:40:42 -0000 [ no replies from -drivers, so added -questions ] > FreeBSD 7.0 amd64 > > Deleted device umass and added atausb instead. > > The bridge shows up, but the disk does not. (sata hard drive, > not a CD/DVD drive) > atausb0: on uhub1 > > The kernel moved the chipset-connected SATA drives from ad4,6,8,10 to ad6,8,10,12 > despite: > options ATA_STATIC_ID # Static device numbering > > Should I expect the USB disk to show up as ad* or is there some > other device name I need to add to the config file? Is there > anything else I need to change in the config file besides comment > out umass and add atausb? > > How do I get (non-USB) device names to really stay put? It looks like the device numbers moved because the controller numbers moved. # dmesg | grep atausb atausb0: on uhub1 atausb0: using SCSI over Bulk-Only ata2: on atausb0 without atausb: ata2: on atapci1 In NetBSD, I can lock things down with: sd0 at scsibus0 target 0 lun 0 sd1 at scsibus0 target 1 lun 0 sd2 at scsibus0 target 2 lun 0 sd3 at scsibus0 target 3 lun 0 atabus0 at satalink0 atabus1 at satalink0 wd0 at atabus0 drive 0 flags 0x0000 wd1 at atabus1 drive 0 flags 0x0000 but FreeBSD's config doesn't accept this, or perhaps I haven't found the correct syntax. I haven't found anything like this in FreeBSD's config documentation. Is there something like options ATA_STATIC_ID # Static device numbering to lock down controller numbers? ----- # dmesg | grep ata2 ata2: on atausb0 So the drive isn't getting attached.