From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 06:21:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25F5516A4CE for ; Tue, 24 Feb 2004 06:21:24 -0800 (PST) Received: from mail.sci.brooklyn.cuny.edu (mail.sci.brooklyn.cuny.edu [146.245.250.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B3AB43D1D for ; Tue, 24 Feb 2004 06:21:23 -0800 (PST) (envelope-from dayton@brooklyn.cuny.edu) Received: (from root@localhost)i1OEDGSW005579 for ; Tue, 24 Feb 2004 09:13:16 -0500 Received: from hurt.theclones.net (w244.z064002068.nyc-ny.dsl.cnc.net [64.2.68.244])i1OEDDtU005492 for ; Tue, 24 Feb 2004 09:13:14 -0500 Received: from hurt.theclones.net (localhost [127.0.0.1]) by hurt.theclones.net (Postfix) with ESMTP id 4301B16A8 for ; Tue, 24 Feb 2004 09:21:17 -0500 (EST) Date: Tue, 24 Feb 2004 09:21:17 -0500 Message-ID: From: dayton@brooklyn.cuny.edu To: freebsd-questions@freebsd.org User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.4 (Hosorogi) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Subject: FBSD 5.1R usb probe order X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 14:21:24 -0000 Folks, I'm running Release 5.1 on an IBM Xseries 220. I've recently attached a HP psc 2175 printer/scanner which includes photo memory card slots. It connects via usb. As you can see at the tail of the dmesg output below that when the printer is powered on the usb driver sets up ulpt0 and da1. The da1 is setup to handle the photo memory cards. The problem is that if the printer is plugged in and turned on at boot time the driver assigns da0 to the umass device which is where the kernel expects to find my root file system. So, the system hangs. I see three possible methods to work around this: 1) Remove usb from the kernel and load usb.ko after the system has booted. 2) Somehow change the order of device probes by the kernel so that the kernel probes for scsi devices before usb devices. 3) Specify somehow via device.hints that the usb driver should assign da1 to the umass device I'm suspect that #1 will work (I haven't tried it yet) but I'm interested in #2 & #3. I haven't found an answer in the documentation. Is there a (not too convoluted) way to change the boot time probe sequence? Can device hints assign device numbers either in general or specifically for umass devices? thanks dayton PS. There doesn't appear to be a way to disable the memory card ports on the printer. Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC Preloaded elf kernel "/boot/kernel/kernel" at 0xc0689000. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 932892131 Hz CPU: Intel Pentium III (932.89-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383fbff real memory = 134139904 (127 MB) avail memory = 123236352 (117 MB) Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 pcib0: at pcibus 0 on motherboard pci0: on pcib0 pci0: at device 1.0 (no driver attached) fxp0: port 0x2000-0x203f mem 0xfea00000-0xfeafffff,0xfeb7f000-0xfeb7ffff irq 11 at device 2.0 on pci0 fxp0: Ethernet address 00:02:55:6d:12:f4 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: port 0x440-0x44f at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x700-0x70f at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci0: mem 0xfeb7e000-0xfeb7efff irq 10 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered pcib1: at pcibus 1 on motherboard pci1: on pcib1 ahc0: port 0x2100-0x21ff mem 0xeffff000-0xefffffff irq 9 at device 3.0 on pci1 aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs orm0: