From owner-freebsd-arm@FreeBSD.ORG Wed Oct 15 17:25:28 2008 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A43F1065695 for ; Wed, 15 Oct 2008 17:25:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D6E808FC14 for ; Wed, 15 Oct 2008 17:25:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m9FHOlR0091727; Wed, 15 Oct 2008 11:24:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 15 Oct 2008 11:25:49 -0600 (MDT) Message-Id: <20081015.112549.35219823.imp@bsdimp.com> To: jhein@timing.com From: "M. Warner Losh" In-Reply-To: <18678.7732.431604.484585@gromit.timing.com> References: <18677.7678.159413.615726@gromit.timing.com> <20081015162140.GQ25586@cicely7.cicely.de> <18678.7732.431604.484585@gromit.timing.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: arm@freebsd.org, ticso@cicely.de Subject: Re: loadable drivers 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: Wed, 15 Oct 2008 17:25:28 -0000 In message: <18678.7732.431604.484585@gromit.timing.com> John Hein writes: : Bernd Walter wrote at 18:21 +0200 on Oct 15, 2008: : > On Tue, Oct 14, 2008 at 04:32:30PM -0600, John Hein wrote: : > > M. Warner Losh wrote at 15:34 -0600 on Oct 14, 2008: : > > > In message: <20081015003842.a2bd682b.stas@FreeBSD.org> : > > > Stanislav Sedov writes: : > > > : On Tue, 14 Oct 2008 14:25:32 -0600 : > > > : John Hein mentioned: : > > > : : > > > : > What needs to be done to support loadable drivers under arm/freebsd? : > > > : : > > > : I think they should work, aren't they? : > > > : > > > Build them... They work.. : > > : > > Sorry for the poor problem statement. They do load, but I'm not : > > getting into the probe or attach. At first I thought the load : > > was failing, but that was driver error (pardon the pun). : > : > Then it is likely a driver or configuration specific problem. : > One of the possible reasons is that you may missing hints, because many : > devices in embedded systems don't support probing. : > IIRC I already successfully loaded USB modules on AT91. : : Yes, it was my error... missing identify method. I've been using : drivers parented to self-identifying busses for so long, I forgot : that important little detail. : : Sorry for the gross misdirection. : : Note that loading the uftdi driver via kldload behaves differently on : arm than when it's compiled into the kernel. It boils down to : uaa->iface being NULL (in uftdi_match) in the former case and not NULL : in the latter. I haven't tracked that down yet, but kldload works : fine on x86. There's issue with loading usb drivers because it was never designed for that... Some drivers work, others don't. Warner