Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 98e91bc877e03cf3582cd163550eb7e3 > files > 859

kernel-doc-html-2.4.19-16mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>Installation</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="SiS 900/7016 Fast Ethernet Device Driver"
HREF="book1.html"><LINK
REL="PREVIOUS"
TITLE="Files in This Package"
HREF="c85.html"><LINK
REL="NEXT"
TITLE="Building the driver into kernel"
HREF="x159.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>SiS 900/7016 Fast Ethernet Device Driver</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="c85.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x159.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="INSTALL"
></A
>Installation</H1
><P
>Silicon Integrated System Corp. is cooperating closely with core Linux Kernel
developers. The revisions of SiS 900 driver are distributed by the usuall channels
for kernel tar files and patches. Those kernel tar files for official kernel and
patches for kernel pre-release can be download at 
<A
HREF="http://ftp.kernel.org/pub/linux/kernel/"
TARGET="_top"
>official kernel ftp site</A
> 
and its mirrors.
The 1.06 revision can be found in kernel version later than 2.3.15 and pre-2.2.14, 
and 1.07 revision can be found in kernel version 2.4.0.
If you have no prior experience in networking under Linux, please read
<A
HREF="http://www.tldp.org/"
TARGET="_top"
>Ethernet HOWTO</A
> and
<A
HREF="http://www.tldp.org/"
TARGET="_top"
>Networking HOWTO</A
> available from
Linux Documentation Project (LDP).</P
><P
>The driver is bundled in release later than 2.2.11 and 2.3.15 so this 
is the most easy case. 
Be sure you have the appropriate packages for compiling kernel source.
Those packages are listed in Document/Changes in kernel source 
distribution. If you have to install the driver other than those bundled
in kernel release, you should have your driver file 
<TT
CLASS="FILENAME"
>sis900.c</TT
> and <TT
CLASS="FILENAME"
>sis900.h</TT
> 
copied into <TT
CLASS="FILENAME"
>/usr/src/linux/drivers/net/</TT
> first.
There are two alternative ways to install the driver</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN116"
></A
>Building the driver as loadable module</H1
><P
>To build the driver as a loadable kernel module you have to reconfigure
the kernel to activate network support by</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>make menuconfig</PRE
></TD
></TR
></TABLE
></P
><P
>Choose <SPAN
CLASS="QUOTE"
>"Loadable module support  ---&#62;"</SPAN
>, 
then select <SPAN
CLASS="QUOTE"
>"Enable loadable module support"</SPAN
>.</P
><P
>Choose <SPAN
CLASS="QUOTE"
>"Network Device Support  ---&#62;"</SPAN
>, select 
<SPAN
CLASS="QUOTE"
>"Ethernet (10 or 100Mbit)"</SPAN
>.
Then select <SPAN
CLASS="QUOTE"
>"EISA, VLB, PCI and on board controllers"</SPAN
>, 
and choose <SPAN
CLASS="QUOTE"
>"SiS 900/7016 PCI Fast Ethernet Adapter support"</SPAN
> 
to <SPAN
CLASS="QUOTE"
>"M"</SPAN
>.</P
><P
>After reconfiguring the kernel, you can make the driver module by</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>make modules</PRE
></TD
></TR
></TABLE
></P
><P
>The driver should be compiled with no errors. After compiling the driver,
the driver can be installed to proper place by</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>make modules_install</PRE
></TD
></TR
></TABLE
></P
><P
>Load the driver into kernel by</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>insmod sis900</PRE
></TD
></TR
></TABLE
></P
><P
>When loading the driver into memory, some information message can be view by</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>dmesg</PRE
></TD
></TR
></TABLE
>

or

<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>cat /var/log/message</PRE
></TD
></TR
></TABLE
></P
><P
>If the driver is loaded properly you will have messages similar to this:</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>sis900.c: v1.07.06  11/07/2000
eth0: SiS 900 PCI Fast Ethernet at 0xd000, IRQ 10, 00:00:e8:83:7f:a4.
eth0: SiS 900 Internal MII PHY transceiver found at address 1.
eth0: Using SiS 900 Internal MII PHY as default</PRE
></TD
></TR
></TABLE
></P
><P
>showing the version of the driver and the results of probing routine.</P
><P
>Once the driver is loaded, network can be brought up by</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>/sbin/ifconfig eth0 IPADDR broadcast BROADCAST netmask NETMASK media TYPE</PRE
></TD
></TR
></TABLE
></P
><P
>where IPADDR, BROADCAST, NETMASK are your IP address, broadcast address and
netmask respectively. TYPE is used to set medium type used by the device. 
Typical values are "10baseT"(twisted-pair 10Mbps Ethernet) or "100baseT"
(twisted-pair 100Mbps Ethernet). For more information on how to configure 
network interface, please refer to  
<A
HREF="http://www.tldp.org/"
TARGET="_top"
>Networking HOWTO</A
>.</P
><P
>The link status is also shown by kernel messages. For example, after the
network interface is activated, you may have the message:</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>eth0: Media Link On 100mbps full-duplex</PRE
></TD
></TR
></TABLE
></P
><P
>If you try to unplug the twist pair (TP) cable you will get</P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>eth0: Media Link Off</PRE
></TD
></TR
></TABLE
></P
><P
>indicating that the link is failed.</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="c85.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x159.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Files in This Package</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Building the driver into kernel</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>