From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 20 22:47:57 2007 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 93F1D16A469 for ; Thu, 20 Sep 2007 22:47:57 +0000 (UTC) (envelope-from kiran.patil@intel.com) Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by mx1.freebsd.org (Postfix) with ESMTP id 6E91B13C4A7 for ; Thu, 20 Sep 2007 22:47:57 +0000 (UTC) (envelope-from kiran.patil@intel.com) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 20 Sep 2007 15:19:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.20,280,1186383600"; d="scan'208,217";a="283199157" Received: from orsmsx335.jf.intel.com ([10.22.226.40]) by azsmga001.ch.intel.com with ESMTP; 20 Sep 2007 15:19:23 -0700 Received: from orsmsx420.amr.corp.intel.com ([10.22.226.89]) by orsmsx335.jf.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Sep 2007 15:19:22 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 20 Sep 2007 15:19:18 -0700 Message-ID: <4AFE4AEEFA305C4BB82F73F4D819506002B93F19@orsmsx420.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help with statically compiling and linking simple hello worlds kind of driver with FreeBSD kernel thread-index: Acf71EkQDpTj0NydSbym7/ZQjZmwmw== From: "Patil, Kiran" To: X-OriginalArrivalTime: 20 Sep 2007 22:19:22.0953 (UTC) FILETIME=[4BF7FB90:01C7FBD4] Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Help with statically compiling and linking simple hello worlds kind of driver with FreeBSD kernel X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 22:47:57 -0000 Hi, =20 I am newbie FreeBSD driver developer. =20 I developed dynamically loaded module for simple hello world kind of driver. I can successfully dynamic load and unload the module (hello.ko). There are other supporting files such as hello_1.c, hello_2.c and hello.h which hets compiled when I compile hello driver. =20 I want to statically compile this driver into FreeBSD kernel and I want it to get loaded when FreeBSD kernel is booted. =20 I am looking for BKM, how to do this? Any help is appreciated. If there is any example exist for this, can you please point me to it. =20 Thanks in advance. =20 -- Kiran P.