FreeBSD 4.9 USB problems

Ken Ebling deevil at us-it.net
Sat Mar 6 17:44:22 PST 2004


Hi,

I'm running FreeBSD 4.9-STABLE on my IBM T23 Thinkpad.  USB devices  
only work if they were connected when the system booted.  If I plug in  
a USB mouse or a USB flash drive after the machine has booted, they  
don't appear.  /var/log/messages doesn't even mention the device being  
plugged in.

Also, if I put the laptop to sleep any USB devices are gone until I  
reboot.

I keep trying new 5.x releases, and the USB problem doesn't occour, but  
I can't use 5.x because my network card (fxp) won't work and "fxp0:  
device timeout" is the reason.

I'm including my rc.conf, dmesg output and my kernel config.  If anyone  
can provide some insight I'd really appreciate it.

Thanks,

Ken Ebling



rc.conf:

hostname="laptop.deevil.org"
ifconfig_fxp0="inet 192.168.0.3  netmask 255.255.255.0"
defaultrouter="192.168.0.1"

apm_enable="YES"
linux_enable="YES"
pccard_enable="YES"
portmap_enable="YES"
sshd_enable="YES"
usbd_enable="YES"

keybell="NO"
kern_securelevel_enable="NO"
sendmail_enable="NO"
sendmail_submit_enable="YES"

moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"



dmesg output:

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 4.9-STABLE #7: Sat Feb 28 16:46:25 EST 2004
     spike at laptop.deevil.org:/usr/obj/usr/src/sys/LAPTOP
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Pentium(R) III Mobile CPU       866MHz (865.93-MHz  
686-class CPU)
   Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
    
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,C 
MOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 267845632 (261568K bytes)
avail memory = 256741376 (250724K bytes)
Preloaded elf kernel "kernel" at 0xc03d2000.
netsmb_dev: loaded
Pentium Pro MTRR support enabled
Using $PIR table, 14 entries at 0xc00fdeb0
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82830 host to AGP bridge> mem 0xd0000000-0xdfffffff at  
device 0.0 on pci0
pcib1: <PCI to PCI bridge (vendor=8086 device=3576)> at device 1.0 on  
pci0
pci1: <PCI bus> on pcib1
pci1: <S3 model 8c2e graphics accelerator> at 0.0 irq 11
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port  
0x1800-0x181f irq 11 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port  
0x1820-0x183f irq 11 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/13.00, addr 2, iclass  
3/1
ums0: 4 buttons and Z dir.
uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port  
0x1840-0x185f irq 11 at device 29.2 on pci0
usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pcib2: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on  
pci0
pci2: <PCI bus> on pcib2
pcic0: <TI PCI-1420 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq  
11 at device 0.0 on pci2
pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa  
irq]
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pcic1: <TI PCI-1420 PCI-CardBus Bridge> mem 0x51000000-0x51000fff irq 5  
at device 0.1 on pci2
pcic1: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa  
irq]
pccard1: <PC Card 16-bit bus (classic)> on pcic1
pci2: <unknown card> (vendor=0x11c1, dev=0x0449) at 2.0 irq 11
fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x6400-0x643f  
mem 0xc0200000-0xc0200fff irq 11 at device 8.0 on pci2
fxp0: Ethernet address 00:d0:59:33:0c:53
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=8086 device=248c)> at device 31.0 on  
pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> port  
0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device  
31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ichsmb0: <Intel 82801CA (ICH3) SMBus controller> port 0x1880-0x189f irq  
5 at device 31.3 on pci0
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus general purpose I/O> on smbus0
pcm0: <Intel ICH3 (82801CA)> port 0x18c0-0x18ff,0x1c00-0x1cff irq 5 at  
device 31.5 on pci0
pcm0: <Cirrus Logic CS4299 AC97 Codec>
eisa0: <EISA bus> on motherboard
eisa0: unknown card @H at 0000 (0x01000000) at slot 1
orm0: <Option ROMs> at iomem  
0xc0000-0xcdfff,0xce000-0xcefff,0xcf000-0xcffff,0xdc000 
-0xdffff,0xe0000-0xeffff 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: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
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 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: parallel port not found.
ad0: 38154MB <TOSHIBA MK4019GAX> [77520/16/63] at ata0-master UDMA100
acd0: CD-RW <TOSHIBA DVD-ROM SD-R2002> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TOSHIBA DVD-ROM SD-R2002 1129> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present



Kernel config:

# $FreeBSD: src/sys/i386/conf/LAPTOP,v 1.246.2.56 2003/12/19 22:52:44  
jhb Exp $

machine		i386
cpu		I686_CPU
ident		LAPTOP
maxusers	0

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_DIRHASH		#Improve performance on big directories
options 	MD_ROOT			#MD is a potential root device
options 	NFS			#Network Filesystem
options 	NFS_ROOT		#NFS usable as root device, NFS required
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.
options		NETSMB
options		NETSMBCRYPTO
options		LIBMCHAIN
options		LIBICONV
options		PCI_ENABLE_IO_MODES

device		isa
device		eisa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

# ATA and ATAPI devices
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering

# SCSI peripherals
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0	at nexus?

# PCCARD (PCMCIA) support
device		card
device		pcic0	at isa? irq 0 port 0x3e0 iomem 0xd0000
device		pcic1	at isa? irq 0 port 0x3e2 iomem 0xd4000 disable

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these  
NICs!
device		miibus		# MII bus support
device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
#device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		uscanner	# Scanners

device		atapicam
device		smbus
device		ichsmb
device		smb
device		pcm



More information about the freebsd-questions mailing list