From owner-freebsd-questions@FreeBSD.ORG Tue Dec 4 18:28:08 2007 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 2D20816A46B for ; Tue, 4 Dec 2007 18:28:08 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from exhub015-2.exch015.msoutlookonline.net (exhub015-2.exch015.msoutlookonline.net [207.5.72.94]) by mx1.freebsd.org (Postfix) with ESMTP id 17B3013C461 for ; Tue, 4 Dec 2007 18:28:07 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.0.744.0; Tue, 4 Dec 2007 10:28:07 -0800 Message-ID: <47559C36.3040805@riderway.com> Date: Tue, 4 Dec 2007 13:28:06 -0500 From: "Philip M. Gollucci" Organization: Riderway Inc. User-Agent: Thunderbird 2.0.0.6 (X11/20070919) MIME-Version: 1.0 To: "Patrick.Baldwin@studsvik.com" References: <4755900F.3080906@studsvik.com> <475594E1.90702@riderway.com> <47559CF4.6050605@studsvik.com> In-Reply-To: <47559CF4.6050605@studsvik.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: "Philip M. Gollucci" , "freebsd-questions@freebsd.org" Subject: Re: Determining kernel? 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: Tue, 04 Dec 2007 18:28:08 -0000 Patrick Baldwin wrote: > Philip M. Gollucci wrote: >> Patrick Baldwin wrote: >>> I was reading through the handbook section on updating, as I'd >>> like to update a FreeBSD 6.2 system. One of the things I noticed >>> is that you need to specify what kernel you want in the KERNCONF >>> line. Is there any way to get a running FreeBSD system to tell >>> me what kernel is being used? >> uname -a >> FreeBSD philip.hq.rws 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Nov 6 >> 16:28:12 EST 2007 >> pgollucci@philip.hq.rws:/usr/obj/usr/src/sys/RIDERWAY i386 >> >> Notice the path at the end. >> > > OK, the path at the end for me is: > /usr/obj/usr/src/sys/SMP i386 That is GENERIC with except that is has support mutiple CPUs > > However, when I use uname -i as someone else suggested, it gives me: > SMP-GENERIC > > So which do I substitute for MYKERNEL in the KERNCONF lines: > > make buildkernel KERNCONF=MYKERNEL > make installkernel KERNCONF=MYKERNEL make buildkernel KERNCONF=SMP OR, you can do echo "KERNCONF?=SMP" >> /etc/make.conf make buildkernel make installkernel In 7.0+ its /etc/src.conf If you ever compile a custom kernel you'd use that name instead. -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.