The Linux Driver Installation Instructions for CardBus Fast Ethernet Attached Port PC Card(Realtek RTL8139C-Based) CONTENTS 1. Introduction 2. Tested Kernel Versions 3. File List 4. Installation Procedures 5. Technical Support 6. Copyright 1. Introduction --------------- Due to the driver structure is different between kernel version 2.2.x and 2.4.x, so there exist two different drivers based on two different kernel versions. The driver for kernel 2.2.x is rtl8139.c version 1.16a and driver for kernel 2.4.x is 8139too.c version 0.9.24. And both of them are originally written by Donald Becker and now modified by Wilson, to add more supported vendors. 2. Tested Kernel Versions ------------------------- This device driver has been fully tested on the following kernel versions: a. rtl8139.c : 2.2.14 b. 8139too.c : 2.4.2, 2.4.7 & 2.4.18 3. File List ------------ The complete file lists are as follow: 1. Kernel version 2.2.x : a. readme.txt b. makefile c. rtl8139.c d. pci-scan.c e. pci-scan.h f. kern_compat.h g. cb_shim.c h. config 2. Kernel version 2.4.x : a. readme.txt b. makefile c. 8139too.c 4. Installation Procedures -------------------------- There exists slightly differences between kernel 2.2.x and 2.4.x about the installation procedures. 4.1 Kernel 2.2.x ----------------- 1. Uncompress the attached file to an empty floppy disk. 2. Login as the root, the superuser. 3. Copy the driver source code from the driver diskette, simply do #mount -t msdos /dev/fd0 /mnt #cd /usr/src #mkdir driver ==>make a new directory--driver or you can have your own directory name. #cd driver #cp /mnt/* . ==>copied all the files into directory /usr/src/driver 4. Compile and generate the object code from the driver source code #make all ==>for kernel 2.2.x 5. Replace the older driver #make install 6. Edit the config file("/etc/pcmcia/config") or use the edited file in the the driver disk. # # Device driver definitions # device "realtek" class "network" module "cb_enabler", "pci-scan", "cb_shim", "rtl8139" : # # CardBus Cards # card "Realtek RTL8139C-Based 10/100 Fast Ethernet CardBus PC Card" manfid 0x0000, 0x024C bind "realtek" 7. Set up the IP configuration You need to edit the file "/etc/pcmcia/network.opts" to assign IP address, netmask, gateway IP, nameservers, broadcast address, and etc. #File: /etc/pcmcia/network.opts # # # #Host's IP address, netmask, network address, broadcast address IPADDR="203.66.99.137" NETMASK="255.255.255.128" NETWORK="203.66.99.0" BROADCAST="203.66.99.255" #Gateway address for static routing GATEWAY="203.66.99.254" #Things to add to /etc/resolv.conf for this interface DOMAIN="your.domain" SEARCH="" DNS_1="168.95.1.1" DNS_2="168.95.192.1" DNS_3="203.66.99.251" # 8. Reboot the Linux system and then login as the root. #shutdown -r now 4.2 Kernel 2.4.x ----------------- 1. Uncompress the attached file to an empty floppy disk. 2. Login as the root. 3. Copy the driver source code from the driver diskette, simply do #mount -t msdos /dev/fd0 /mnt #cd /usr/src #mkdir driver ==>make a new directory--driver or you can have your own directory name. #cd driver #cp /mnt/* . ==>copied all the files into directory /usr/src/driver 4. Compile and generate the object code from the driver source code #make ==>for kernel 2.4.x 5. Replace the older driver or copy the driver into a appropriate directory #make install 6. Reboot the Linux system and login as the root. #shutdown -r now 7. Set up the IP configuration #netconfig 8. Reboot the Linux system and login as the root. #shutdown -r now 5. Technical Support -------------------- You can send an e-mail to your retail dialer for questions, feedback and document fixes. 6. Copyright ------------ This document can be freely used and redistributed without any prior permission. But please comply with the GPL spirit.