From owner-freebsd-questions@FreeBSD.ORG Fri May 11 06:14:06 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E215416A403 for ; Fri, 11 May 2007 06:14:06 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id B405113C465 for ; Fri, 11 May 2007 06:14:05 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id l4B6E2AF057461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 May 2007 13:14:02 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id l4B6E2QU052996; Fri, 11 May 2007 13:14:02 +0700 (ICT) Date: Fri, 11 May 2007 13:14:02 +0700 (ICT) Message-Id: <200705110614.l4B6E2QU052996@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-questions@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: USB on 4.11 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 06:14:07 -0000 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: amanda47: 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 amanda48: camcontrol devlist -v scbus0 on sym0 bus 0: at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 1 lun 0 (pass1,da1) at scbus0 target 2 lun 0 (pass2,da2) at scbus0 target 3 lun 0 (pass3,da3) < > at scbus0 target -1 lun -1 () scbus1 on sym1 bus 0: at scbus1 target 2 lun 0 (pass4,sa0) < > at scbus1 target -1 lun -1 () scbus2 on umass-sim0 bus 0: 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@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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 fxp0: 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: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto em0: port 0xd400-0xd43f mem 0xfc800000-0xfc81ffff,0xfd000000-0xfd01ffff irq 11 at device 5.0 on pci0 em0: Speed:N/A Duplex:N/A pci0: at 7.0 isab0: at device 15.0 on pci0 isa0: on isab0 atapci0: port 0xb800-0xb80f at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci0: mem 0xfa000000-0xfa000fff irq 7 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: 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: on motherboard pci1: 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: