From owner-freebsd-arm@FreeBSD.ORG Thu Oct 25 20:21:10 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA10AE7B; Thu, 25 Oct 2012 20:21:10 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [173.228.5.8]) by mx1.freebsd.org (Postfix) with ESMTP id A08908FC1B; Thu, 25 Oct 2012 20:21:10 +0000 (UTC) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 7F5E3B827; Thu, 25 Oct 2012 13:12:51 -0700 (PDT) To: Stefan Esser Subject: Re: Raspberry PI gets USB support [FreeBSD 10 current] In-reply-to: Your message of "Thu, 25 Oct 2012 11:50:20 +0200." <50890B5C.2080406@freebsd.org> References: <201209101654.00891.hselasky@c2i.net> <201209122135.03654.hselasky@c2i.net> <50890B5C.2080406@freebsd.org> Comments: In-reply-to Stefan Esser message dated "Thu, 25 Oct 2012 11:50:20 +0200." Date: Thu, 25 Oct 2012 13:12:51 -0700 From: Bakul Shah Message-Id: <20121025201251.7F5E3B827@mail.bitblocks.com> Cc: freebsd-arm@freebsd.org, Alexander Yerenkow X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 20:21:10 -0000 On Thu, 25 Oct 2012 11:50:20 +0200 Stefan Esser wrote: > There is the link to a message by Greg Kroah-Hartman, where he > declares the Broadcom USB hardware "broken", at least in the sense > that no information exists for free software writers to let them > make USB work well. There also is mention of a Plan9 driver for > the USB on RPI, we might want to check whether it offers any insight. > Since all nearly all peripherals including Ethernet are connected to > USB on the RPI, good USB support is very important to use the RPI > as more than a toy. The Plan9 USB driver is far simpler than the Linux driver (but not as functional. The only publicly available "documentation" is the Linux driver). More work remains but I can already connect usb keyboard, mouse, access ethernet etc. I haven't tried accessing a usb disk since the emmc driver works so well (example: the plan9 kernel compiles in a minute). Credit for this work to Richard Miller. Raspi related code is here: http://plan9.bell-labs.com/sources/contrib/miller/9/rpi/ You will need files in other directories to make sense of this. The entire plan9 src tree (minus the dir above) is @ http://plan9.bell-labs.com/sources/extra/plan9.src.bz2 You can browse @ http://plan9.bell-labs.com/sources/plan9/sys/src/9/ http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/usb etc. If you are looking at just the low level usb code, you won't need much plan9 knowledge.