From owner-freebsd-questions Thu Apr 25 3:50:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp01.iprimus.net.au (smtp01.iprimus.net.au [203.134.64.99]) by hub.freebsd.org (Postfix) with ESMTP id CD95A37B41E for ; Thu, 25 Apr 2002 03:50:06 -0700 (PDT) Received: from michaelw ([210.50.110.228]) by smtp01.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.4617); Thu, 25 Apr 2002 20:50:05 +1000 Reply-To: From: "Michael Watson" To: , Subject: RE: Existing Kernel Options Date: Thu, 25 Apr 2002 18:45:28 +0800 Message-ID: <000e01c1ec46$5167af60$6401a8c0@intranet.toomuch.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020424153315.GB9479@icarus.slightlystrange.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-OriginalArrivalTime: 25 Apr 2002 10:50:05.0582 (UTC) FILETIME=[F59F7AE0:01C1EC46] 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 > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Daniel Bye > Sent: Wednesday, 24 April 2002 11:33 PM > To: freebsd-questions@FreeBSD.org > Subject: Re: Existing Kernel Options > > > On Wed, Apr 24, 2002 at 10:34:52PM +0800, Michael Watson wrote: > > Hi All > > > > I am looking to do my first kernel build, so this may be a > silly question > > but hopefully somebody can help. > > > > Excellent! Get stuck in! It's easy - ever tried to do a > kernel rebuild > under Linux? I only ever got one to work, and that for only > 10 minutes > before locking solid. That's why I moved to FreeBSD, almost > three years > ago, and I have never regretted it. > > > I don't think the kernel distributed on my CD-ROM was > compiled with the same > > kernel options as in the GENERIC configuration file. I > don't want to lose > > any existing options when I build my new kernel. > > > > I can almost guarantee that the kernel installed when you built the > system was made from the GENERIC config file. (Provided you got an > "official" CDROM, of course...) If your GENERIC kernel > config file has > been edited since, there will be a mismatch. The kernel I am running from the official distribution CD includes the firewall (which I can enable using the firewall_enable="YES" option in my rc.conf file). The GENRERIC kernel configuration off the same distribution CD does NOT include the IPFIREWALL option. The GENERIC file has not been edited, I have also re-extracted from the CD to make sure. > > Is there a way to find out what kernel options the existing > kernel was > > compiled with? > > Not sure - without the file it's hard to say. Try this, to see if the > config file was compiled into the finished image (not the case for the > GENERIC kernel, but it may shed some light): > > strings -n 3 /kernel | sed -n 's/^___//p' > MYKERNEL > > Then look at MYKERNEL - if there's anything in it, that's the config > that was used to build your kernel. I have tried this but to no avail. > Try building a kernel from the GENERIC file - if it is the > same size etc > as your running kernel, you can be fairly certain it was > built with the > GENERIC config. Good idea, I will give this a go. Although, if they are different I am not much better off and will end up tring to guess what was different. > If anyone knows how to "reverse engineer" the kernel to > reconstruct the > config file, I would be interested in seeing how... Me too. Cheers Michael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message