From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 18:08:35 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F30A106564A for ; Tue, 15 Feb 2011 18:08:35 +0000 (UTC) (envelope-from dteske@vicor.com) Received: from postoffice.vicor.com (postoffice.vicor.com [69.26.56.53]) by mx1.freebsd.org (Postfix) with ESMTP id 739D38FC0A for ; Tue, 15 Feb 2011 18:08:35 +0000 (UTC) Received: from [210.177.209.182] (port=13692 helo=[192.168.1.151]) by postoffice.vicor.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) (envelope-from ) id 1PpPK9-0002QO-MF; Tue, 15 Feb 2011 10:08:32 -0800 Mime-Version: 1.0 (Apple Message framework v1081) From: Devin Teske In-Reply-To: <201102151225.p1FCPQoW094547@fire.js.berklix.net> Message-Id: References: <201102151225.p1FCPQoW094547@fire.js.berklix.net> To: "Julian H. Stacey" X-Mailer: Apple Mail (2.1081) X-Scan-Signature: 3d0a3550f3d8caf302954fca505b0856 X-Scan-Host: postoffice.vicor.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Subject: Re: Stuck X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 15 Feb 2011 18:08:35 -0000 X-Original-Date: Tue, 22 Jul 2008 10:08:18 -0700 X-List-Received-Date: Tue, 15 Feb 2011 18:08:35 -0000 On Feb 15, 2011, at 4:25 AM, Julian H. Stacey wrote: >> Where do=20 >> I locate the kernel config file? >=20 > Adding > options INCLUDE_CONFIG_FILE > to > /sys/i386/conf/GENERIC > or /sys/amd64/conf/ > allows > config -x /boot/kernel/kernel NOTE: Slightly OT, but figured it was worth the post. As a side-note, the config-file will be "cleaned up" before being = embedded into the kernel. Meaning "config -x `sysctl -n kern.bootfile`" = will rarely ever match the config that was used to generate the kernel = in the first place. Specifically, comments are removed, and if you've nested configs using = the "include" statement, redundant and/or conflicting directives will be = consolidated. If you instead wish to embed the kernel config AS-IS, comments and = structure remaining in-tact, you should instead: cd /sys/ARCH/conf config -C -g CONFIG NOTE: `/sys' ought to be a symbolic link to `/usr/src/sys' NOTE: ARCH is to be replaced with something like "i386", "amd64", etc. NOTE: CONFIG is to be replaced with something like "GENERIC", "PAE", = "MYCUSTOMKERNELCONFIG", etc. Then one simply does the following to compile the kernel: cd ../../compile/CONFIG make depend make BUT... then again not everybody: a. compiles their own custom kernels b. uses a custom config c. needs to be able to extract the config verbatim from the compiled = kernel YNMV (Your Needs May Vary). -- Devin >=20 > Cheers, > Julian > --=20 > Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich = http://berklix.com > Mail plain text; Not quoted-printable, Not HTML, Not base 64. > Reply below text sections not at top, to avoid breaking cumulative = context. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" -- Cheers, Devin Teske -> CONTACT INFORMATION <- Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.teske@fisglobal.com -> LEGAL DISCLAIMER <- This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. -> END TRANSMISSION <-