From owner-freebsd-arm@FreeBSD.ORG Wed Oct 15 16:45:50 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 56E8C1065692 for ; Wed, 15 Oct 2008 16:45:50 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (smtp.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id F3B328FC14 for ; Wed, 15 Oct 2008 16:45:49 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m9FGjgRu081664; Wed, 15 Oct 2008 10:45:47 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.3/8.14.3) with ESMTP id m9FGjeWw065326; Wed, 15 Oct 2008 10:45:40 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id m9FGjele065323; Wed, 15 Oct 2008 10:45:40 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18678.7732.431604.484585@gromit.timing.com> Date: Wed, 15 Oct 2008 10:45:40 -0600 From: John Hein To: ticso@cicely.de In-Reply-To: <20081015162140.GQ25586@cicely7.cicely.de> References: <18677.60.434738.596456@gromit.timing.com> <20081015003842.a2bd682b.stas@FreeBSD.org> <20081014.153418.1353606085.imp@bsdimp.com> <18677.7678.159413.615726@gromit.timing.com> <20081015162140.GQ25586@cicely7.cicely.de> X-Mailer: VM 7.19 under Emacs 22.2.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: arm@freebsd.org 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 16:45:50 -0000 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.