Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 2004 22:38:08 -0500
From:      Edward Carmody <>
Subject:   First time building new kernel 5.1-RELEASE
Message-ID:  <000001c3f119$a1cb7d90$3268a8c0@edsdell8200>

Next in thread | Raw E-Mail | Index | Archive | Help

Trying to build a new kernel, having some

First, I tried to follow the FreeBSD Handbook,
Section 9.3, Procedure 1. Building a Kernel the
``Traditional'' Way; experienced the following
issue: =================================
[root@Oberon conf]# pwd /usr/src/sys/i386/conf
[root@Oberon conf]# config OBERON 
config: OBERON:226: devices with zero units are
not likely to be correct [root@Oberon conf]# 

So I looked at line 226 of OBERON, and I saw:
device          pci

As far as I can tell, this line is exactly as it
appears in LINT; has tabs, not spaces, though I
thought whitespace was whitespace here.

I man config, and see that "The line numbers
reported in error messages are usually off by
one."  I did not experience this with a previous
mistake, but here are the lines around line 226:
device          isa
device          eisa
device          pci
device          fdc0    at isa? port IO_FD1 irq 6
drq 2
device          fd0     at fdc0 drive 0
device          fd1     at fdc0 drive 1

Again, I don't see what's wrong.

So, I tried Procedure 2. Building a Kernel the
``New'' Way: ================================= #
cd /usr/src # make buildkernel KERNCONF=MYKERNEL #
make installkernel KERNCONF=MYKERNEL

This seemed to work, since it didn't report the
weirdness the first method did, but when I
rebooted, dmesg shows:
================================= Copyright (c)
1992-2003 The FreeBSD Project. Copyright (c) 1979,
1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
        The Regents of the University of
California. All rights reserved. FreeBSD
5.1-RELEASE #0: Thu Jun  5 02:55:42 GMT 2003

This indicates that I'm not running the new
kernel, "OBERON", doesn't it?  If I check
/usr/obj/usr/src/sys, I see:
[root@Oberon sys]# pwd /usr/obj/usr/src/sys 
[root@Oberon sys]# ls GENERIC OBERON  boot
[root@Oberon sys]# 

Obviously I did something wrong; doesn't look like
I configured the machine to boot the new
kernel...but I can't find where the Handbook
addresses dumbasses like me...any help in pointing
me in the right direction is a greatly

Edward Carmody, CCNP
Systems Engineer
V: 315.234.4480 x2028
F: 646.349.3506
M: 845.649.7791

Want to link to this message? Use this URL: <$a1cb7d90$3268a8c0>