Subject: README- switch to MI SCSI
To: None <port-pmax@NetBSD.ORG>
From: Simon Burge <simonb@wasabisystems.com>
List: port-pmax
Date: 08/26/2001 21:46:34
At last NetBSD/pmax moves into the relatively modern world of MI SCSI.

First, MAKE A BACKUP OF YOUR KERNEL BEFORE YOU REBOOT A NEW KERNEL!

If you are still using the OLD pmax SCSI drivers, you'll need to make
sure your /dev/MAKEDEV is up-to-date:

	install -c -o root -g system -m 555 /usr/src/etc/etc.pmax/MAKEDEV /dev/MAKEDEV

create some new device files in /dev:

	cd /dev
	./MAKEDEV sd0 sd1 sd2 sd3 ...	# as many disk devices as you need
	./MAKEDEV st0 st1 ...		# as many tape devices as you need
	./MAKEDEV cd0 cd1 ...		# as many CD-ROM devices as you need

and rename your /dev/rz entries in your /etc/fstab to /dev/sd entries.
Any entries for CD-ROM devices will need to be renamed to use /dev/cd
entries.

Disks are now probed "in-order" with MI SCSI unless you declare
otherwise in your kernel configuration file.  Let's use an example...
Say you have disks at rz0, rz1 and rz8 (at the first SCSI ID on the
second SCSI bus), and a CD-ROM at rz4.  With MI SCSI, the device names
will now be:

	rz0	-> sd0
	rz1	-> sd1
	rz8	-> sd2
	rz4	-> cd0

If you really want to keep the current numbers, you could put something
like

	sd0     at scsibus0 target 0 lun ?
	sd1     at scsibus0 target 1 lun ?
	sd8     at scsibus1 target 0 lun ?
	sd*     at scsibus? target ? lun ?

	cd4     at scsibus0 target 4 lun ?
	cd*     at scsibus? target ? lun ?

in your kernel configuration file.

If anything goes wrong, reboot off your backup kernel and edit any
configuration files and try again.


For those of you who have already switched to MI SCSI, note that the
xasc and xsii driver names have been retired, so you'll need to edit
your kernel configuration files and change any of these entries to asc
and sii respectively.


Finally, MAKE A BACKUP OF YOUR KERNEL BEFORE YOU REBOOT A NEW KERNEL!


A big thanks to Michael Hitch and Tohru Nisimura who put a lot of work
into making MI SCSI happen on the pmax.

If you have any questions, please send mail to the list.

Cheers,
Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/