*BSD News Article 13846


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!enterpoop.mit.edu!ira.uka.de!gmd.de!mururoa!veit
From: veit@mururoa.NoSubdomain.NoDomain (Holger Veit)
Subject: Re: Kernel building?
Message-ID: <1993Apr1.152904.22825@gmd.de>
Sender: veit@mururoa (Holger Veit)
Nntp-Posting-Host: mururoa.gmd.de
Organization: GMD, Sankt Augustin, Germany
References:  <C4t7pL.7IF@nmrdc1.nmrdc.nnmc.navy.mil>
Date: Thu, 1 Apr 1993 15:29:04 GMT
Lines: 46

In article <C4t7pL.7IF@nmrdc1.nmrdc.nnmc.navy.mil>, dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci) writes:
|> 1st-time kernel compile...
|> 
|> 1) Install of bin01/src01/etc01 - no problem
|> 2) Install patchkit 0.2.2       - no problem
|> 3) config                       - PROBLEM
|> 
|> Is there a doc somewhere that explains kernel compiling a bit more
|> than the instructions that come with patchkit 0.2.2? 
|> 
|> I had to do "config GENERICISA" to get config to work (doing make
|> right now).  I created directory "MYCONFIG" in /sys/compile, and 
|> tried "config MYCONFIG" ... no joy (file not found error).
|> BTW- I did NOT do "rm -r /sys/compile/GENERICISA" before config ...
|>      had a bad feeling about that.
|> 
|> Any ideas?  Flames?  Anything?

The answer to your question is in the text: "file not found error".
In the directory /sys/i386/conf you find several configuration descriptions,
one of them is GENERICISA. Copy this into a file MYCONFIG in this directory
and (this is the hard part for the beginner) modify it to contain the
required things. Run "config MYCONFIG"; this will create the directory 
/sys/compile/MYCONFIG and some files in it. Go to /sys/compile/MYCONFIG,
run "make clean; make depend; make" and hopefully you get a kernel "386bsd"
in this directory which you can test: Copy your old working kernel /386bsd to
/386bsd.old, copy /sys/compile/MYCONFIG/386bsd to /386bsd an reboot.
If the reboot fails, boot from a floppy and replace the defective kernel
with /386bsd.
The hard part is the syntax of the configuration; there is documentation
available (gatekeeper.dec.com:/.0/BSD/manuals if I remember correctly),
but as they are mainly written for the VAX architecture, they are rather
misleading for the non-insider. If you want to add things, look
at the templates (hopefully) provided by the writer of the add-on code.

Hope that helps.

Holger

-- 
         Dr. Holger Veit                   | INTERNET: Holger.Veit@gmd.de
|  |   / GMD-SET German National Research  | Phone: (+49) 2241 14 2448
|__|  /  Center for Computer Science       | Fax:   (+49) 2241 14 2342
|  | /   P.O. Box 13 16                    |    Three lines Signature space
|  |/    Schloss Birlinghoven              |    available for rent. Nearly
         DW-5205 St. Augustin, Germany     |    unused, good conditions