From owner-freebsd-usb@FreeBSD.ORG Fri Nov 7 12:25:19 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF398C10 for ; Fri, 7 Nov 2014 12:25:19 +0000 (UTC) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 899DEB57 for ; Fri, 7 Nov 2014 12:25:19 +0000 (UTC) Received: by mail-qg0-f54.google.com with SMTP id q108so2220519qgd.41 for ; Fri, 07 Nov 2014 04:25:18 -0800 (PST) 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=S0+uJCXE8QLrCrxfTRHgM+FUBTAz/0mzKhJ9gdRvteA=; b=pLVWNgc2Cxhx5icg+Ry+64tbNeGQieps3Pe/jRzt4WC3ThNr48EtU9TJGPrIYauAZR JT1MgWDBm6HR3/+toOycuFGFgVR7yGe7JRlM/K3HTPfxUC3m5bq/jbN3Yd5+jQxF3KiS V4185RrbxrSKNIoMx02C29FjzzNk/gNiTEP4WunHRsM/BMBAM5M2AQdTDdSPEcfDu0T0 fzN1VW0IHHuDrdLJbIQ4GeyF1otfx/IJSyaoSrw3oLR81TDVXVnZtkEDZvpt8rXsjFgd XHUTPmjiFoG2h7BMoFWt/yjokEdFLE2I/LViLfJGiJdCPrUT/NbtoMuLApn3oQtXdnK6 3Apg== MIME-Version: 1.0 X-Received: by 10.224.4.197 with SMTP id 5mr17038113qas.74.1415363118653; Fri, 07 Nov 2014 04:25:18 -0800 (PST) Received: by 10.96.169.229 with HTTP; Fri, 7 Nov 2014 04:25:18 -0800 (PST) Date: Fri, 7 Nov 2014 13:25:18 +0100 Message-ID: Subject: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB From: Aurelien Martin <01aurelien@gmail.com> To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 12:25:20 -0000 Dear all, My raspberry-pi is crashing in g_vfs_done error 5 () when I'm trying to copy data from the rpi (with dd) to my USB drive on UFS2 I can notice a high %system load ~100% on the rpi before the crash Apparently people succeed to "fix it" by decreasing the speed of the USB bus with sysctl hw.usb.ehci.no_hs = 1 But in my case I cannot set this sysctl. And I didn't succeed to fix it with camcontrol Can you guide me on my investigation to decrease the speed of USB ? Thanks for your work. Cheers,Aurelien Log -- # uname -a FreeBSD rpi-aurelien 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271779: Fri Sep 19 01:18:53 UTC 2014 root@grind.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B arm # sysctl hw.usb.ehci sysctl: unknown oid 'hw.usb.ehci': No such file or directory # usbconfig -d ugen0.5 show_ifdrv ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) ugen0.5.0: umass0: # camcontrol devlist at scbus0 target 0 lun 0 (da0) # kldstat -v | grep ehci 47 ehci/usbus