USB on 4.11
Olivier Nicole
on at cs.ait.ac.th
Fri May 11 06:14:07 UTC 2007
Hi,
I am trying to enable USB on FreeBSD 4.11.
If I boot the GENERIC kernel, my USB drive is recognized.
If I boot my customized kernel, the drive is not present.
in the customized kernel I have:
# SCSI peripherals
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device pass # Passthrough device (direct SCSI access)
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device umass # Disks/Mass storage - Requires scbus and da
which seems to be enough.
usbd is enabled in rc.conf.
When I boot GENERIC and plug in the USB disk:
amanda<root>47: usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), (0x1166)(0x0000), rev 1.00
port 1 powered
port 2 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), Genesys Logic(0x05e3), rev 0.02
port 3 powered
port 4 powered
amanda<root>48: camcontrol devlist -v
scbus0 on sym0 bus 0:
<SEAGATE ST318436LW 0010> at scbus0 target 0 lun 0 (pass0,da0)
<SEAGATE ST318436LW 0010> at scbus0 target 1 lun 0 (pass1,da1)
<SEAGATE ST318436LW 0010> at scbus0 target 2 lun 0 (pass2,da2)
<SEAGATE ST318436LW 0010> at scbus0 target 3 lun 0 (pass3,da3)
< > at scbus0 target -1 lun -1 ()
scbus1 on sym1 bus 0:
<TANDBERG SLR100 0402> at scbus1 target 2 lun 0 (pass4,sa0)
< > at scbus1 target -1 lun -1 ()
scbus2 on umass-sim0 bus 0:
<ST380011 A 0811> at scbus2 target 0 lun 0 (da4,pass5)
scbus-1 on xpt0 bus 0:
< > at scbus-1 target -1 lun -1 (xpt0)
This is the boot with GENERIC (note it is 4.10)
Copyright (c) 1992-2004 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 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004
root at perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz
CPU: Intel Pentium III (800.03-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x686 Stepping = 6
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory = 402632704 (393196K bytes)
avail memory = 386019328 (376972K bytes)
Preloaded elf kernel "kernel.GENERIC" at 0xc0551000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00f1010
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xd800-0xd83f mem 0xfd800000-0xfd8fffff,0xfe000000-0xfe000fff irq 10 at device 2.0 on pci0
fxp0: Ethernet address 00:e0:18:0a:97:a6
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 0xd400-0xd43f mem 0xfc800000-0xfc81ffff,0xfd000000-0xfd01ffff irq 11 at device 5.0 on pci0
em0: Speed:N/A Duplex:N/A
pci0: <ATI Mach64-GR graphics accelerator> at 7.0
isab0: <ServerWorks IB6566 PCI to ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks ROSB4 ATA33 controller> port 0xb800-0xb80f 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 0xfa000000-0xfa000fff irq 7 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
uhub0: device problem, disabling port 2
pcib1: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci1: <PCI bus> on pcib1
sym0: <896> port 0xb400-0xb4ff mem 0xf9000000-0xf9001fff,0xf9800000-0xf98003ff irq 4 at device 5.0 on pci1
sym0: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym1: <896> port 0xb000-0xb0ff mem 0xf8000000-0xf8001fff,0xf8800000-0xf88003ff irq 3 at device 5.1 on pci1
sym1: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: handling phase mismatch from SCRIPTS.
orm0: <Option ROMs> at iomem 0xc0000-0xca7ff,0xd0000-0xd17ff,0xd4000-0xd7fff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 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 IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: parallel port not found.
acd0: CDROM <QSI CD-ROM SCR-242> at ata0-master PIO4
Waiting 15 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
(noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
sa0 at sym1 bus 0 target 2 lun 0
sa0: <TANDBERG SLR100 0402> Removable Sequential Access SCSI-2 device
sa0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da0 at sym0 bus 0 target 0 lun 0
da0: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da3 at sym0 bus 0 target 3 lun 0
da3: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da3: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da3: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da2 at sym0 bus 0 target 2 lun 0
da2: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da2: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da1 at sym0 bus 0 target 1 lun 0
da1: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
em0: Link is up 1000 Mbps Full Duplex
** The USB is not properly detectec if plugged in while booting
uhub0: device problem, disabling port 2
** Unplug and replug USB disk and everything is fine.
umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
da4 at umass-sim0 bus 0 target 0 lun 0
da4: <ST380011 A 0811> Fixed Direct Access SCSI-0 device
da4: 650KB/s transfers
da4: 76319MB (156301488 512 byte sectors: 64H 32S/T 10783C)
This is the boot with trimed down kernel (note this is 4.11-p21)
ACPI debug layer 0x0 debug level 0x0
Copyright (c) 1992-2005 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 4.11-RELEASE-p21 #3: Thu May 10 15:55:28 ICT 2007
root at amanda.cs.ait.ac.th:/usr/src/sys/compile/SMALL
Timecounter "i8254" frequency 1193182 Hz
CPU: Intel Pentium III (800.03-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x686 Stepping = 6
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory = 402632704 (393196K bytes)
avail memory = 387461120 (378380K bytes)
Changing APIC ID for IO APIC #1 from 3 to 1 in MP table
Changing APIC ID for IO APIC #1 from 3 to 1 on chip
Programming 16 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 16 pins in IOAPIC #1
FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs
cpu0 (BSP): apic id: 3, version: 0x00040011, at 0xfee00000
cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000
io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000
io1 (APIC): apic id: 1, version: 0x000f0011, at 0xfec01000
Preloaded elf kernel "kernel" at 0xc03ec000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00f1010
acpi0: <ASUS CUR-DLS > on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe" frequency 3579545 Hz
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_timer0: <32-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
IOAPIC #1 intpin 4 -> irq 2
IOAPIC #1 intpin 2 -> irq 3
IOAPIC #1 intpin 14 -> irq 4
pci0: <PCI bus> on pcib0
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xd800-0xd83f mem 0xfd800000-0xfd8fffff,0xfe000000-0xfe000fff irq 2 at device 2.0 on pci0
fxp0: Ethernet address 00:e0:18:0a:97:a6
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.42> port 0xd400-0xd43f mem 0xfc800000-0xfc81ffff,0xfd000000-0xfd01ffff irq 3 at device 5.0 on pci0
em0: Speed:N/A Duplex:N/A
pci0: <ATI Mach64-GR graphics accelerator> at 7.0
isab0: <ServerWorks IB6566 PCI to ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks ROSB4 ATA33 controller> port 0xb800-0xb80f 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 0xfa000000-0xfa000fff irq 4 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> on motherboard
IOAPIC #1 intpin 8 -> irq 10
IOAPIC #1 intpin 9 -> irq 11
pci1: <PCI bus> on pcib1
sym0: <896> port 0xb400-0xb4ff mem 0xf9000000-0xf9001fff,0xf9800000-0xf98003ff irq 10 at device 5.0 on pci1
sym0: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym1: <896> port 0xb000-0xb0ff mem 0xf8000000-0xf8001fff,0xf8800000-0xf88003ff irq 11 at device 5.1 on pci1
sym1: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: handling phase mismatch from SCRIPTS.
orm0: <Option ROMs> at iomem 0xc0000-0xca7ff,0xd0000-0xd17ff,0xd4000-0xd7fff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 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 IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: parallel port not found.
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: Broken MP table detected: 8254 is not connected to IOAPIC #0 intpin 2
APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0
SMP: AP CPU #1 Launched!
acd0: CDROM <QSI CD-ROM SCR-242> at ata0-master PIO4
Waiting 5 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
(noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
sa0 at sym1 bus 0 target 2 lun 0
sa0: <TANDBERG SLR100 0402> Removable Sequential Access SCSI-2 device
sa0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da0 at sym0 bus 0 target 0 lun 0
da0: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da3 at sym0 bus 0 target 3 lun 0
da3: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da3: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da3: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da2 at sym0 bus 0 target 2 lun 0
da2: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da2: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da1 at sym0 bus 0 target 1 lun 0
da1: <SEAGATE ST318436LW 0010> Fixed Direct Access SCSI-3 device
da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
em0: Link is up 1000 Mbps Full Duplex
After I plug my USB drive:
amanda<root>46: usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), (0x1166)(0x0000), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
amanda<root>47: camcontrol devlist -v
scbus0 on sym0 bus 0:
<SEAGATE ST318436LW 0010> at scbus0 target 0 lun 0 (pass0,da0)
<SEAGATE ST318436LW 0010> at scbus0 target 1 lun 0 (pass1,da1)
<SEAGATE ST318436LW 0010> at scbus0 target 2 lun 0 (pass2,da2)
<SEAGATE ST318436LW 0010> at scbus0 target 3 lun 0 (pass3,da3)
< > at scbus0 target -1 lun -1 ()
scbus1 on sym1 bus 0:
<TANDBERG SLR100 0402> at scbus1 target 2 lun 0 (pass4,sa0)
< > at scbus1 target -1 lun -1 ()
scbus-1 on xpt0 bus 0:
< > at scbus-1 target -1 lun -1 (xpt0)
Any help appreciated. Only difference I see, except the release level
is that my trimed kernel includes ACPI and is SMP.
Best regards,
Olivier
More information about the freebsd-questions
mailing list