From owner-freebsd-usb@FreeBSD.ORG Fri Nov 7 13:03:32 2014 Return-Path: Delivered-To: freebsd-usb@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 D55C88AA for ; Fri, 7 Nov 2014 13:03:32 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94481FBA for ; Fri, 7 Nov 2014 13:03:32 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id DD0C41FE022; Fri, 7 Nov 2014 14:03:23 +0100 (CET) Message-ID: <545CC328.4070006@selasky.org> Date: Fri, 07 Nov 2014 14:03:36 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Aurelien Martin <01aurelien@gmail.com>, freebsd-usb@freebsd.org Subject: Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 13:03:32 -0000 On 11/07/14 13:25, Aurelien Martin wrote: > 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 ? > Hi, If you connect your USB device through an external full speed USB HUB, it will go full speed. It is possible to make all RPI-B devices enumerate at full speed too, but then you will have decreased network performance. Is you external USB device known to be buggy? --HPS