From owner-freebsd-questions Sun Oct 6 7: 4:56 2002 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 0EC1037B401 for ; Sun, 6 Oct 2002 07:04:54 -0700 (PDT) Received: from serv1.wallnet.com (server1.wallnet.com [208.225.162.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 483C843E6A for ; Sun, 6 Oct 2002 07:04:53 -0700 (PDT) (envelope-from timothyk@serv1.wallnet.com) Received: (from root@localhost) by serv1.wallnet.com (8.11.5/8.11.5) id g96E4jx85326; Sun, 6 Oct 2002 10:04:45 -0400 (EDT) (envelope-from timothyk@serv1.wallnet.com) Received: from localhost (timothyk@localhost) by serv1.wallnet.com (8.11.5/8.11.5av) with ESMTP id g96E4hS85318; Sun, 6 Oct 2002 10:04:44 -0400 (EDT) (envelope-from timothyk@serv1.wallnet.com) X-Authentication-Warning: serv1.wallnet.com: timothyk owned process doing -bs Date: Sun, 6 Oct 2002 10:04:43 -0400 (EDT) From: Tim Kellers To: Nathan Kinkade Cc: Subject: Re: compile kernel - copy it to another machine? In-Reply-To: <20021005113504.267380da.nkinkade@dsl-only.net> Message-ID: <20021006095222.W84455-100000@serv1.wallnet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I can only think of 2 options that I've had to be careful with; the first is the CPU type -be sure to allow the proper CPU type, like below. # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.38 2002/01/25 17:41:40 murray Exp $ machine i386 #cpu I386_CPU #cpu I486_CPU #cpu I586_CPU cpu I686_CPU ident REMUS The second is the multi-processor option, below. I have both single and dual processor machines that I compile the kernel for and some machines, notably a Dell Poweredge 2400 with a single PIII 733 MHz processor, spontaneously reboot if this option isn't commented out. # To make an SMP kernel, the next two are needed #options SMP # Symmetric MultiProcessor Kernel #options APIC_IO # Symmetric (APIC) I/O I use a Dell C600 laptop to do most of my kernel compiling; laptops seem to flush out more bugs than my server/desktop/workstations. If you send me your source, I can try and compile it and run it on one or two of my development boxes, or if you want, I can send you a kernel that I know works. Tim Kellers CPE/NJIT On Sat, 5 Oct 2002, Nathan Kinkade wrote: > On Sat, 5 Oct 2002 13:29:21 -0400 (EDT) > Tim Kellers wrote: > > > I have several custom kernel source files that I compile on my fastest > > machine and "make installkernel" on my slower desktop and server > > machines. > > > > Granted, the kernel files are bigger than normal --I keep many options > > that are not specifically required in the sourcfe files that I don't > > need; it just keeps me a bit more sane to only change machine specific > > options. > > I have all of /usr/src exported from the machine I use to compile and > > I > > have the exported /usr/src mounted on the machine on which I want to > > install. > > > > I use the same method to "make buildworld," too. It's very helpful > > when upgrading the 18 odd workstations we have in our computer labs, > > too. > > > > I know there may be pitfalls in this type of mass install but, so far, > > I've been bitten by very few bugs. > > > > > > Tim Kellers > > CPE/NJIT > > What sort of pitfalls could be expected? The reason this issue has come > up for me is I've been working on getting a diskless workstation going. > The diskless workstation will boot off NICs boot-ROM and will load the > kernel compiled on my faster machine, but as soon as the kernel finishes > loading the machine just reboots. I can't find documentation anywhere > that speaks of problems associated with compiling on one machine and > then distributing that kernel to other, possibly heterogenous, machines. > It appears that the `make' process somehow factors in machine specific > information, exclusive of that in the kernel config file. Is this > accurate? > > Nathan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message