First time building new kernel 5.1-RELEASE

From: Edward Carmody (ecarmody_at_optonline.net)
Date: 02/12/04

  • Next message: Lockergnome: "Web Developers - Happy Hearts And HDTV! - Lockergnome"
    Date: Wed, 11 Feb 2004 22:38:08 -0500
    To: freebsd-questions@freebsd.org
    
    

    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

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Lockergnome: "Web Developers - Happy Hearts And HDTV! - Lockergnome"

    Relevant Pages

    • Re: Problems with custom kernel fbsd 6.2
      ... My kernel for freebsd 6.2 is not compiling but only with my custom config. ... I was able to compile it with the GENERIC kernel included, ...
      (freebsd-questions)
    • Re: Why not?
      ... >> While each distros kernel is probably less different than a NetBSD ... > Some vendors may be directly patching certain features, ... > to update it by downloading the latest features, running the config to ... There *is* one place where I can go to download my FreeBSD stuff. ...
      (freebsd-questions)
    • Re: KAME snap on FreeBSD5.4 : ad0: FAILED - READ_DMA...
      ... kame-20060227-freebsd54-snap.tgz) on FreeBSD 5.4 in ... order to use Mobile IPv6. ... When building the kernel: ... "make config" performed well ...
      (freebsd-questions)
    • Re: Kernel Compilation...
      ... I have just installed 6.0-RELEASE on my old laptop and have been configuring the system, am onto the kernel at the moment, have followed the traditional method in the FreeBSD handbook. ... Last time I had an error with USB Mass Storage do I disabled it in my config hoping the kernel would compile, am starting to think this is something a bit more serious. ...
      (freebsd-questions)
    • build issue #349 for v2.6.26-rc1-279-g28a4acb :
      ... The build was made with an old .config from kernel 2.6.25-rc1 ... # CAN Device Drivers ... # PCI IDE chipsets support ...
      (Linux-Kernel)