From owner-freebsd-usb@FreeBSD.ORG Thu May 23 07:35:53 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 80E9D30F for ; Thu, 23 May 2013 07:35:53 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 19B96A2D for ; Thu, 23 May 2013 07:35:52 +0000 (UTC) Received: from mail.bitfrost.no (mail.bitfrost.no [46.29.221.36]) by mta.bitpro.no (Postfix) with ESMTP id 2FA3F7A1D9; Thu, 23 May 2013 09:35:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bitfrost.no Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hanspetter) by mail.bitfrost.no (Postfix) with ESMTPSA id EC6CB2009E; Thu, 23 May 2013 09:35:38 +0200 (CEST) Message-ID: <519DC71E.6000805@bitfrost.no> Date: Thu, 23 May 2013 09:37:02 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S MIME-Version: 1.0 To: Cyrille Duret Subject: Re: Force USB2 controller to use USB1 for virtualbox usage References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 07:35:53 -0000 On 05/23/13 08:41, Cyrille Duret wrote: > Hello all, > > I try to change my USB 2.0 devices (USB stick, Android phone) to USB 1.1 in > order to use it with VirtualBox running Windows seven 64. > > I see some hints on the web but had no success with the sysctl > hw.usb.ehci.no_hs. > -> http://www.clearchain.com/blog/posts...usb2-0-devices > > > I put this command in /etc/sysctl.conf: > > hw.usb.ehci.no_hs=1 > My USB device works but it is still in HIGH speed. > > > @ sudoi sysctl hw.usb.ehci.no_hs > hw.usb.ehci.no_hs: 1 > > @ sudoi usbconfig > ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=SAVE > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=SAVE > ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > My device speed is still HIGH and cannot see it to FULL. > > Any experiences? > Thanks. > > My config: > FreeBSD darkstar 9.1-STABLE FreeBSD 9.1-STABLE #2: Thu Jan 31 20:41:22 CET > 2013 root@darkstar:/usr/obj/usr/src/sys/THINKPKERNEL amd64 > >>From pciconf -> > > ehci0@pci0:0:26:0: class=0x0c0320 card=0x21d217aa chip=0x1c2d8086 > rev=0x04 hdr=0x00 > vendor = 'Intel Corporation' > device = '6 Series/C200 Series Chipset Family USB Enhanced Host > Controller' > class = serial bus > subclass = USB > > > ehci1@pci0:0:29:0: class=0x0c0320 card=0x21d217aa chip=0x1c268086 > rev=0x04 hdr=0x00 > vendor = 'Intel Corporation' > device = '6 Series/C200 Series Chipset Family USB Enhanced Host > Controller' > class = serial bus > subclass = USB > > > none2@pci0:13:0:0: class=0x0c0330 card=0x21d217aa chip=0x01941033 > rev=0x04 hdr=0x00 > vendor = 'NEC Corporation' > device = 'uPD720200 USB 3.0 Host Controller' > class = serial bus > subclass = USB > >>From /var/log/messages: > > kernel: ehci0: mem > 0xf432a000-0xf432a3ff irq 16 at device 26.0 on pci0 > kernel: usbus0: EHCI version 1.0 > kernel: usbus0 on ehci0 > kernel: ehci1: mem > 0xf4329000-0xf43293ff irq 23 at device 29.0 on pci0 > kernel: usbus1: EHCI version 1.0 > kernel: usbus1 on ehci1 > kernel: usbus0: 480Mbps High Speed USB v2.0 > kernel: usbus1: 480Mbps High Speed USB v2.0 > kernel: ugen0.1: at usbus0 > kernel: uhub0: on > usbus0 > kernel: ugen1.1: at usbus1 > kernel: uhub1: on > usbus1 > kernel: Root mount waiting for: usbus1 usbus0 > kernel: Root mount waiting for: usbus1 usbus0 > kernel: uhub0: 3 ports with 3 removable, self powered > kernel: uhub1: 3 ports with 3 removable, self powered > > > -- If I put hw.usb.ehci.no_hs=1 in /boot/loader.conf the following lines > does not appear in /var/log/messages: Hi, What does usbconfig say in the latter case? Can you show output from pciconf -lv --HPS