From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 20:24:45 2005 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 AA34C16A41F for ; Wed, 23 Nov 2005 20:24:45 +0000 (GMT) (envelope-from russell@russellmeek.net) Received: from a.mx.russellmeek.net (91.59.118.70.cfl.res.rr.com [70.118.59.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0360043D45 for ; Wed, 23 Nov 2005 20:24:44 +0000 (GMT) (envelope-from russell@russellmeek.net) Received: (qmail 76005 invoked by uid 89); 23 Nov 2005 20:24:44 -0000 Received: by simscan 1.1.0 ppid: 74949, pid: 75165, t: 1.2719s scanners: attach: 1.1.0 clamav: 0.87.1/m:34/d:1180 spam: 3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on prometheus.russellmeek.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,HTML_MESSAGE autolearn=ham version=3.1.0 Received: from unknown (HELO ?192.168.8.104?) (russell@russellmeek.net@64.212.109.78) by a.mx.russellmeek.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 23 Nov 2005 20:24:42 -0000 Message-ID: <4384D004.4010804@russellmeek.net> Date: Wed, 23 Nov 2005 15:24:36 -0500 From: Russell Meek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20051123082717.77949.qmail@web54705.mail.yahoo.com> <44br0b5jdx.fsf@be-well.ilk.org> In-Reply-To: <44br0b5jdx.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Can't compile 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: Wed, 23 Nov 2005 20:24:45 -0000 Lowell Gilbert wrote: >Don't top-post, please. > >Jose Borquez writes: > > >> Peter wrote: >>--- Jose Borquez wrote: >> >> >> >>> I made a standard install of FreeBSD 5.4 with Kern-Developer Full >>>binaries and doc, kernel source only. I attempted to compile a custom >>>kernel running: >>> make buildkernel KERNCONF=CUSTOM Then I get the following error: >>>make: don't know how to make buildkernel. Stop >>> I run it from the /usr/src/ directory. The /usr/src/ directory is >>>empty. Does that mean the source files were not installed? >>> Could someone please give me any clues as to what I am missing or have >>>done incorrectly? >>> >>> >>The /usr/src/sys directory should contain the kernel source code. Your >>claim that the /usr/src directory is empty is strange since you also say >>you are compiling a custom kernel. Where is the custom kernel config file >>if not under /usr/src/sys//conf? >> >> > > > > >>The custom kernel config file is in /usr/src/sys/i386/conf I did more reading from the FreeBSD website handbook and it said if you installed only the kernel source code that you need to compile the traditional way using: >> >> /usr/src/sys/i386/conf/config CUSTOM then change to the build directory >> >> /usr/src/sys/i386/compile/CUSTOM >> >> then run make depend. >> >> All of this worked just fine, but now when I run make install I get the following error message: >> You must build a kernel first. >> *** Error code 1 >> >> Stop in /usr/src/sys/i386/compile/CUSTOM. >> # /usr/src/sys/i386/compile/CUSTOM >> >> What is the problem here? >> >> > >In that directory, I believe you need to run "make" before "make >install". >_______________________________________________ >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" > > Jose, Delete: */usr/src/sys/i386/compile/CUSTOM* Run: *config /usr/src/sys/i386/config CUSTOM* Drop into Single User Mode if possible: *init 1* Once in Single User Mode Run: *mount -a mount -u mount -a* Then *CD* into */usr/src/sys/i386/compile/CUSTOM *and* *Run: *make depend && make && make install* When Complete, restart into your new kernel. Once rebooted, you can then delete the *kernel.old* directory under */boot* to free up some space on the */* directory. Thanks, Russell