/*
 * FILE
 *	readme
 *
 *	Copyright(c) 1995, FMI, Fujitsu Microelectronics, Inc.
 *	All rights reserved.
 *
 *	This software (including any documentation) is untested, has not been
 *	fully tested for viruses and has been provided to you without charge.
 *	ACCORDINGLY, IT IS DELIVERED "AS IS" WITH NO WARRANTIES EXPRESS OR
 *	IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY,
 *	FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.  You bear all 
 *	risk of nonperformance, loss of data and other problems and Fujitsu
 *	Microelectronics, Inc. and Fujitsu Limited will not be liable under any
 *	contract, negligence, strict liability or other theory for any damages
 *	including, without limitation, direct, consequential or incidental nor
 *	be required to provide substitute goods, services or technology.
 *
 */

A. Requirement

The Ethernet interface is used only on SUN4 workstation.



B. Install Ethernet Interface

In order to use Ethernet interface, on your working station, 
please add the following line into file /etc/hosts
(you may need to be supervisor)

ip_addr0	sleb0

and add the following line into file /etc/ethers

0:0:e:31:0:0	sleb0

where ip_addr0 is your local IP address, 0:0:e:31:0:0 is the
default Ethernet address used by SPARClite EPROM, and 'sleb'
means SPARClite Eval Board.

If your system administrator installs SUN NIS on your machine,
in addition, you need to ask him/her to add the above two lines 
into the corresponding NIS files.

Make sure run RARP daemon on your system.  To check, use command
'ps -aux | grep rarp'.  If the RARP daemon is running, you will 
see something like 

root       106  0.0  0.0   36    0 ?  IW   May 11  0:00 rarpd -a



C. Use Ethernet Interface

After the SPARClite board is turned on or reset, the EPROM tests
components.  If any test fails, you can see the LEDs and find
the error code.  The serial line may be used to download programs
at this stage.  If all tests pass, the LEDs are cleared and the monitor 
in EPROM jumps to DRAM to test NICE interface:

	1. Test NICE loopback.  If passed, the LED bit5 is on;
	   if failed, the monitor returns to EPROM and uses serial 
	   interface.
	2. Test connection of Ethernet.  If Ethernet is connected, 
	   the bit6 is on; if Ethernet is not connected, the monitor 
	   returns to EPROM and uses serial interface.
	3. If the above two test pass, the monitor broadcasts a
	   RARP in the local network.  If the monitor receives
	   a response, LED bit7 is on.  If you see bits 5-6-7 on,
	   that means the Ethernet interface is established
	   and the board is ready for Ethernet download.  If after
	   several seconds, you do not see the LED bit7 on,  you may have 
	   network trouble.  Check cables, connectors and system files, 
	   try again.  If eventually you cannot establish Ethernet interface, 
	   you may disconnect Ethernet cable from the board and use 
	   the serial interface.

After you see the LED pattern bit0-4 off/bit5-7 on, change directory to 
../uieth and invoke 'uieth'.



D. Add New SPARClite Eval Boards in Your Local Network

The SPARClite monitor reads a byte from the switch at mapping address 
0x2000003 and takes it as the last byte of Ethernet address.  The switch 
is initially set 0x00, so the default Ethernet address is 0:0:e:31:0:0.  
If you want to add an additional board into your local network, first set
the switch on the additional board to 0x01, and then add

ip_addr1	sleb1

into file /etc/hosts and add

0:0:e:31:0:1	sleb1

into file /etc/ethers.

If you have SUN NIS installed on your machine, please ask system
administrator to add these lines into the corresponding NIS files.

After the board successfully establish Ethernet interface, change
directory to ../uieth, and invoke 'uieth sleb1'.

You can add more SPARClite boards into your local network by doing
the following:

	1. Set the switches to 0x02, 0x03, ...
	2. Add sleb2, sleb3, ... into the system files 
	3. Invoke 'uieth sleb2', 'uieth sleb3', ...

