*BSD News Article 2684


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!news.hawaii.edu!ames!olivea!uunet!uunet.ca!cognos!dealwisb
From: dealwisb@cognos.com (Brian de Alwis)
Newsgroups: comp.unix.bsd
Subject: Re: Do YOU think that this generates correct kernel ?
Keywords: kernel config
Message-ID: <1992Jul28.221939.2479@cognos.com>
Date: 28 Jul 92 22:19:39 GMT
References: <1992Jul28.151518.18102@lut.fi>
Organization: Cognos Incorporated, Ottawa CANADA
Lines: 38

In article <1992Jul28.151518.18102@lut.fi> ats@lut.fi (Ari Suutari) writes:
>	controller	wd0	at isa? ....
>	disk		wd0	at wd0 drive 0
>	disk		wd1	at wd0 drive 1
>
>	This file produces a working kernel. But if I look at the
>	wd.h (for example) file at /sys/compile/MY_HOST there is a 
>	line which states:
>
>	#define	NWD	3
>
>	I think that this is becouse the config utility ses three lines
>	containing "wd". This is incorrect, since I have only 2 disks
>	configured. Same problem, of course, exists for "fd" too.

I've found this problem too (I set aside tonight to look at it - you
jumped my gun :-) It's interesting that if you have a config of

controller wd0 at isa?
disk       dk0 at wd0 drive 0
disk       dk1 at wd0 drive 1

NWD is defined as 1 (which breaks the patches posted to support > 1 HD).
It seems that config is looking in the wrong places to figure out the
number of possibly-attached devices.

Another 'nifty' feature with the above config (using dk[01] instead of
wd[01]) is (as you also discovered) that the swap device is wrong! If you
look in your swap*.c (*=386bsd by default) in your /sys/compile/MACHINE,
you'll find a structure swdevs? which lists the available swap devices.
You'll have to change this to use the major/minor (in the form shown) of
your swap partition, until this gets sorted out. 
 
 +++BdA
-- 
+++BdA  Brian de Alwis. Brain on loan to Cognos Inc, Ottawa, Ontario.
	dealwisb@cognos.com, or bsdealwi@napier.{waterloo.edu,uwaterloo.ca}
	"Nine out of ten men who tried camels said they preferred women"