Subject: Re: A NetBSD kernel for you
To: brian wildasinn <bwildasi@csulb.edu>
From: Dave Huang <khym@bga.com>
List: port-mac68k
Date: 07/08/1997 01:56:44
On Mon, 7 Jul 1997, brian wildasinn wrote:
> I have good news! i'm not loosing target files anymore! You're a 
> lifesaver man! ever since i found out about netbsd (kernel 16, i think)
> this Q700 couldn't cope with that IBM KZ-C harddrive. 

Cool! :) Glad to hear it's working for you...

> Could i trouble you for a copy of the kernel source code? i've never
> done a compile so whatever you used (.cf, makefile, etc...) would be
> verrrrry helpful! i noticed that dmesg now says "dump" instead of "swap"
> for the virtual memory partition. which kernel did you modifiy? i've got
> plans for running netbsd off of a jaz disk, so maybe the kernel will
> need some tweaking again...

Well, the kernel source is pretty big :) But you can ftp it from
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src/sys.tar.gz or
use "sup" or something. Take a look at
http://www.netbsd.org/Releases/current.html for more info on how to get
the kernel source.

After getting the source unpacked and everything, cd into
/usr/src/sys/scsi and apply the following patch (save it into a file,
then do "patch < filename")

--- /usr/src/sys/scsi/scsiconf.c	Thu Apr 24 06:21:42 1997
+++ scsiconf.c	Fri Jul  4 17:32:21 1997
@@ -357,6 +357,8 @@
 	{{T_CDROM, T_REMOV,
 	 "MATSHITA", "CD-ROM CR-5XX   ", "1.0b"}, SDEV_NOLUNS},
 	{{T_CDROM, T_REMOV,
+	 "MEDAVIS ", "RENO CD-ROMX2A  ", ""},	  SDEV_NOLUNS},
+	{{T_CDROM, T_REMOV,
 	 "MEDIAVIS", "CDR-H93MV       ", "1.3"},  SDEV_NOLUNS},
 	{{T_CDROM, T_REMOV,
 	 "NEC     ", "CD-ROM DRIVE:55 ", ""},     SDEV_NOLUNS},
@@ -401,6 +403,8 @@
 	 "IBM     ", "0663H",		 ""},     SDEV_AUTOSAVE},
 	{{T_DIRECT, T_FIXED,
 	 "IBM",	  "0664",		 ""},	  SDEV_AUTOSAVE},
+	{{T_DIRECT, T_FIXED,
+	 "IBM     ", "KZ-C",		 ""},	  SDEV_AUTOSAVE},
 	/* Broken IBM disk */
 	{{T_DIRECT, T_FIXED,
 	 ""	   , "DFRSS2F",		 ""},	  SDEV_AUTOSAVE},

BTW, is your CDROM really a "MEDAVIS" and not a "MEDIAVIS"?

After you've done that, you should be ready to compile a kernel...
there's probably a FAQ somewhere with more detailed info on how to do
it, but basically, you "cd /usr/src/sys/arch/mac68k/conf", make a
kernel config file (you can use GENERIC as a starting point),
"config FILENAME", "cd ../compile/FILENAME", "make depend", then
"make".

After it's all done, you should have a nice new kernel in that
directory, named "netbsd" :)

Make sure to save a copy of your old kernel in case the new one
doesn't work!

dmesg says "dumps on sdwhatever" instead of "swap on sdwhatever"
because in the latest NetBSD-current, swap isn't hardcoded into the
kernel anymore. Now you need to make sure you have a swap partition
specified in /etc/fstab... for example:

/dev/sd0b none swap sw

And also make sure you've got the latest /etc/rc, swapon, swapctl,
etc... you should probably just install the latest binary snapshot
from ftp://ftp.netbsd.org/pub/NetBSD/arch/mac68k/latest/snapshot/
-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++