From owner-freebsd-current@FreeBSD.ORG Thu Mar 17 06:32:54 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9745B16A4CE for ; Thu, 17 Mar 2005 06:32:54 +0000 (GMT) Received: from smtp813.mail.sc5.yahoo.com (smtp813.mail.sc5.yahoo.com [66.163.170.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 2737E43D31 for ; Thu, 17 Mar 2005 06:32:54 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.225.210 with login) by smtp813.mail.sc5.yahoo.com with SMTP; 17 Mar 2005 06:32:53 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 06401614C; Thu, 17 Mar 2005 00:32:53 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02121-05-2; Thu, 17 Mar 2005 00:32:49 -0600 (CST) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id E573F6111; Thu, 17 Mar 2005 00:32:49 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.3/8.13.3) with ESMTP id j2H6Wk9G037062; Thu, 17 Mar 2005 00:32:47 -0600 (CST) (envelope-from noackjr@alumni.rice.edu) Message-ID: <4239248E.4030005@alumni.rice.edu> Date: Thu, 17 Mar 2005 00:32:46 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0 (X11/20050313) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Smick References: <669ac2d050316073078b2e909@mail.gmail.com> <20050316211259.0BEEC5D07@ptavv.es.net> <669ac2d05031617544216b6d2@mail.gmail.com> In-Reply-To: <669ac2d05031617544216b6d2@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-current@freebsd.org Subject: Re: ATAPICAM Problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 06:32:54 -0000 On 03/16/05 19:54, Jeff Smick wrote: > On Wed, 16 Mar 2005 13:12:58 -0800, Kevin Oberman wrote: >>>Date: Wed, 16 Mar 2005 07:30:14 -0800 >>>From: Jeff Smick >>>Sender: owner-freebsd-current@freebsd.org >>> >>>If there's an idiot of the week list you can put my name on top. I >>>went back to the handbook and realized I wasn't doing the very first >>>step (I did it the first time, but not after that). I forgot to run >>>'config KERNEL' after setting new options. It works now. >>> >>>I sincerely appreciate all your efforts. >> >>Please don't do this. There was just a case on stable@ (I think) where >>someone had hosed their system this way. It can be dangerous although it >>almost always works and it is needed in current in just one case: >>* If you have installed only the kernel source code >> >>It is also safe when your sources have not changed since the last kernel >>build (which is likely the case for you), but it is NOT safe on current >>if the sources have been updated, so I tend to strongly discourage its >>use in all normal circumstances. >> >>I would suggest: >>cd /usr/src >>make -DMODULES_WITH_WORLD kernel KERNCONF=config_file_name >> >>This will only rebuild the kernel and not the modules, so it will be >>fast. It is also safe in all cases where full sources are present. > > Thank you for the tip. I only knew about the options presented in the > handbook on building a custom kernel and running "make buildkernel > KERNCONF=blah" gave me "make: don't know how to make buildkernel. > Stop" > > Is there something I need to do to be able to use that tactic or > should I just stick with your suggestion? Were you in /usr/src when you tried to 'make buildkernel KERNCONF=blah'? The buildkernel target is defined in /usr/src/Makefile.inc1 (included from /usr/src/Makefile). Therefore, 'make buildkernel' will only work in /usr/src. The handbook section on building a kernel the "new way" lists the steps as follows: 1) # cd /usr/src 2) # make buildkernel KERNCONF=MYKERNEL 3) # make installkernel KERNCONF=MYKERNEL The handbook is a bit confusing on this. It calls the config(8) kernel build the "traditional way" and 'make buildkernel' the "new way". If I am a new user and don't want to stray far from the norm, wouldn't I pick the "traditional way"? Shouldn't we make it more clear the "new way" is the "recommended and officially sanctioned way"? Jon