Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 1998 08:32:23 -0800
From:      John Polstra <jdp@polstra.com>
To:        sasdrq@unx.sas.com
Cc:        current@FreeBSD.ORG
Subject:   Re: Failure in debug kernel
Message-ID:  <199802041632.IAA02776@austin.polstra.com>
In-Reply-To: <199802031258.AA03314@gamecock.unx.sas.com>
References:  <199802031258.AA03314@gamecock.unx.sas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199802031258.AA03314@gamecock.unx.sas.com>,
David Quattlebaum  <sasdrq@unx.sas.com> wrote:
> I tried to build a debug kernel yesterday and when I booted it,
> it printed an error and rebooted faster than I could read the 
> screen. This went on until we brought up kernel.old.
> 
> steps I took to build the kernel (from 3.0-980128-SNAP):
> 
>    o  cp GENERIC DEBUG
>    o  added "OPTIONS DDB" to DEBUG 
>    o  config -g DEBUG
>    o  make depend && make && make install

For this last step, try instead:

    make depend && make
    cp kernel kernel.unstripped
    strip -d kernel
    make install

I don't know whether this is really the problem or not.  It looks like
you have plenty of RAM.  But still, an unstripped debug kernel has a
_lot_ of symbols, and they all get loaded into RAM at boot time.  It
is often a source of problems similar to the one you reported.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



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