Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Oct 2002 10:04:43 -0400 (EDT)
From:      Tim Kellers <timothyk@serv1.wallnet.com>
To:        Nathan Kinkade <nkinkade@dsl-only.net>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: compile kernel - copy it to another machine?
Message-ID:  <20021006095222.W84455-100000@serv1.wallnet.com>
In-Reply-To: <20021005113504.267380da.nkinkade@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <timothyk@serv1.wallnet.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021006095222.W84455-100000>