From owner-freebsd-questions Tue Jan 14 20:13: 9 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C616337B401; Tue, 14 Jan 2003 20:13:07 -0800 (PST) Received: from flatiron.instantemail.net (naturalcom-gw.avl.rocketlauncher.net [209.95.78.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CE0D43F13; Tue, 14 Jan 2003 20:13:06 -0800 (PST) (envelope-from benwilliams@instantemail.net) Received: from reliable-2000 (flatiron.instantemail.net [209.95.72.149]) by flatiron.instantemail.net (8.9.3/8.9.3) with ESMTP id EAA75222; Wed, 15 Jan 2003 04:13:00 GMT Date: Tue, 14 Jan 2003 23:12:38 -0500 From: Ben Williams X-Mailer: The Bat! (v1.61) Personal Reply-To: Ben Williams X-Priority: 3 (Normal) Message-ID: <1849427031.20030114231238@instantemail.net> To: owner-freebsd-questions@FreeBSD.ORG, "shen chao" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: about the kernel location In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As stated in the FreeBSD Handbook - Chapter 9 - Section 3 ( http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html ) First, let us take a quick tour of the kernel build directory. All directories mentioned will be relative to the main /usr/src/sys directory, ... Note: If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running /stand/sysinstall as root, choosing Configure, then Distributions, then src, then sys. ... Next, move to the arch/conf directory and copy the GENERIC configuration file to the name you want to give your kernel. For example: # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL Thus on i386 (intel, amd, cyrix) hardware the base configuration file will be /usr/src/sys/i386/conf/GENERIC. In the same directory you will find a LINT file that contains all the (mostly nicely commented) options you can possibly set for your kernel. On an alpha system the directory is /usr/src/sys/alpha/conf/. HTH, Ben mailto:benwilliams@instantemail.net Tuesday, January 14, 2003, 9:50:02 PM, you wrote: sc> Hi: sc> I can not find the kernel file.only under /. sc> and i don't know why there nothing under /usr/src. the version of freebsd sc> is 4.7-stable. sc> Which tool can edit the kernel? sc> Can someone direct me? sc> Thanks sc> Shen Chao sc> _________________________________________________________________ sc> Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* sc> http://join.msn.com/?page=features/junkmail sc> To Unsubscribe: send mail to majordomo@FreeBSD.org sc> with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message