
This document is the procedure to activate sis900 on Linux.
We have two approaches to activate sis900 which the first one is recommended.

A. Compiling sis900 driver into kernel.

  1. Get the Linux kernel source code from FTP site.
  2. Extract the Linux kernel source to /usr/src.
  3. Copy sis900.c to /usr/src/linux/drivers/net.
  4. Modify Config.in, Space.c and Makefile in /usr/src/linux/drivers/net to 
     add configuration option for SiS900. You can refer the portions of other
     network drivers.
     The following is the example:

     in Space.c, add
     /////////////////////////////////////////////
     extern int sis900_probe(struct device *dev);
     
     ...

     #ifdef CONFIG_SIS900
     	{sis900_probe,0},
     #endif
     /////////////////////////////////////////////

     in Config.in add
     /////////////////////////////////////////////
     if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
        ... //other adapter drivers
     	tristate 'SiS 900 PCI Fast Ethernet Adapter Support' CONFIG_SIS900
        ... //other adapter drivers
     fi
     /////////////////////////////////////////////

     in Makefile add
     /////////////////////////////////////////////
     ifeq ($(CONFIG_SIS900),y)
     L_OBJS += sis900.o
     else
     	ifeq ($(CONFIG_SIS900),m)
           M_OBJS += sis900.o
        endif
     endif
     /////////////////////////////////////////////

  5. Run "make config" in /usr/src/linux to configure the compiling
     environment. You will see SIS900 option in network device drivers
     section.
  6. Run "make dep ; make clean ; make bzImage" to compile the kernel.
  7. Modify /etc/lilo.conf to add new option for the new kernel.
  8. Run "lilo" to modify the lilo boot setion.
  9. Reboot the computer and sis900 will be found in the boot sequence.
 10. Modify the routing table to add routing information.

B. Loading sis900 as module into kernel.

The recommended kernel version is 2.2.X. You should also comfirm the Linux
kernel is built with network and module supports. Other required packages
(libraries, linker, ...) with the kernel version can be found in the
Document\Changes file of the Linux kernel source .

If your environment is ready, download the sis900.c and run the following
procedures to activate sis900:

  1. copy sis900.c to /usr/src/linux where the linux kernel source code
     resides.

  2. compile the sis900.c. The instruction for compiling the driver is
     included at the end of sis900.c. Running the compiling instruction
     at /usr/src/linux.

  3. Insert the sis900 module to the kernel. Ensuring the insert command
     (lsmod) is updated with the kernel version. The instruction to insert
     sis900 module is as follows:

             insmod sis900.o

     You can execute lsmod to confirm the sis900 is loaded.
     
  4. Setup the network configuration.
     4.1 Configure the IP address of sis900.

         /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
 
         Run /sbin/ifconfig again to confirm eth0 is configured completely.

     4.2 Configure the routing table.
   
         /sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
         /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1

  5. If you haved started the inet deamon at Linux startup, you should connect to
     the Internet. Otherwise, start the inet deamon.

         /usr/sbin/inetd


  6. Initiate the network configuration at boot time.
     6.1 Run 'netconfig' and follows the instructions as displayed. 
     
     6.2 Add 'insmod /DriverPath/sis900.o into /etc/rc.d/inet1.

         


