From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 21 05:15:28 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 D431A16A417 for ; Fri, 21 Sep 2007 05:15:28 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp2.yandex.ru (smtp2.yandex.ru [213.180.200.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1464A13C448 for ; Fri, 21 Sep 2007 05:15:27 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:28142 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4395713AbXIUFCr (ORCPT ); Fri, 21 Sep 2007 09:02:47 +0400 X-Comment: RFC 2476 MSA function at smtp2.yandex.ru logged sender identity as: bu7cher Message-ID: <46F35074.4020901@yandex.ru> Date: Fri, 21 Sep 2007 09:02:44 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: "Patil, Kiran" References: <4AFE4AEEFA305C4BB82F73F4D819506002B93F19@orsmsx420.amr.corp.intel.com> In-Reply-To: <4AFE4AEEFA305C4BB82F73F4D819506002B93F19@orsmsx420.amr.corp.intel.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: 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: Fri, 21 Sep 2007 05:15:28 -0000 Patil, Kiran wrote: > I want to statically compile this driver into FreeBSD kernel and I want > it to get loaded when FreeBSD kernel is booted. > > 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. Hi, you can look into src/sys/conf directory. Here is lots of examples. See into files.* and options.*. -- WBR, Andrey V. Elsukov