From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 16 20:14:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 583BF16A41F; Wed, 16 Nov 2005 20:14:22 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E5BA43D45; Wed, 16 Nov 2005 20:14:21 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.19.149]) ([10.251.19.149]) by a50.ironport.com with ESMTP; 16 Nov 2005 12:14:21 -0800 X-IronPort-Anti-Spam-Filtered: true Message-ID: <437B931C.9080107@elischer.org> Date: Wed, 16 Nov 2005 12:14:20 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yong Ma References: <20051116032001.7C66D1CE30A@ws1-6.us4.outblaze.com> In-Reply-To: <20051116032001.7C66D1CE30A@ws1-6.us4.outblaze.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: How to make my new driver be configurable in the kernel configuration file? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2005 20:14:22 -0000 Yong Ma wrote: > >Thank you! I did as that but came across some problems,these are the jobs and the errors: > > 1) I copyed the files to the sys/dev/mydevice and added "dev/mydevice/mydevice.c optinonal mydevice" in the file /usr/src/sys/conf/files.i386, > At one stage you could add your own file called "files.MYKERNEL", where MYKERNEL is in the name given in the 'ident' line of the "MYKERNEL" file. I have not checked if this still works, but it stops you frm having to edit the supplied "files" and "files.i386" files.