From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 07:28:09 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 A03E437B404 for ; Sat, 19 Apr 2003 07:28:09 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id D615C43FA3 for ; Sat, 19 Apr 2003 07:28:07 -0700 (PDT) (envelope-from mwm-dated-1051194487.705ba5@mired.org) Received: (qmail 28848 invoked from network); 19 Apr 2003 14:28:07 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 19 Apr 2003 14:28:07 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Sat, 19 Apr 2003 09:28:06 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16033.23798.356601.919618@guru.mired.org> Date: Sat, 19 Apr 2003 09:28:06 -0500 To: =?iso-8859-1?q?Paul=20Jansen?= In-Reply-To: <20030419053455.63747.qmail@web40109.mail.yahoo.com> References: <20030419053455.63747.qmail@web40109.mail.yahoo.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.74 (Citation) cc: questions@freebsd.org Subject: Re: compiling kernel for another machine then installing - how? 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: Sat, 19 Apr 2003 14:28:09 -0000 In <20030419053455.63747.qmail@web40109.mail.yahoo.com>, Paul Jansen typed: > I've also looked in the handbook but it doesn't > discuss this issue. > Basically I've got a slow machine and a much faster > machine. I wanted to compile the kernel for the > slower machine on the faster one to save a lot of > time. I've followed the directions in the handbook to > compile a kernel as normal but I'm not sure exactly > what I need to copy and where. Is it easier to NFS > mount to do this? I tried and ran into some pathing > issues. > Can anyone help? What you need to copy depends on which version of FreeBSD you are running. With 4.x, you need to get /kernel and the contents of /modules into place. With 5-whatever, you just need the contents of /boot/kernel. For 4.x, if you are just building a custom kernel for a system that is already running from the sources you started with, you can copy either /usr/src/sys/compile/CONFIGNAME/kernel (traditional kernel build methodology) or /usr/obj/usr/src/sys/CONFIGNAME/kernel (make buildkernele methodology) over, and use the /modules that is already installed. If you need to install /modules, it's probably easiest to NFS-mount the /usr/src and /usr/obj on the target system and do a "make install". The trick here is that you have to mount /usr/src with the same path name as it has on the fast system, as that path name is used in the object tree. So if it's really /usr/src on your fast system, mount it as /usr/src on the slow one. If it's really in /my/scratch/disk/freebsd/src and /usr/src is a symlink to that, you have to mount it as /my/scratch/disk/freebsd/src on the slow system, and create the symlink if you want. /usr/obj doesn't have that requirement, but I do it the same way anyway. The only way I know of to do this for 5.0 is the NFS-mount and install, but I haven't really gotten into 5.0. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.