From owner-freebsd-usb@FreeBSD.ORG Thu May 23 06:41:40 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 38415713 for ; Thu, 23 May 2013 06:41:40 +0000 (UTC) (envelope-from cduret@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id B5571865 for ; Thu, 23 May 2013 06:41:39 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id z5so3000575lbh.13 for ; Wed, 22 May 2013 23:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=l5tnbaN+2uMxL2t5X+w7RAV0fTo+l1fdnAChFxuA790=; b=0M0jySQ5mUtnoCOrZVbmNEyJAL5cac1c0OoqVC7I32fFo8b8PipkXe1AYWn7EzHlpg l67tYFmtBjoncDzhQaKSHj3w8+FIBr5de9Pzcb7PQvL7zFRgt5jyt3DyWtfwPuXa0dTb G1paXapMiCGeozhHmi7Bfgu9haLGvwOpRvwffWJ2WPHZJAmCegb9JjBhZLK8DyRf8dgm +WEgcTWdzt72qGAdmluqTBI0cWxwwrj6iAwbSgX7r3N/vq3CDBuvCw+ufW5Pu8QxanOA mxnZQOVpvQmlugZnyeJAp2EgPw6Tz0Ro4eM9NEi3mNZ4to85dvZiiTqEA31ycoe6pF/m GDuw== MIME-Version: 1.0 X-Received: by 10.112.140.33 with SMTP id rd1mr5575145lbb.44.1369291298291; Wed, 22 May 2013 23:41:38 -0700 (PDT) Received: by 10.114.77.5 with HTTP; Wed, 22 May 2013 23:41:38 -0700 (PDT) Date: Thu, 23 May 2013 08:41:38 +0200 Message-ID: Subject: Force USB2 controller to use USB1 for virtualbox usage From: Cyrille Duret To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 06:41:40 -0000 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: kernel: Root mount waiting for: usbus1 usbus0 kernel: ugen0.2: at usbus0 kernel: uhub2: on usbus0 kernel: ugen1.2: at usbus1 kernel: uhub3: on usbus1 kernel: Root mount waiting for: usbus1 usbus0 kernel: uhub2: 6 ports with 6 removable, self powered kernel: uhub3: 8 ports with 8 removable, self powered thank you all