Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 11:52:54 +0100
From:      John Morgan Salomon <john@zog.net>
To:        freebsd-questions@freebsd.org
Subject:   Thinkpad Hangs with USB
Message-ID:  <3C70DD06.1040704@zog.net>

next in thread | raw e-mail | index | archive | help
Hi there,

I have an IBM Thinkpad X20, running 4.4-R.  Generally, it works fine,
but when I attempt to access a USB device, the box just freezes 
irretrievably.
Attaching the device works, but actually running something to access it,
such as s10sh, stops the box dead.

I have tried with both a Canon IXUS 300 and a Logitech Quickcam.

I would appreciate any help--I can't find any references to Thinkpads 
hanging
with USB.  I have seen similar behavior with a 600E a while ago when 
attaching
a serial device--the laptop just froze--no error messages, nothing.

Attached are my kernel config, dmesg, and an output of usbd -dv.  Thanks 
in advance
for any help, this is frustrating!

Cheers,

-John


bolo# usbd -dv
usbd: opened /dev/usb0
usbd: reading configuration file /etc/usbd.conf
usbd: opened /dev/usb
usbd: detach event at 1014029213.739788000, product 0x2036, Texas 
Instruments:
  vndr=0x0451 prdct=0x2036 rlse=0x0101 clss=0x0009 subclss=0x0000 
prtcl=0x0000
  device names: uhub1
usbd: Found action 'USB device' for product 0x2036, Texas Instruments at 
uhub1
usbd: attach event at 1014029221.850270000, General Purpose USB Hub, 
Texas Instruments:
  vndr=0x0451 prdct=0x2036 rlse=0x0101 clss=0x0009 subclss=0x0000 
prtcl=0x0000
  device names: uhub1
usbd: Found action 'USB device' for General Purpose USB Hub, Texas 
Instruments at uhub1
usbd: attach event at 1014029222.230177000, Camera, Logitech, Inc.:
  vndr=0x046d prdct=0x0850 rlse=0x0100 clss=0x00ff subclss=0x00ff 
prtcl=0x00ff
  device names: ugen0
usbd: Found action 'USB device' for Camera, Logitech, Inc. at ugen0

bolo# cat /usr/src/sys/i386/conf/thinkpad

machine         i386
cpu             I686_CPU
ident           GENERIC
maxusers        32

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

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep 
this!]
options         SOFTUPDATES             #Enable FFS soft updates support
options         MFS                     #Memory Filesystem
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         IPFILTER                # enable IPF
options         IPFILTER_LOG            # enable packet logging
options         COMPAT_LINUX
options         DEBUG_LINUX
options         IPSEC                   # allow ipsec in kernel
options         IPSEC_ESP               # allow ipsec tunneling

options         PSM_HOOKRESUME          # Both required to avoid mouse 
out of
options         PSM_RESETAFTERSUSPEND   # sync messages after apm sleep

# Hopefully this will allow me to use the modem
options         PNPBIOS

# Required for Mom's idiotic DSL provider
options         NETGRAPH
options         NETGRAPH_PPPOE

# required by avifile & WINE
options         USER_LDT

device          isa
device          eisa
device          pci
device          miibus

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

# 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

# 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?

# splash screen/screen saver
pseudo-device   splash

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

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device         vt0     at isa?
#options        XSERVER                 # support for X server on a vt 
console
#options        FAT_CURSOR              # start with block cursor
#options                PCVT_FREEBSD
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT 
lines
#options        PCVT_SCANSET=2          # IBM keyboards are non-std

# 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? flags 0x20 # Advanced Power Management

# 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.
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)

# USB ethernet adapter
device          aue

# Sound driver - We think ThinkPad have a Crystal card in them
#device pcm0    at isa? irq 10 drq 1 flags 0x0
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device
#device         vpo             # Requires scbus and da

# PCI Ethernet NICs.
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)

# USB ethernet adapter
device          aue

# Sound driver - We think ThinkPad have a Crystal card in them
#device pcm0    at isa? irq 10 drq 1 flags 0x0
device          pcm
# Crystal Semiconductor cards
device          csa0


# 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     4       # Kernel PPP (give it a few more -John)
pseudo-device   tun             # Packet tunnel.
pseudo-device   pty             # Pseudo-ttys (telnet etc)
pseudo-device   md              # Memory "disks"
pseudo-device   gif     4       # IPv6 and IPv4 tunneling
pseudo-device   faith   1       # IPv6-to-IPv4 relaying (translation)

# 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          ums             # Mouse
device          uscanner        # Scanners


