Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2011 18:08:35 -0000
From:      Devin Teske <dteske@vicor.com>
To:        "Julian H. Stacey" <jhs@berklix.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Stuck 
Message-ID:  <C66259A3-EC5C-44BA-9921-6B02C8E7632E@vicor.com>
In-Reply-To: <201102151225.p1FCPQoW094547@fire.js.berklix.net>
References:  <201102151225.p1FCPQoW094547@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <-




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C66259A3-EC5C-44BA-9921-6B02C8E7632E>