From owner-freebsd-newbies@FreeBSD.ORG Sun Jan 30 01:26:13 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17BCB16A4CE for ; Sun, 30 Jan 2005 01:26:13 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id A78ED43D3F for ; Sun, 30 Jan 2005 01:26:12 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc91.asp.att.net (sccimhc91) with ESMTP id <20050130012611i91001ogife>; Sun, 30 Jan 2005 01:26:12 +0000 Message-ID: <41FC37B2.7020501@nbritton.org> Date: Sat, 29 Jan 2005 19:26:10 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 1.0 (X11/20041230) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mrad James Deane References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-newbies@freebsd.org Subject: Re: kernel compile problem X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 01:26:13 -0000 Mrad James Deane wrote: > Hi,i have follow the freebsd handbook on how to compile a kernel but i > have a problem : > when compile : i have the following message : > make:don't know how to make buildkernel.Stop > i'm using freebsd 5.2.1 release and i have removed NoAtm=true on > make.conf > Plz help, > Thanks > > You are using the wrong procedure, buildkernel is used only when building world (nevermind, I looked at the handbook, this is the "new way"), I personally do it the "old way" and its never failed me: cd /usr/src/sys/i386/conf config MYKERNEL cd ../compile/MYKERNEL make depend && make && make install It's only one more line then the new way, in fact I could do it all on one line if I wanted: cd /usr/src/sys/i386/conf && config MYKERNEL && cd ../compile/MYKERNEL && make depend && make && make install You can do the same thing with the "new way" too: cd /usr/src && make buildkernel KERNCONF=MYKERNEL && make installkernel KERNCONF=MYKERNEL if you set KERNCONF in /etc/make.conf you could leave that out, then you would have this: cd /usr/src && make buildkernel && make installkernel If your wondering what "&&" does, it means do this and then do that but only if the first command worked (has an exit status of zero, aka true). The opposite would be "||", what that means is do this if the first command failed (has an exit status of non-zero, aka false). What Hexren said "you need to cd into /usr/src" is most likey true.