From owner-freebsd-questions@FreeBSD.ORG Wed Oct 11 08:34:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5D86216A412 for ; Wed, 11 Oct 2006 08:34:24 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3D9343D5A for ; Wed, 11 Oct 2006 08:34:23 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id k9B8YNOe019108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 11 Oct 2006 01:34:23 -0700 X-Auth-Received: from [128.208.5.99] (nilakantha.cs.washington.edu [128.208.5.99]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id k9B8YNqS018134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 11 Oct 2006 01:34:23 -0700 Message-ID: <452CAC8F.2000401@u.washington.edu> Date: Wed, 11 Oct 2006 01:34:23 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20061011084014.W23849@192.168.11.51> In-Reply-To: <20061011084014.W23849@192.168.11.51> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.0.266434, Antispam-Engine: 2.4.0.264935, Antispam-Data: 2006.10.11.5442 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: custom kernel, make buildkernel and then? 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: , X-List-Received-Date: Wed, 11 Oct 2006 08:34:24 -0000 Zbigniew Szalbot wrote: > Hello, > > Hope you can advise me. I have a FreeBSD 6.1 stable system for which I > want to build a custom kernel. However, I am scared to death (almost > ;) and just want to make sure I have it done the right way. > > I have in the past used supfile with ports-all option and couldn't > build a custom kernel. Yesterday it dawned on me that I need sources > for that, not ports. So I ran cvsup with src-all option. Now, I > followed these steps: > > # cd /usr/src/sys/i386/conf > # mkdir /root/kernels > # cp GENERIC /root/kernels/LISTS > # ln -s /root/kernels/LISTS > > then I used procedure 2 for building the kernel the new way. > > # cd /usr/src > # make buildkernel KERNCONF=LISTS > > It all went well without any complaint (I was really puzzled - when it > comes to IT, I usually see half-empty glasses...) but now I wonder. My > next step is supposed to be make installkernel KERNCONF=LISTS > > Is it OK to do it on an already configured system? I have some usual > applications like php, mysql, apache, exim MTA configured and working. > So in other words I am trying to build a custom kernel not on a fresh > install but on an already working system (operating for 25 days). It > is not a webserver but it is running and needs these apps. My fear is > that I am likely to break something. > > Have I done the right steps? Do you think I can progress with make > installkernel? > > I have also a question about the last command in the recipe: > >> Now, shutdown the system and reboot to use your new kernel. > > Will shutdown -r now be enough? Or do I have to boot in single user mode? > > Sorry if all of these seems obvious. I am new to FreeBSD. Thank you > very much in advance! > > Warm regards, > > -- > Zbigniew Szalbot Building and installing a new custom kernel? Usually the steps consist of: 1. Edit kernel config file. 2. If you have the symlink set correctly, or the file located in the right place, just run make buildkernel installkernel KERNCONF=[configfile name] (or if you feel slick, specify the name in /etc/make.conf and run make buildkernel installkernel). 3. Reboot. -Garrett