Linux22.txt Driver File Contents (ENLGA-1320.zip)

   


===============================================================================
   Linux for kernel version 2.2.16
===============================================================================
*******************************************************************************
**      Compiling and Installing the driver                                  **
*******************************************************************************

To compile and install the driver, follow the procedures:

1) Login as some common user or the root.

2) Unzip and untar driver (do not do it under Windows!)

In any directory, unzip and untar the driver, for example:

    #chdir /root
    #mkdir tc902x
    #cd tc902x
    #mount /mnt/floppy
    #cp /mnt/floppy/tc902x.v036.tar.gz .
    #tar -zvxf tc902x.v036.tar.gz    

The above commands end up with the following files in the /root/tc902x
directory:

Makefile
tc902x.c
tc902x.h
tc902x_constants.h
tc902x_macros.h
tc902x_structs.h
tc902x_tune.h

3) "make" the driver

In the directory where you unzipped and untarred the driver, type "make" at
the prompt, as:

    make,

or
    make clean; make

Hopefully, the make utility will be in your path and will run. Also hopefully
gcc, ld, and any other utilities needed will be in your path.

If and when the make completes, there should be an tc902x.o file in the same
directory.

4) Install the driver
Once you have the driver compiled, you have to switch yourself to user "root".
At the same directory and command prompt, type:

    insmod tc902x.o

This should install the driver module into the kernel. Dependent on what other
ethernet NICs are installed, the TC902x NIC will be assigned the desigation
eth0, eth1, eth2, etc. Using this designation, you can open the interface using
the "ifconfig" command (man ifconfig), then you are on the way. For example,

    ifconfig eth1 172.16.10.20


*******************************************************************************
**      Special Notice                                                       **
*******************************************************************************
The default include files of the linux gcc compiler is typically under the
/usr/include directory. However, since the driver is not a application but a
kernel module, it is better to have the kernel source installed on your
system to compile the driver, which is typically /usr/src/linux, where the
Makefile directs the include path. This is especially true under Red Hat 7.0,
becuase its kernel is version 2.2.16, while the /usr/include is incorrectly
version 2.4.2. Therefore, if you are using Red Hat 7.0, you have to make sure
the /usr/src/linux exists with kernel source codes installed there.
------------------------------------------------------------------------------
To do this,
you have to make sure the kernel sources is installed in the /usr/src/linux
directory. To change back, follow the procedures below:

    cd /usr/include
    mv asm asm2.4
    mv linux linux2.4
    ln -s /usr/src/linux/include/asm asm
    ln -s /usr/src/linux/include/linux linux

      The first command change yourself to the /usr/include directory, which is where
the include header files are placed. The second and third commands rename two
directories to 2.4 to reflect the fact that the two directories contain
incorrect files. The last two commands create two software links under
/usr/include to kernel sources where the kernel was built. By this way, you can
refer to the correct include header files.




Download Driver Pack

How To Update Drivers Manually

After your driver has been downloaded, follow these simple steps to install it.

  • Expand the archive file (if the download file is in zip or rar format).

  • If the expanded file has an .exe extension, double click it and follow the installation instructions.

  • Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.

  • Find the device and model you want to update in the device list.

  • Double-click on it to open the Properties dialog box.

  • From the Properties dialog box, select the Driver tab.

  • Click the Update Driver button, then follow the instructions.

Very important: You must reboot your system to ensure that any driver updates have taken effect.

For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.

server: web2, load: 1.32