From owner-freebsd-stable@FreeBSD.ORG Sat Sep 30 10:34:11 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92D7716A403 for ; Sat, 30 Sep 2006 10:34:11 +0000 (UTC) (envelope-from free.as.in.speech@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD51343D46 for ; Sat, 30 Sep 2006 10:34:10 +0000 (GMT) (envelope-from free.as.in.speech@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so1183199wxd for ; Sat, 30 Sep 2006 03:34:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=F9JxU813oJF0Q2+FHnGLRIJqeGb7l6UJGJt36sQfOJ+D93NzHEGQurvohJmXJFJP7RLooITVC1EAS60yuGBb5E69qwcqoAH55PxMguMB3C2LZEX+FDvg1M5Br2FOfECf/P//Ax/lnZr4p3ZbNedjJjbENiLGF0UiREUhBs0vTVw= Received: by 10.70.129.5 with SMTP id b5mr2232380wxd; Sat, 30 Sep 2006 03:34:10 -0700 (PDT) Received: by 10.70.50.6 with HTTP; Sat, 30 Sep 2006 03:34:10 -0700 (PDT) Message-ID: <2cc028020609300334y3ca1b8bfs9204f1262aebc460@mail.gmail.com> Date: Sat, 30 Sep 2006 12:34:10 +0200 From: "Brian King" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: western digital mybook (external usb drive, 250gb) takes 15 minutes to be recognized X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Sep 2006 10:34:11 -0000 i'm seeing strange behavior for a wd mybook on freebsd 6.1-RELEASE-p5, GENERIC kernel. - the system hangs on boot if it's attached. it stops right after it has recognized my internal hard drives and dvd writer. perhaps it would eventually complete the booting process, but i give up after several minutes, unplug the usb drive and press the reset button. - after boot, if i attach the drive i see this message on the first terminal: ----- umass0: Western Digital External HDD, rev 2.00/2.06, addr 2 ----- about 15 minutes later (!), i see: ----- da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) ----- no other messages related to the drive are displayed on the console during these 15 minutes. once the da0 device is recognized, i can mount the partitions (i've got it split into two roughly equal-sized primary partitions, one ext2fs and one msdos), e.g.: mount -t ext2fs /dev/da0s1/mnt/backup here is what i see about my usb hardware with dmesg: ----- uhci0: port 0xd400-0xd41f at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: 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: port 0xd000-0xd01f at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: 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 uhci2: port 0xb800-0xb81f at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: 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 ehci0: mem 0xed800000-0xed8000ff at device 16.3 on pci0 ehci0: [GIANT-LOCKED] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered ----- here is my /etc/usbd.conf file (i've never modified it, i guess this is the default): ----- # Configuration file the USB daemon. # # See usbd.conf(5) for the description of the format of the file. # # $FreeBSD: src/etc/usbd.conf,v 1.15 2004/11/28 23:16:00 iedowse Exp $ # Firmware download into the ActiveWire board. After the firmware download is # done the device detaches and reappears as something new and shiny automatically. # device "ActiveWire board, firmware download" vendor 0x0854 product 0x0100 release 0x0000 attach "/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex ${DEVNAME}" # Firmware download for Entrega Serial DB25 adapter. # device "Entrega Serial with UART" product 0x8001 vendor 0x1645 release 0x0101 attach "if ! kldstat -n usio > /dev/null 2>&1 ; then kldload usio; fi" attach "/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}" # This entry starts the ColdSync tool in daemon mode. Make sure you have an up # to date /usr/local/etc/palms. We override the 'listen' settings for port and # type in /usr/local/etc/coldsync.conf. device "Handspring Visor" devname "ugen[0-9]+" vendor 0x082d product 0x0100 release 0x0100 attach "/usr/local/bin/coldsync -md -p /dev/${DEVNAME} -t usb" # The fallthrough entry: Nothing is specified, nothing is done. And it isn't # necessary at all :-). Just for pretty printing in debugging mode. # device "USB device" ----- what could be causing this delay between the attachment of the drive and registration of the da0 device?