From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 12:13:44 2008 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 722911065670 for ; Mon, 8 Sep 2008 12:13:44 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 2A2DA8FC1F for ; Mon, 8 Sep 2008 12:13:43 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so825427yxb.13 for ; Mon, 08 Sep 2008 05:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=dX8sPApo24WPt5o87BYDHz0ROZKZUwHWwCAkrTJfrMk=; b=qYUl1AYNJ+hGlrHt1Wb4bcII3gdTy01R7PfgX60NeGOpF4ZD6uZRs0bf4yho8ibeHm GdEA3oHY2nqG/sbNMDCTGx2jCxFOh+x5JrumUDgstUfODDYj+/QRjgPs7lcUwJg8bFto Q0p8jfEgooDK/sznQ+iyevKNb0oCdU6Wqk58o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=KEHBUKd+FxZy7xKPMZbM3+TDtlvupSbjtbYXzfrfD2PWlsWNcuiV1M8N1w3pkjMZTW 2Tscgmtd26DxYsQA7A4ox5X/1EucngNO1Di/jghpQwDzRjnqfNBlY2wRNARJqTLg59Sk Bd4jFKqZdaC63dKn3aYff0HYPvwYt9itBglUA= Received: by 10.103.52.13 with SMTP id e13mr10147427muk.80.1220876022240; Mon, 08 Sep 2008 05:13:42 -0700 (PDT) Received: from atlantis.dyndns.org ( [85.73.164.101]) by mx.google.com with ESMTPS id w5sm17188013mue.10.2008.09.08.05.13.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Sep 2008 05:13:41 -0700 (PDT) Message-ID: <48C516F2.8090103@gmail.com> Date: Mon, 08 Sep 2008 15:13:38 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.16 (X11/20080829) MIME-Version: 1.0 To: mohd hilmi mohd salleh References: <157836.23401.qm@web51404.mail.re2.yahoo.com> In-Reply-To: <157836.23401.qm@web51404.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Error :Code 1 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: Mon, 08 Sep 2008 12:13:44 -0000 mohd hilmi mohd salleh wrote: > I try to build and install custom kernel.However when i write this command, > > make buildkernel KERNCONF=MYKERNEL > > I got this error: > > ERROR:Missing kernel configuration file(s) (MYKERNEL) > ****Error code 1 > > Stop in /usr/src > ****Error code 1 > > Stop in /usr/src > > Can somebody help me! > > Thanks, > -Hilmi > > Let me guess, you have been reading the Handbook and taken the instructions *too* literally ;) MYKERNEL is your kernel configuration file, and you should create it yourself by hand, before running the command. You can start with a copy of GENERIC. Better to keep it in your own folder rather than /usr/src/sys/i386/conf. (I assume you use the i386 version) Example (as root): cd /usr/src/sys/i386/conf cp GENERIC /root/MYKERNEL ln -s /root/MYKERNEL . Now edit /root/MYKERNEL and make any changes you wish. Then run your make command. (Note: Typically, you will name it after the machine's hostname rather than MYKERNEL)