NetBSD Problem Report #15850

Received: (qmail 23041 invoked from network); 9 Mar 2002 17:57:29 -0000
Message-Id: <Pine.SOL.4.33.0203091752140.23571-100000@draco.cus.cam.ac.uk>
Date: Sat, 9 Mar 2002 17:57:28 +0000 (GMT)
From: Ben Harris <bjh21@netbsd.org>
Sender: Ben Harris <bjh21@cus.cam.ac.uk>
To: <gnats-bugs@gnats.netbsd.org>
Subject: machdep.booted_kernel on acorn32 is incorrect

>Number:         15850
>Category:       port-acorn32
>Synopsis:       machdep.booted_kernel on acorn32 is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-acorn32-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 09 17:58:00 +0000 2002
>Closed-Date:    Mon Aug 04 23:04:42 +0000 2003
>Last-Modified:  Mon Aug 04 23:04:42 +0000 2003
>Originator:     Ben Harris
>Release:        2002-03-09
>Organization:
>Environment:
NetBSD/acorn32

>Description:
/etc/rc.d/sysdb uses `sysctl -n machdep.booted_kernel` to get the name of
the currently-running kernel.  Unfortunately, on NetBSD/acorn32,
machdep.booted_kernel seems to contain the RISC OS name of the kernel,
which isn't valid in NetBSD.  For instance, on my machine:

machdep.booted_kernel = UnixFS:$.netbsd

This causes an error message at boot time:

kvm_mkdb: UnixFS:$.netbsd: No such file or directory

It also presumably stops anything that needs the kernel namelist from
working.

>How-To-Repeat:
Observe boot messages bringing an acorn32 system up multi-user.

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: reinoud 
State-Changed-When: Sat Mar 9 17:38:59 PST 2002 
State-Changed-Why:  
Hopely fixed good enough in revision of 1.4 of the bootloader `BtNetBSD' 
If there is a prefix `UnixFS:$." then it will interpret the name and make 
it a valid kernel name.  

From: Ben Harris <bjh21@netbsd.org>
To: <reinoud@netbsd.org>,  <gnats-bugs@netbsd.org>
Cc:  
Subject: Re: port-acorn32/15850
Date: Sat, 30 Mar 2002 23:28:10 +0000 (GMT)

 On 10 Mar 2002 reinoud@netbsd.org wrote:

 > Hopely fixed good enough in revision of 1.4 of the bootloader `BtNetBSD'
 > If there is a prefix `UnixFS:$." then it will interpret the name and make
 > it a valid kernel name.

 That helps, though now I get "netbsd", where "/netbsd" would be more
 accurate.

 -- 
 Ben Harris                                                   <bjh21@netbsd.org>
 Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>

State-Changed-From-To: feedback->analyzed 
State-Changed-By: bjh21 
State-Changed-When: Fri Apr 5 06:04:49 PST 2002 
State-Changed-Why:  
Not really fixed. 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: reinoud 
State-Changed-When: Sun Jul 20 07:08:51 UTC 2003 
State-Changed-Why:  
Version 1.16 of acorn32/stand/boot32/boot32.c ought to solve this PR. Please try
if this patch solved the PR good enough. 
State-Changed-From-To: feedback->closed 
State-Changed-By: bjh21 
State-Changed-When: Mon Aug 4 23:03:55 UTC 2003 
State-Changed-Why:  
Finally tested, and it seems to behave reasonably. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.