From owner-freebsd-stable@FreeBSD.ORG Mon Jul 13 23:24:40 2009 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31AAA106566C for ; Mon, 13 Jul 2009 23:24:40 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id 158BF8FC1A for ; Mon, 13 Jul 2009 23:24:39 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from friskymail-a4.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 6C951179768 for ; Mon, 13 Jul 2009 16:03:56 -0700 (PDT) Received: from [127.0.0.1] (c220-239-199-115.chirn1.vic.optusnet.com.au [220.239.199.115]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by friskymail-a4.g.dreamhost.com (Postfix) with ESMTP id 2EADD121CE7 for ; Mon, 13 Jul 2009 16:03:54 -0700 (PDT) Message-ID: <4A5BBD50.2020408@menhennitt.com.au> Date: Tue, 14 Jul 2009 09:03:44 +1000 From: Graham Menhennitt User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: problem with Soekris net5501 and USB hub 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: Mon, 13 Jul 2009 23:24:40 -0000 I originally sent this to the Soekris list thinking it was platform specific. I got a couple of replies suggesting that it's a FreeBSD problem instead. So, if anybody can offer any insights, I would most appreciate it. I have a Soekris net5501 running FreeBSD 7-Stable. I want to connect a number of USB devices to it: - a HP Laserjet 1020 printer - an APC Back UPS 350 UPS - a 6-in-one card reader (not so fussed about this one). The Soekris box has only one USB port brought out to a connector on the case, so rather than mod the box to add another port, I thought I would just use an external hub. If I plug any of the devcies directly into the Soekris's USB port it works fine. However, if I use a USB hub then it doesn't work at all. I've tried it with two different hubs and two different cables. I've tried the hubs both with a plug pack, and being powered from the USB bus. The only thing common to the failures is the Soefkis and freeBSD. The hubs are both USB 2.0 according to their advertising. The hub itself is recognised (although I don't have the output from usbdevs available at the moment). The UPS doesn't ever seem to be recognised when connected via the hub - there's nothing in dmesg and nothing in usbdevs. Ditto for the 6-in-one card reader - the LED on the front of it doesn't even light up. The printer sometimes gets partially recognised. The output from "usbdevs -v" when the printer is connected directly and working properly looks like: Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), AMD(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), AMD(0x0000), rev 1.00 port 1 addr 2: high speed, self powered, config 1, HP LaserJet 1020(0x2b17), Hewlett-Packard(0x03f0), rev 1.00 port 2 powered port 3 powered port 4 powered However, if I connect it via the hub, it sometimes doesn't show it at all, while other times it says something like (doing this from memory): port 1 addr 2: high speed, self powered, config 1, 0x2b17(0x2b17), vendor 0x03f0(0x03f0), rev 1.00 So, it can see it but it doesn't resolve the vendor or device ids. It looks like the Soekris can see whatever is directly connected to it, but can't (reliably) see things that more than one step away. My (custom) kernel has: device usb # USB Bus (required) device umass # Disks/Mass storage - Requires scbus and da device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device ugen # Generic So, does anybody have any ideas about how to fix this. Thanks for any help, Graham