From owner-freebsd-questions@FreeBSD.ORG Wed Feb 11 19:38:16 2004 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 C654B16A4CE for ; Wed, 11 Feb 2004 19:38:16 -0800 (PST) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.5.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADD9D43D1F for ; Wed, 11 Feb 2004 19:38:16 -0800 (PST) (envelope-from ecarmody@optonline.net) Received: from edsdell8200 (ool-4354dca5.dyn.optonline.net [67.84.220.165]) by mta4.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HSY002TYCRRDE@mta4.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Wed, 11 Feb 2004 22:38:16 -0500 (EST) Date: Wed, 11 Feb 2004 22:38:08 -0500 From: Edward Carmody To: freebsd-questions@freebsd.org Message-id: <000001c3f119$a1cb7d90$3268a8c0@edsdell8200> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.4510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Subject: First time building new kernel 5.1-RELEASE 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: Thu, 12 Feb 2004 03:38:16 -0000 Hi, Trying to build a new kernel, having some issues... 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, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GEN ERIC ================================= 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 appreciated. Edward Carmody, CCNP Systems Engineer ShoreGroup V: 315.234.4480 x2028 F: 646.349.3506 M: 845.649.7791 ecarmody@shoregroup.com