From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 05:18:53 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F3B61065969; Tue, 1 Apr 2008 05:18:53 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8053E8FC1D; Tue, 1 Apr 2008 05:18:52 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 486E54D4A38; Tue, 1 Apr 2008 13:11:31 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 7A94055E491 for ; Fri, 28 Mar 2008 03:25:39 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 57A021A79B4; Thu, 27 Mar 2008 19:25:25 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8820410656D4; Thu, 27 Mar 2008 19:25:24 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BABC7106564A for ; Thu, 27 Mar 2008 19:25:13 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outF.internet-mail-service.net (outf.internet-mail-service.net [216.240.47.229]) by mx1.freebsd.org (Postfix) with ESMTP id A838B8FC17 for ; Thu, 27 Mar 2008 19:25:13 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Thu, 27 Mar 2008 17:47:27 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 241992D6004; Thu, 27 Mar 2008 12:25:12 -0700 (PDT) Message-ID: <47EBF498.9090409@elischer.org> Date: Thu, 27 Mar 2008 12:25:12 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Alexander Sack References: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> In-Reply-To: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-hackers@freebsd.org Errors-To: owner-freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: Stupid driver build/debug questions X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:18:53 -0000 Alexander Sack wrote: > Hello: > > New to the FreeBSD kernel and I'm investigating a driver problem > (wasn't sure what list this should go on). > > I was wondering how to make a driver statically built instead of a > loadable module? Is this an artifact of the driver source build or > the generic kernel configuration mechanism via options etc.? i.e. > does a driver need to use something different than the bsd.kmod.mk > template make file to build a static driver. > > What I am trying to do is break at attach time more easily than > stepping through driver_probe_and_attach()/driver_attach_child() until > the attach routine gets called. I realize I can add a kdb_enter() but > I was trying to do this on a live system without rebuilding the kernel > (I understand this contradicts my first question but I still want to > know how to build drivers statically). put the filennames in /sys/conf/files or files.i386 (or whatever) at one stage you could also have a files.{CONFIGNAME} but I haven't tried that for a long time. > > Thanks! > > -aps > _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"