[mdk-re] Сетевая карта COMPEX ReadyLINK Express 10/100

Yuri V. Anikin ayv на mec.citytlt.ru
Ср Янв 24 07:54:01 MSK 2001


Есть сетевая карта (subject), с ней идет драйвер под RH. Необходимо
откомпилировать модуль заново по следующим причинам: драйвер под MDK 7.0RE
есть только rtl8139, который по умолчанию при загрузке работает Full
Duplex, что мне совсем не надо. Однако в прикладываемой инструкции по
установке есть ошибки: неверные имена модуля (вместо re100tx.c
rtl8139.c) и др. При попытке внести изменения компиляция все равно не
идет. Что посоветуете?

With best regards,     
Yuri V. Anikin | Media Education Center | E-mail:  ayv на mec.citytlt.ru
Sysadmin       | Leninskiy prospect, 20 | tel:     +7(8482)327787 
               | Togliatti              | tel/fax: +7(8482)327340
----------- следущая часть -----------
Installing Compex LAN driver for Linux RedHat

ммммммммммммммммммммммммммммммммммммммммммммм



Recompilation of the driver is needed when operate in different release or

version of Linux.

<lan driver.c> is the name of the driver source file with .c

               e.g. re100tx.c

<lan driver.o> is the compiled driver in with a .o

               e.g. re100tx.o

<lan driver devicename> is the name of the .o file but without the .o

               e.g. re100tx

< x.x.xx > is the Linux version number.

               e.g. 2.3.34-1



Installation

ддддддддддд

1) Copy the driver source code to the right directory,

             cp /mnt/floppy/<lan driver.c> /usr/src/linux



2) Compile the source code by entering as shown.

     cd /usr/src/linux



   For single CPU machine enter as follows:

     gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`



   For multiple CPU machine enter as follows:

     gcc -D__SMP__ -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

   

3) Install the module to the right directory,

       install -m 644 <lan driver.o>/lib/modules/x.x.xx/net/

   where x.x.xx is the version of Linux OS version

     e.g. if Red Hat version 2.3.34-1,

       install -m 644 re100tx.o /lib/modules/2.3.34-1/net/

     

4) Edit using vi the file /etc/conf.modules to add an entry for the card,

     

        alias eth0 <lan driver devicename>

     

5) Reboot system:

        /sbin/shutdown -r now

     

6) Config the network,

  a) Start X-window by executing, startx

  b) Start network config utility by clicking on Network Config icon

     or run command, netcfg in terminal window,

  c) Goto Interface, there should be an entry, eth0

  d) Double click to edit this entry.

  e) Set the parameters.

     These parameters are just for illustration only. Get the correct IP

     address and netmask from your system administrator.

           IP address: 192.168.1.12 netmask: 255.255.255.0

  f) Check to select on the following:

         (X) - Active interface at boot time

         (X) - Allow any user to (de)active interface

         (X) - Interface configuration

       Protocol: none

     Then click Done and save the config.

     

Troubleshooting Hints:

ддддддддддддддддддддд

1. When system is booting there should be message loading the driver.

2. After system is booted excute command dmesg, there should be info

   on the card as in file dmesg.txt or excute ifconfig command will show

   the message in file ifconfig.txt

3. Then, you can PING the loopback IP or other IP devices on LAN.

   If there's no such message above then pls go back to netcftg | X-window

   to see if all 4 ports are able to be manually activated.

   Also you can manually activate the ports eth0 to eth3 as shown,



        insmod -o eth0 /lib/modules/x.x.xx/net/<lan driver.o>



   Also check that the card is inserted properly in the slot.





Подробная информация о списке рассылки Community