From owner-freebsd-questions@FreeBSD.ORG Sat Mar 14 13:04:16 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C33BE5B4 for ; Sat, 14 Mar 2015 13:04:16 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88C93ED9 for ; Sat, 14 Mar 2015 13:04:16 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-211.adsl.hiwaay.net [216.180.76.211]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t2ED48kb011759 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 14 Mar 2015 08:04:09 -0500 Message-ID: <5504333F.1000903@hiwaay.net> Date: Sat, 14 Mar 2015 08:10:23 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 CC: freebsd-questions@freebsd.org Subject: Re: FreeBSD 9.3 is not recognizing USB 2.0 peripherals (or maybe USB2 bus) References: <20150314144238.N29188@sola.nimnet.asn.au> In-Reply-To: <20150314144238.N29188@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2015 13:04:16 -0000 On 03/13/15 23:53, Ian Smith wrote: > In freebsd-questions Digest, Vol 562, Issue 4, Message: 3 > On Wed, 11 Mar 2015 18:43:03 -0400 The Lost Admin wrote: > > Hi all, > > > > I?ve got a Zotac Zbox SD-ID12 (Intel Atop D525). According to the > > vendor specs it?s got 6 USB 2.0 ports. It?s spend the last few years > > sitting on a shelf running FreeBSD and getting periodic > > updates/upgrades and little else. > > > > Currently at FreeBSD 9.3-RELEASE-p10. > > > > Recently I decided to make use of some old USB2 hard drives I had > > lying around and turn the box into a basic NAS for my home network > > (nothing fancy just NFS). I got the NFS working without a hitch. > > > > I attached the first of the USB 2.0 drives and it seamed really slow. > > Looking at /var/messages it indicates it?s running at USB 1 speeds: > > > > da0 at umass-sim0 bus 0 scbus4 target 0 lun 0 > > da0: Fixed Direct Access SCSI-4 device > > da0: Serial Number 575851314136305639323030 > > da0: 1.000MB/s transfers > > da0: 953842MB (1953468416 512 byte sectors: 255H 63S/T 121597C) > > da0: quirks=0x2 > > > > Further digging into dmesg suggests to me that FreeBSD is somehow > > either not finding or not using USB2 drivers. > > > > For the sake of keeping this message short, the full verbose dmesg > > can be found here -> http://pastebin.com/sUxvCd0m ; it will expire in > > one month (April 11, 2015). > > Unfortunately your dmesg is missing the top - these days you likely need > to set kern.msgbufsize=98304 or at least >64K, to capture a full verbose > boot; I have that in /boot/loader.conf or you can set it from the loader > prompt - so it's not clear whether you're running a GENERIC kernel, but > as you say 9.3-RELEASE-p10 I'll assume you probably do. If not, and > your kernel doesn't include device ehci, that's your problem solved :) > > > NOTES: > > I have tried a variety of USB2 devices (CD R/W, usb hard drive, thumb > > drives). I have confirmed that all are detected and accessed as USB > > 2.0 devices on Windows 7, Mac OSX. I have also confirmed that Linux > > (Raspbian on a raspberry Pi) recognized and used the hard drive as a > > USB2.0 device. > > Your dmesg shows: > > uhci0: port 0xd880-0xd89f irq > 23 at device 29.0 on pci0 > ioapic0: routing intpin 23 (PCI IRQ 23) to lapic 0 vector 55 > uhci0: LegSup = 0x2f00 > usbus0 on uhci0 > usbus0: bpf attached > uhci0: usbpf: Attached > > and the same for uhci1, uhci2 and uhci3. If ehci (USB 2) were being > detected you'd then expect to see something like, as here on 9.3-R: > > ehci0: mem 0xf2926c00-0xf2926fff irq > 23 at device 26.7 on pci0 > ioapic0: routing intpin 23 (PCI IRQ 23) to lapic 0 vector 55 > usbus3: EHCI version 1.0 > usbus3 on ehci0 > usbus3: bpf attached > ehci0: usbpf: Attached > > though on a different irq and usbus than the uhci ones. > > > I tried a few different cables just in case. > > > > Also, I have been using FreeBSD since the 1990s and used to be pretty > > active at helping people on this list (a long time ago). > > That's cool, but you don't need a credit balance to qualify :) > > smithi@x200:~ % kldstat -v | grep ehci > 295 ehci/usbus > 287 pci/ehci > smithi@x200:~ % devinfo -v | grep ehci > ehci0 pnpinfo vendor=0x8086 device=0x293c subvendor=0x17aa > subdevice=0x20f1 class=0x0c0320 at slot=26 function=7 handle=\_SB_.PCI0.EHC1 > ehci1 pnpinfo vendor=0x8086 device=0x293a subvendor=0x17aa > subdevice=0x20f1 class=0x0c0320 at slot=29 function=7 handle=\_SB_.PCI0.EHC0 > > If you've got ehci loaded then it's not being detected, which is weird > indeed. Report back with the output of those two commands? > > cheers, Ian (please cc me, I take questions as a digest) > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > FWIW, the OP'er is on 9.3R-p10, i'm on p9, here is what my box shows: [root@kabini1, /etc, 8:06:21am] 504 % grep -i uhci /var/log/dmesg.today [root@kabini1, /etc, 8:06:44am] 505 % grep -i ehci /var/log/dmesg.today ehci0: mem 0xffb6c000-0xffb6c0ff irq 17 at device 18.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 ehci1: mem 0xffb6a000-0xffb6a0ff irq 17 at device 19.2 on pci0 usbus5: EHCI version 1.0 usbus5 on ehci1 uhub3: on usbus3 uhub5: on usbus5 ehci0: mem 0xffb6c000-0xffb6c0ff irq 17 at device 18.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 ehci1: mem 0xffb6a000-0xffb6a0ff irq 17 at device 19.2 on pci0 usbus5: EHCI version 1.0 usbus5 on ehci1 uhub3: on usbus3 uhub5: on usbus5 [root@kabini1, /etc, 8:06:49am] 506 % kldstat -v | grep ehci 329 ehci/usbus 321 pci/ehci [root@kabini1, /etc, 8:07:42am] 507 % devinfo -v | grep ehci ehci0 pnpinfo vendor=0x1022 device=0x7808 subvendor=0x1849 subdevice=0x7808 class=0x0c0320 at slot=18 function=2 handle=\_SB_.PCI0.EHC1 ehci1 pnpinfo vendor=0x1022 device=0x7808 subvendor=0x1849 subdevice=0x7808 class=0x0c0320 at slot=19 function=2 handle=\_SB_.PCI0.EHC2 [root@kabini1, /etc, 8:07:45am] 508 % uname -a FreeBSD kabini1.local 9.3-RELEASE-p9 FreeBSD 9.3-RELEASE-p9 #0: Tue Jan 27 10:43:40 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [root@kabini1, /etc, 8:07:50am] 509 % Maybe an issue crept in w/ the newer OS-base code ? $0.02, no more, no less .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.