home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3068 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.9 KB  |  50 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!uunet.ca!cognos!dealwisb
  3. From: dealwisb@cognos.com (Brian de Alwis)
  4. Subject: Re: Do YOU think that this generates correct kernel ?
  5. Message-ID: <1992Jul28.221939.2479@cognos.com>
  6. Keywords: kernel config
  7. Organization: Cognos Incorporated, Ottawa CANADA
  8. References: <1992Jul28.151518.18102@lut.fi>
  9. Date: Tue, 28 Jul 1992 22:19:39 GMT
  10. Lines: 38
  11.  
  12. In article <1992Jul28.151518.18102@lut.fi> ats@lut.fi (Ari Suutari) writes:
  13. >    controller    wd0    at isa? ....
  14. >    disk        wd0    at wd0 drive 0
  15. >    disk        wd1    at wd0 drive 1
  16. >
  17. >    This file produces a working kernel. But if I look at the
  18. >    wd.h (for example) file at /sys/compile/MY_HOST there is a 
  19. >    line which states:
  20. >
  21. >    #define    NWD    3
  22. >
  23. >    I think that this is becouse the config utility ses three lines
  24. >    containing "wd". This is incorrect, since I have only 2 disks
  25. >    configured. Same problem, of course, exists for "fd" too.
  26.  
  27. I've found this problem too (I set aside tonight to look at it - you
  28. jumped my gun :-) It's interesting that if you have a config of
  29.  
  30. controller wd0 at isa?
  31. disk       dk0 at wd0 drive 0
  32. disk       dk1 at wd0 drive 1
  33.  
  34. NWD is defined as 1 (which breaks the patches posted to support > 1 HD).
  35. It seems that config is looking in the wrong places to figure out the
  36. number of possibly-attached devices.
  37.  
  38. Another 'nifty' feature with the above config (using dk[01] instead of
  39. wd[01]) is (as you also discovered) that the swap device is wrong! If you
  40. look in your swap*.c (*=386bsd by default) in your /sys/compile/MACHINE,
  41. you'll find a structure swdevs? which lists the available swap devices.
  42. You'll have to change this to use the major/minor (in the form shown) of
  43. your swap partition, until this gets sorted out. 
  44.  
  45.  +++BdA
  46. -- 
  47. +++BdA  Brian de Alwis. Brain on loan to Cognos Inc, Ottawa, Ontario.
  48.     dealwisb@cognos.com, or bsdealwi@napier.{waterloo.edu,uwaterloo.ca}
  49.     "Nine out of ten men who tried camels said they preferred women"
  50.