From owner-freebsd-arm@FreeBSD.ORG Tue Jul 14 15:21:29 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B0FA1065674 for ; Tue, 14 Jul 2009 15:21:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.tele2.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id A54378FC08 for ; Tue, 14 Jul 2009 15:21:28 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=vWjDCZN0tDgA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=-bknNYTd5aTdK7hKIjcA:9 a=QmwLY4xX3qrnrpg8YZINQKp5khgA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 536407275; Tue, 14 Jul 2009 17:21:27 +0200 From: Hans Petter Selasky To: Krassimir Slavchev Date: Tue, 14 Jul 2009 17:21:09 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA1; KDE/4.2.4; i386; ; ) References: <4A5C3BF5.9030200@bulinfo.net> <200907141349.00740.hselasky@c2i.net> <4A5C92DB.7030701@bulinfo.net> In-Reply-To: <4A5C92DB.7030701@bulinfo.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907141721.10364.hselasky@c2i.net> Cc: freebsd-arm@freebsd.org Subject: Re: ohci not detected on at91rm9200? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 15:21:29 -0000 On Tuesday 14 July 2009 16:14:51 Krassimir Slavchev wrote: > Hans Petter Selasky wrote: > > On Tuesday 14 July 2009 13:36:12 Krassimir Slavchev wrote: > >> Hans Petter Selasky wrote: > >>> On Tuesday 14 July 2009 10:04:05 Krassimir Slavchev wrote: > >>>> Hi, > > > > Hi, > > > > %grep -d recurse ohci_atmelarm.c . > > ./files:dev/usb/controller/ohci_atmelarm.c optional ohci at91rm9200 > > > > The option is already there, but you need to add: > > > > device at91rm9200 > > > > To your kernel config file. > > Ahh, where this is documented? This device is missing in other > at91rm9200 kernel config files in sys/arm/conf . See Warner's patch. It's not documented, more of a hack. > > > Maybe you also want to test the device port: > > > > ./files:dev/usb/controller/at91dci_atmelarm.c optional at91dci > > at91rm9200 > > > > Requires usb_template module and ustorage module. > > You mean: > device at91dci > device usb_template > device usfs > > ugen0.2: at usbus0 > ugen0.2: at usbus0 (disconnected) > ugen0.2: at usbus0 > ustorage_fs0: on usbus0 > > umass0: FreeBSD foundation USB Memory Stick, rev 1.10/1.00, addr 5 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 1.000MB/s transfers > da0: 4MB (8192 512 byte sectors: 64H 32S/T 4C) > > Reading produces only zeros but I am not sure whether device port is > initialized or not, most probably not. > That's like expected. You need to format the image, hence it is only a RAM disk of 4MBytes. It there is also an ethernet DCI profile. See: sysctl hw.usb.template=1 And you need: device if_cdce In the kernel config. --HPS