README V 1.1
-------------

This directory should contain 4 files

README
smii.o
Space.c
smii_module

To install the Screen Machine driver you normally only need the 
smii_module. 

As root type:

	insmod smii_module

to install.

NOTE: This driver has been built for Kernel release 1.1.61. If you have a different release you can either use the force option to insmod or rebuild the module.


In the case where the default major number (22) conflicts with one 
of your drivers, you can change it.


Howto change the major number of the smii_module
------------------------------------------------

In the file Space.c change the 22 in  the line:

int smiiMajor = 22;

to the desired major number. 

e.g

int smiiMajor = 28;

Rebuilding the module
---------------------

Then type the following

cc -c -DLINUX Space.c 
ld -r smii.o Space.o -o smii_module

Makeing the device entry
------------------------

As root create a new device with the correct major number

rm -f /dev/smii
mknod /dev/smii c 28 0
chmod 666 /dev/smii

Problem solving
----------------

If you start the smp and you get the following message

> Could not open device: Permission denied

	You have probably not changed the permission correctly
	Try chmod 666 /dev/smii

> Could not open device: No such device

	There are two probable causes two this problem:
		1. The device entry in /dev has the wrong major or minor
		   number
			mknod /dev/smii c youMajorNumber 0
		2. The kernel would not allow your new major number
			
		Check to see if you have a line in the form of
		
		Unable to get major=66 for SMII
		
		in your /usr/adm/messages
			
		If so you will have to pick a different major number
			
> Could not open device: No such file or directory

	You have forgotten to make a smii device entry in /dev
	
		mknod /dev/smii c yourMajorNumber 0
	
	
			

			
			



