From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 13:20:22 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B5B5E106564A for ; Mon, 20 Aug 2012 13:20:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 740758FC14 for ; Mon, 20 Aug 2012 13:20:22 +0000 (UTC) Received: from r56.edvax.de (port-92-195-49-179.dynamic.qsc.de [92.195.49.179]) by mx02.qsc.de (Postfix) with ESMTP id 6B85427A6E; Mon, 20 Aug 2012 15:20:21 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q7KDKKl2002305; Mon, 20 Aug 2012 15:20:21 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 20 Aug 2012 15:20:20 +0200 From: Polytropon To: Jamie Paul Griffin Message-Id: <20120820152020.fbe1ff20.freebsd@edvax.de> In-Reply-To: <20120820131344.GA6963@kontrol.kode5.net> References: <20120820131344.GA6963@kontrol.kode5.net> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Issue with kernel building X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2012 13:20:22 -0000 On Mon, 20 Aug 2012 14:13:44 +0100, Jamie Paul Griffin wrote: > == Michael Powell wrote on Sun 19.Aug'12 at 19:43:14 -0400 == > > > Keep in mind whenever you install a new kernel your present kernel (and its > > matching modules) get moved to kernel.old. What this means is that the > > GENERIC you have with a base install will be moved to kernel.old and can be > > used in the event the new kernel won't boot. Realize this: after the next > > rebuild process this kernel.old will be replaced _again_. In which case you > > might now have 2 broken kernels with not an easy way to recover. > > Very good point! I'd clear the /usr/src/obj directory as pointed out, > then build a generic kenel, install it and boot from it. Then you > know you've got a working kernel to fall back on. You could then make a copy of that kernel, e. g. from its initial installation location /boot/kernel to /boot/kernel.GENERIC. If you continue building a custom kernel, /boot/kernel will be overwritten. In worst case, you can unload your custom kernel at the loader prompt, load kernel.GENERIC instead and boot the system with that definitely working kernel. > At that point rebuild your custom kernel with correct commands > as pointed out in the previous response by Michael; i.e. > `make buildkernel KERNCONF=MYKERNEL` ... etc. Again, I may point to The FreeBSD Handbook, the section regarding building world and kernel, as well as the instructions in the comment header of /usr/src/Makefile. Following those advices should be easy and provide you with a procedure that reliably works. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...