README smii V 2.0 beta
======================

This directory should contain 4 files

README
smii.o
Space.c
configure*
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 reconfigure and install the driver (automatic)
----------------------------------------------------
We included a script, which does all (as described below)
configuration and installation for you. All you have to
do is to answer to some simple questions.

Go INTO our Driver directory (!)
Then execute: ./configure

Base Address:[0x350]  (enter the new address (0x hex!) or accept default)
Major Number:[40]  (enter the major number or accept default)
Owner:  (enter the 'owner string' or leave empty for restricted version)
Serialnumber: (enter the 'serial number' or leave empty)
License:   (enter the 'license key' or leave empty)


Howto change the major number of the smii_module (manually)
-----------------------------------------------------------
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 (manually)
--------------------------------
Then type the following
cc -c -DLINUX Space.c 
ld -r smii.o Space.o -o smii_module

Making the device entry (manually)
----------------------------------
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 yourMajorNumber 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

