Date: Sun, 1 Dec 2002 01:44:01 -0500 From: "Marshall A. Greenblatt" <marshall@magpcss.com> To: <freebsd-questions@freebsd.org> Subject: usbd fails with "Could not read event, Invalid argument" error Message-ID: <002b01c29905$09b6b410$6501a8c0@Marshall>
next in thread | raw e-mail | index | archive | help
Hi guys, have a slight problem that google and the list archives haven't been able to shed any light on. When I attempt to start usbd it exits with a fatal error message as shown below. # /usr/sbin/usbd -v usbd: opened /dev/usb0 usbd: opened /dev/usb1 usbd: opened /dev/usb2 usbd: reading configuration file /etc/usbd.conf usbd: opened /dev/usb usbd: Could not read event, Invalid argument A quick grep of the sources shows that this error message is from the `process_event_queue' function in `usr.sbin/usbd/usbd.c' and seems to indicate that a read on `/dev/usb' failed. World is standard 4.7-RELEASE and the kernel was compiled using RELENG_4 CVS sources updated early this morning. The USB ports have been verified to work, so I don't think it's a hardware problem. Any suggestions on how to resolve this error would be greatly appreciated. Ideally, I'd like to get a LinkSys WUSB11 v2.6 (Atmel chipset) wireless USB adapter working with FreeBSD, but I know that may be a lost cause, at least for the near future. :-) Thanks, Marshall ----------------------- # ls -l /dev/usb* crw-rw---- 1 root operator 108, 255 Nov 29 21:50 /dev/usb crw-rw---- 1 root operator 108, 0 Nov 29 21:50 /dev/usb0 crw-rw---- 1 root operator 108, 1 Nov 30 23:55 /dev/usb1 crw-rw---- 1 root operator 108, 2 Nov 30 23:55 /dev/usb2 ----------------------- # dmesg Copyright (c) 1992-2002 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.7-STABLE #3: Sat Nov 30 19:37:15 EST 2002 root@magamd2k:/usr/obj/usr/src/sys/AMD2K11302002 Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1666737046 Hz CPU: AMD Athlon(tm) XP 2000+ (1666.74-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV, PAT,PSE36,MMX,FXSR,SSE> AMD Features=0xc0400000<AMIE,DSP,3DNow!> real memory = 167706624 (163776K bytes) config> q avail memory = 159354880 (155620K bytes) Preloaded elf kernel "kernel" at 0xc039b000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc039b09c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 6 entries at 0xc00f7be0 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pcib1: <PCI to PCI bridge (vendor=1106 device=b091)> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <S3 model 8d04 graphics accelerator> at 0.0 irq 5 fwohci0: <VIA VT6306> port 0xec00-0xec7f mem 0xdffff800-0xdfffffff irq 5 at device 8.0 on pci0 fwohci0: PCI bus latency was changing to 250. cache size 8. fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 8. fwohci0: resetting OHCI...done (0) fwohci0: BUS_OPT 0xf800a202 -> 0xf800a202 fwohci0: Link 1394a available S400, 3 ports, maxrec 2048 bytes. fwohci0: Enable 1394a Enhancements fwohci0: EUI64 00:11:06:00:00:00:31:6a fwochi_set_intr: 1 firewire0: <IEEE1394(Firewire) bus> on fwohci0 firewire0: firewire bus attach sbp_identify sbp_probe sbp0: <SBP2/SCSI over firewire> on firewire0 sbp_attach isab0: <PCI to ISA bridge (vendor=1106 device=3074)> at device 17.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 8233 ATA100 controller> port 0xfc00-0xfc0f at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 11 at device 17.2 on pci0 usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 11 at device 17.3 on pci0 usb1: <VIA 83C572 USB controller> on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ugen0: vendor 0x077b product 0x2219, rev 1.10/1.00, addr 2 uhci2: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 11 at device 17.4 on pci0 usb2: <VIA 83C572 USB controller> on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pcm0: <VIA VT8233> port 0xe400-0xe4ff irq 11 at device 17.5 on pci0 chip1: <VIA 82C686 AC97 Modem> port 0xe800-0xe8ff irq 11 at device 17.6 on pci0 vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd400-0xd4ff mem 0xdffff700-0xdffff7ff irq 5 at device 18.0 on pci0 vr0: Ethernet address: 00:07:95:41:b3:f6 miibus0: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xcffff 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 MouseMan+, 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 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: 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 firewire0: BUS reset firewire0: node_id = 0xc800ffc0, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) fw_set_bus_manager: 63->0 (loop=0) send phy_config root_node=-1 gap_count=1 start AT DMA status=0 ad0: 57241MB <WDC WD600BB-32CCB0> [116301/16/63] at ata0-master UDMA100 ad1: 4104MB <WDC AC34300L> [8896/15/63] at ata0-slave UDMA33 acd0: CD-RW <Hewlett-Packard CD-Writer Plus 8100> at ata1-master PIO3 afd0: 96MB <IOMEGA ZIP 100 ATAPI> [32/64/96] at ata1-slave PIO0 bus_explore done Mounting root from ufs:/dev/ad1s1a ----------------------- # cat /usr/src/sys/i386/conf/AMD2K11302002 machine i386 cpu I686_CPU ident AMD2K11302002 maxusers 0 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 UFS_DIRHASH #Improve performance on big directories options MFS #Memory Filesystem options MSDOSFS #MSDOS Filesystem 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 device isa device eisa device pci device pcm0 # Sound # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives options ATA_STATIC_ID #Static device numbering # SCSI Peripherals device scbus # SCSI bus (required) device sbp # Serial bus mass storage devices device da # Direct access (disks) device cd # CD device pass # Passthrough device device sa # Sequential access (tapes etc) device firewire # Firewire bus code # 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 # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 # 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. device miibus # MII bus support device vr # VIA Rhine, Rhine II # 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) pseudo-device md # Memory "disks" pseudo-device gif # 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 umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device uscanner # Scanners device urio # Diamond Rio MP3 Player # USB Ethernet, requires mii device aue # ADMtek USB ethernet device cue # CATC USB ethernet device kue # Kawasaki LSI USB ethernet 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?002b01c29905$09b6b410$6501a8c0>