FBSD 5.1R usb probe order

dayton at brooklyn.cuny.edu dayton at brooklyn.cuny.edu
Tue Feb 24 06:21:24 PST 2004


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 at 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134139904 (127 MB)
avail memory = 123236352 (117 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
pcib0: <ServerWorks NB6635 3.0LE host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <display, VGA> at device 1.0 (no driver attached)
fxp0: <Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet> 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: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> port 0x440-0x44f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks ROSB4 UDMA33 controller> port 0x700-0x70f at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ohci0: <OHCI (generic) USB controller> mem 0xfeb7e000-0xfeb7efff irq 10 at device 15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> 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: <ServerWorks NB6635 3.0LE host to PCI bridge> at pcibus 1 on motherboard
pci1: <PCI bus> on pcib1
ahc0: <Adaptec aic7892 Ultra160 SCSI adapter> 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: <Option ROM> at iomem 0xc0000-0xc9fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: failed to get data.
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0303> can't assign resources (port)
Timecounters tick every 10.000 msec
acd0: CDROM <LG CD-ROM CRD-8484B> at ata0-master PIO4
Waiting 15 seconds for SCSI devices to settle
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM-ESXS ST318305LW    !# B244> Fixed Direct Access SCSI-3 device 
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 17357MB (35548320 512 byte sectors: 255H 63S/T 2212C)
Mounting root from ufs:/dev/da0s1a
usb0: 1 scheduling overruns
usb0: 1 scheduling overruns
usb0: 1 scheduling overruns
usb0: 1 scheduling overruns
usb0: 1 scheduling overruns
usb0: 1 scheduling overruns
usb0: 1 scheduling overruns
ulpt0: Hewlett-Packard PSC 2170 Series, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
umass0: Hewlett-Packard PSC 2170 Series, rev 2.00/1.00, addr 2
da1 at umass-sim0 bus 0 target 0 lun 0
da1: <HP psc 2175 1.00> Removable Direct Access SCSI-2 device 
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6



More information about the freebsd-questions mailing list