From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 05:27:35 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 F2BB41065676 for ; Tue, 1 Apr 2008 05:27:35 +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 41EC08FC14 for ; Tue, 1 Apr 2008 05:27:35 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 558D14D5453; Tue, 1 Apr 2008 12:42:29 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id D10DC55E462 for ; Thu, 27 Mar 2008 23:53:35 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 6A7151A633B; Thu, 27 Mar 2008 15:51:23 +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 6527D1065719; Thu, 27 Mar 2008 15:51:23 +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 23C001065670 for ; Thu, 27 Mar 2008 15:51:16 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB968FC26 for ; Thu, 27 Mar 2008 15:51:15 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so1548129tid.3 for ; Thu, 27 Mar 2008 08:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=NZ84DYFA+TzW19phcJ5dQkgfqKqwyvLYjfmUAg77SuQ=; b=us8lChY4cfKcc2zuOYPf6+UB+kcS/iMB/TpQm/ICRvWnmz9MfHdhtIu+tUsd54J8ZKZ9z6/zCzB7TvTZCiJttTgY4k/cklOLQ9ZZTRDdJkvijLEzmUwVRgQkrz9vLEYdMoEKvOQKmLKoTMgxE8RxSGWj9bg1F/+aH9I1oO3ebHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=XvHes/q1oTdOIZJInb7gtrUAaPjH+Ahn7vy61ERzdcwGRPyrpDNI3bs1Exejnrudo3siDE+IOUoX8LenW2GHsJHqB5/hBPgWz4PInbZ9GQW2CMZ09sJs4KLutHZAyxuJzV23ZPszERuM2BVXcsJh9ghK7blslhyYoms1UEQ6IqQ= Received: by 10.150.201.13 with SMTP id y13mr881740ybf.100.1206633072120; Thu, 27 Mar 2008 08:51:12 -0700 (PDT) Received: by 10.150.230.16 with HTTP; Thu, 27 Mar 2008 08:51:12 -0700 (PDT) Message-ID: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> Date: Thu, 27 Mar 2008 11:51:12 -0400 From: "Alexander Sack" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-drivers@freebsd.org Subject: 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:27:36 -0000 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). Thanks! -aps -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson _______________________________________________ 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"