Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2000 18:14:12 -0800 (PST)
From:      Matthew Jacob <mjacob@feral.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG, John Polstra <jdp@polstra.com>
Subject:   Re: savecore broken because kern.bootfile is set wrong
Message-ID:  <Pine.LNX.4.21.0011101800040.31159-100000@zeppo.feral.com>
In-Reply-To: <Pine.LNX.4.21.0011101756450.31159-100000@zeppo.feral.com>

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

> > > kernel to have the actual path or not. 
> > 
> > It is supposed to.  Looks like a bug in the alpha startup code somewhere:
> > 
> > > uname -a
> > FreeBSD laptop.baldwin.cx 5.0-CURRENT FreeBSD 5.0-CURRENT #40: Fri Nov 10
> > 15:17:48 PST 2000     john@laptop.baldwin.cx:/usr/src/sys/compile/LAPTOP-card 
> > i386
> > > sysctl kern.bootfile
> > kern.bootfile: /boot/kernel.card/kernel
> > > uname -a
> > FreeBSD baz.osd.bsdi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #48: Fri Nov  3
> > 12:37:16 PST 2000     root@baz.osd.bsdi.com:/usr/src/sys/compile/BAZ  alpha
> > > sysctl kern.bootfile
> > kern.bootfile: kernel
> > 
> 
> Urgle. Okay.


Something actually was changed at some point perhaps?
On i386, kernelname is dug out of bootinfo and copied
(in assembler).

On alpha:

        p = getenv("kernelname");
        if (p)
                strncpy(kernelname, p, sizeof(kernelname) - 1);
 

Did the loader used to set kernelname as an environment variable?
At any rate, this should be easy enough to fix (doing so right now).

-matt






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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