*BSD News Article 30058


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!not-for-mail
From: castro@norm.eng.gtefsd.com (J. Carlos Castro)
Newsgroups: comp.os.386bsd.questions
Subject: Re: IBM PS/1
Date: 6 May 1994 01:36:53 -0400
Organization: GTE Federal Systems Division, Chantilly VA
Lines: 92
Message-ID: <2qcl1l$g9m@norm.eng.gtefsd.com>
References: <Cox440.3LM@info.bris.ac.uk>
NNTP-Posting-Host: norm.eng.gtefsd.com

I am not sure how it works With NetBSD, but here are some instructions 
I found in sunsite when I ran into the same problem installing Linux.

I hope this helps....

The following instructions describe in detail how to create your own
a1 disk so that you can install SLS on a PS/VP.  It still requires that
you have access to a machine already running Linux so that you can construct
a special kernel hardcoded for your drive type.  Hopefully many of you
can find a friend nearby who can help out.

Maybe someone could post these instructions and their patched kernels for
different drive types to tsx-11.

There should probably be something in the FAQ about this as well.

1) Modify the file /usr/src/linux/include/linux/config.h

Define HD_TYPE with the parameters of your drive.  The file config.h has
instructions on how to set HD_TYPE.  Many PS/VP's use a Maxtor 7213 212MB
drive, so the changes would look like:

#undef HD_TYPE

#ifdef MAXTOR_7213
#define HD_TYPE { 16,38,683,0,683,8 }
#endif

Note: If you have two floppy drives there are some other patches that you
need to make but I don't know what they are.  My friend only had one floppy.

2) Modify the file /usr/src/linux/Makefile

Set ROOT_DEV and RAMDISK as shown below:

#define ROOT_DEV FLOPPY
#define RAMDISK 657

and add the following line after the definition of CFLAGS:

CFLAGS := $(CFLAGS) -DMAXTOR_7213

3) cd to the /usr/src/linux directory
   type "make config" and answer the questions however you like
   type "make dep; make clean; make zImage"

4) Pad the file zImage out to 512k bytes using the command:

cat zImage /dev/zero | dd bs=1024 count=512 of=zImage512k

5) Insert the original a1 disk into the drive and type:

dd bs=1024 skip=512 if=/dev/fd0 of=a1-512k

6) Insert a new formatted floppy into the drive and type:

cat zImage512k a1-512k | dd of=/dev/fd0

This is your new a1 bootdisk.

7) Now remove the ramdisk from the original kernel you built:

rdev -r zImage 0

8) Tar and zip this file:

tar cf - zImage | gzip >Image.tpz

9) Insert the a2 disk into the drive and mount it:

mount /dev/fd0 /mnt

10) Copy the new kernel onto a2:

rm /mnt/Image.tpz
cp Image.tpz /mnt
umount /dev/fd0

11) Now you should be ready to install.

Good luck,

Greg Galloway
gregg@discovery.gatech.edu

Disclaimer:  I do not have a PS/VP.  I have a Gateway which I used to help
out a friend.  I have not tested this a whole lot.

-- 
jcastro@gmu.edu       |  I need to make lots of money so I will
castro@eng.gtefsd.com |  be able to afford sending my wife on 
J. Carlos Castro      |  shopping sprees during football season.