To install the Roland MPU-401 MIDI interface driver in a SunOS 3.4 system:

0) Change into your Sun "sys" directory (it's usually "/sys")

1) Copy an appropriate system configuration file from .../conf
   to .../conf/MIDI.  Add the following lines to this file:

options		MIDI		# Roland MPU-401 Interface

# Multibus Roland MPU-401 interface
#device		mpu0 at mbio ? csr 0x100 priority 2
# VMEbus Roland MPU-401 interface
device		mpu0 at vme16 ? csr 0xffe0 priority 2 vector mpuintr 0x41


2) Add the following line to either .../conf/files.sun2 or
   .../conf/files.sun3:

sunmidi/mpu.c optional mpu device-driver


3) Add a symbolic link from .../sunmidi to this directory.

ln -s this_directory .../sunmidi


4) Add the following to the appropriate places in .../sun/conf.c:

#ifdef MIDI	/* Roland MPU-401 interface */
#include "mpu.h"
#if NMPU > 0	/* if not, why is MIDI defined? */
int mpuopen(), mpuclose(), mpuread(), mpuwrite(), mpuioctl(), mpuselect();
#endif
#else
#define mpuopen         nodev
#define mpuclose        nodev
#define mpuread         nodev
#define mpuwrite        nodev
#define mpuioctl        nodev
#define mpuselect       nodev
#endif /*MIDI*/


    {
	mpuopen,	mpuclose,	mpuread,	mpuwrite,	/*40*/
	mpuioctl,	nodev,		nulldev,	0,
	mpuselect,	nodev,		0,
    },


5) Make character special device nodes in /dev for the mpu device(s):

/etc/mknod /dev/mpu0 c 40 0		; chmod 666 /dev/mpu0
/etc/mknod /dev/mpu1 c 40 1		; chmod 666 /dev/mpu1
/etc/mknod /dev/mpu2 c 40 2		; chmod 666 /dev/mpu2
/etc/mknod /dev/mpu3 c 40 3		; chmod 666 /dev/mpu3


6) Either define DONJACKSON (if your VME board was built by him (or equivalent))
   or don't (if your VME board was built by Dave Cumming (or equivalent)).
   You can put the define in one of the header files, at the beginning of
   mpu.c, or just before the appropriate #ifdefs in mpu.c.


7) Configure, build, and boot the new kernel:

cd .../conf
/etc/config MIDI
cd ../MIDI
make
mv /vmunix /vmunix.good
cp vmunix /vmunix
/etc/reboot

8) Play and pray...
