From owner-freebsd-questions@FreeBSD.ORG Tue Dec 23 14:31:42 2003 Return-Path: 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 9D8BB16A4CE for ; Tue, 23 Dec 2003 14:31:42 -0800 (PST) Received: from blacklamb.mykitchentable.net (67-51-118-244.dsl1.elk.ca.frontiernet.net [67.51.118.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D2EC43D41 for ; Tue, 23 Dec 2003 14:31:40 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: from mykitchentable.net (unknown [165.107.42.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 095C23BF356; Tue, 23 Dec 2003 14:31:38 -0800 (PST) Message-ID: <3FE8C24A.6050001@mykitchentable.net> Date: Tue, 23 Dec 2003 14:31:38 -0800 From: Drew Tomlinson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rowdy References: <3FE8B435.2020104@fielden.com.au> In-Reply-To: <3FE8B435.2020104@fielden.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Questions Subject: Re: compiling a kernel on a different machine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2003 22:31:42 -0000 Rowdy told a big fish story including the following on 12/23/2003 1:31 PM: > Greetings, > > My attempts to compile a (5.1-RELEASE) kernel on a very old PC take > around 5 hours (of compile time), while a much faster machine sits by > idle. It would be great to be able to compile the kernel on the > faster machine and transfer it to the older machine. > > Would I be correct in thinking that the simplest way to do this would > be to execute the compile AND the install on the fast PC, then copy > the /boot/kernel directory from the fast PC to the old PC? I realise > I would need to rename /boot/kernel.old back to /boot/kernel on the > fast PC so it would boot again. > > Or is there a better way without disrupting /boot on the fast PC? Apologies if this get posted as html. I'm trying a new mail client and may not have it configured correctly yet. Anyway, there is a better way. I briefly looked through the TOC of the handbook but could not find the page I was looking for. However, I know I've seen it somewhere. The basic procedure is to have your fast machine do the make buildworld and make buildkernel steps and then mount /usr/src and /usr/obj from the fast machine to the slow machine. Then do the make installkernel and make installworld steps on the slow machine, thus copying the files that were built on the fast machine. Maybe someone else will post the link to the detailed steps that I can't find at the moment. HTH a little, Drew