instalacao de 2a placa de rede

Iniciado por schmidt, 22 de Junho de 2009, 13:38

tópico anterior - próximo tópico

schmidt

Comprei uma 2a placa de rede e o meu objetivo é simplesmente acessar outra maquina e nao que ela tenha internet.
A placa é uma Gigabit Ethernet PCI Adapter ENLGA-1320, e veio com um driver para linux. No entanto, eu nao consigo entender as instrucoes do arquivo readme.txt, pois sou iniciante em linux. Aqui vai ele:

r8169.c -- RTL8169s/8110s Linux driver version 1.6 <2003-08-25>

1. This driver supports RealTek RTL8169s/8110s Gigabit Ethernet driver for Linux kernel 2.4.x.
2. Installation steps:
  (1)Compiling r8169.c using 'Makefile'.

   "make"
     
     <NOTE>Please remember to ASSIGN "NEW_INCLUDE_PATH" in Makefile according to linux kernel.

   
  (2)Move r8169.o to the directory "/lib/modules/<kernel>/kernel/drivers/net".

    "cp r8169.o /lib/modules/<kernel>/kernel/drivers/net"

     where <kernel> represents the kernel version, say 2.4.18-3 in Red Hat 7.3


  (3)Insert module by

   "insmod r8169.o"


  (4)Check driver status

   "dmesg"

3. The media can be forced to one of the 5 modes as follows.

   Cmd: "insmod r8169 media = SET_MEDIA"
   For example:
        "insmod r8169 media = 0x04" will force PHY to operate in 100Mpbs Half-duplex.
   
    SET_MEDIA can be:
      _10_Half   = 0x01
      _10_Full   = 0x02
      _100_Half   = 0x04
      _100_Full   = 0x08
      _1000_Full   = 0x10


  Force media type for multiple cards could be performed as:

    "insmod r8169 media=0x04,0x10"

  which force PHY to operate at 100Mbps half-duplex and 1000Mbps full-duplex.

<note> If on Red Hat 7.2, please add two lines to include header files and
mark one line for timer structure as follows:
   #include <linux/timer.h>
   #include <linux/init.h>
   ..................
   // typedef struct timer_list timer_t

---------------------------------------------------------------------------------
Nao consegui sequer passar do item (2). Com o comando "make", o resultado é

schmidt@schmidt-desktop:~/Desktop$ make
make: *** No rule to make target `r8169.c', needed by `r8169.o'.  Stop.

tentei alterar a linha do arquivo "makefile", descobrindo a versao do kernel do linux (ubuntu 8.04)

schmidt@schmidt-desktop:~/Desktop$ uname -r
2.6.24-23-generic

mas sem sucesso. O sistema achou a placa, mas nao instalou o driver (r8169),

schmidt@schmidt-desktop:~/Desktop$ hwinfo --network | grep -i driver
 Driver: "atl1"
 Driver Modules: "atl1"
 Driver: "r8169"
 Driver Modules: "r8169"

schmidt@schmidt-desktop:~/Desktop$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1b:fc:e3:78:46  
         inet addr:200.156.107.31  Bcast:200.156.107.127  Mask:255.255.255.128
         inet6 addr: fe80::21b:fcff:fee3:7846/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:6258 errors:0 dropped:0 overruns:0 frame:0
         TX packets:5213 errors:0 dropped:0 overruns:0 carrier:2
         collisions:0 txqueuelen:1000
         RX bytes:4092563 (3.9 MB)  TX bytes:1033675 (1009.4 KB)

eth1      Link encap:Ethernet  HWaddr 00:08:54:a7:ac:27  
         UP BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
         Interrupt:17 Base address:0x6c00

lo        Link encap:Local Loopback  
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:2774 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2774 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:143532 (140.1 KB)  TX bytes:143532 (140.1 KB)

Agradeco muito se alguem puder me ajudar a instalar esta placa.