bolo# dmesg
Copyright (c) 1992-2001 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.4-RELEASE-p3 #8: Mon Feb 18 11:16:53 CET 2002
    root@bolo.zog.net:/usr/src/sys/compile/thinkpad
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (597.41-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,MMX,FXSR,SSE>
real memory  = 201261056 (196544K bytes)
config> di sn0
No such device: sn0
Invalid command or syntax.  Type `?' for help.
config> di lnc0
No such device: lnc0
Invalid command or syntax.  Type `?' for help.
config> di ie0
No such device: ie0
Invalid command or syntax.  Type `?' for help.
config> di fe0
No such device: fe0
Invalid command or syntax.  Type `?' for help.
config> di ed0
No such device: ed0
Invalid command or syntax.  Type `?' for help.
config> di cs0
No such device: cs0
Invalid command or syntax.  Type `?' for help.
config> di bt0
No such device: bt0
Invalid command or syntax.  Type `?' for help.
config> di aic0
No such device: aic0
Invalid command or syntax.  Type `?' for help.
config> di aha0
No such device: aha0
Invalid command or syntax.  Type `?' for help.
config> di adv0
No such device: adv0
Invalid command or syntax.  Type `?' for help.
config> q
avail memory = 191729664 (187236K bytes)
Preloaded elf kernel "kernel" at 0xc0406000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc040609c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00fdee0
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mobility-1 graphics accelerator> at 0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1800-0x180f at device 7.1 
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1820-0x183f irq 
11 at de
vice 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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
uhub1: Texas Instruments General Purpose USB Hub, class 9/0, rev 
1.10/1.01, addr
 2
uhub1: 2 ports with 2 removable, self powered
ugen0: Logitech, Inc. Camera, rev 1.00/1.00, addr 3
chip1: <Intel 82371AB Power management controller> port 0x1040-0x104f at 
device
7.3 on pci0
pcic0: <Ricoh RL5C476 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 
11 at de
vice 8.0 on pci0
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <Ricoh RL5C476 PCI-CardBus Bridge> mem 0x50100000-0x50100fff irq 
11 at de
vice 8.1 on pci0
pccard1: <PC Card bus (classic)> on pcic1
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x1840-0x187f mem 
0xf4020000-0xf403
ffff,0xf4010000-0xf4010fff irq 11 at device 10.0 on pci0
fxp0: Ethernet address 00:10:a4:a6:63:4c
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <unknown card> (vendor=0x115d, dev=0x000c) at 10.1 irq 11
pcm0: <Crystal Semiconductor CS4281> mem 
0xf4000000-0xf400ffff,0xf4012000-0xf401
2fff irq 11 at device 11.0 on pci0
orm0: <Option ROMs> at iomem 
0xc0000-0xccfff,0xcd000-0xce7ff,0xd8000-0xdbfff,0xd
c000-0xdcfff 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: 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: cannot reserve I/O port range
unknown: <PNP0c01> can't assign resources
unknown: <PNP0000> can't assign resources
unknown: <PNP0303> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <IBM3780> can't assign resources
unknown: <PNP0680> can't assign resources
ppc1: <Standard parallel printer port> at port 0x3bc-0x3bf irq 7 on isa0
ppc1: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
unknown: <PNP0700> can't assign resources
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.20 initialized.  Default = pass all, Logging = enabled
ad0: 19077MB <IBM-DJSA-220> [41344/15/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
pccard: card inserted, slot 0
WARNING: R/W mount of /usr denied.  Filesystem is not clean - run fsck
WARNING: R/W mount of /var denied.  Filesystem is not clean - run fsck
WARNING: R/W mount of /var denied.  Filesystem is not clean - run fsck
IP Filter: already initialized
module_register: module linuxelf already exists!
linker_file_sysinit "linux.ko" failed to register! 17
module_register: module linuxaout already exists!
linker_file_sysinit "linux.ko" failed to register! 17
/dev/vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: 
build-570
 $
/dev/vmmon: Module vmmon: initialized
module_register: module netgraph already exists!
linker_file_sysinit "netgraph.ko" failed to register! 17
vmnet1: promiscuous mode enabled
ugen0: at uhub1 port 2 (addr 3) disconnected
ugen0: detached
uhub1: at uhub0 port 1 (addr 2) disconnected
uhub1: detached
uhub1: Texas Instruments General Purpose USB Hub, class 9/0, rev 
1.10/1.01, addr
 2
uhub1: 2 ports with 2 removable, self powered
ugen0: Logitech, Inc. Camera, rev 1.00/1.00, addr 3






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C70DD06.1040704>