Mailinglist Archive: opensuse-es (1511 mails)
| < Previous | Next > |
[suse-linux-s] instalar driver de r8169
- From: "Pedro Maria Castellanos" <pmcastell@xxxxxxxxx>
- Date: Mon, 12 Jun 2006 11:27:27 +0200
- Message-id: <ef037b1a0606120227g7f4cd616o1b413283e7822137@xxxxxxxxxxxxxx>
Buenos dias, tengo que intalar una tarjeta de red realteak 8169 en un linux
7.3 y en los drivers me pone los siguiente.:
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
El problema viene en el Makefile, ya que tengo que sustituir el valor de
NEW_INCLUDE_PATH pues el directorio que me dice aqui no existe en mi suse
7.3. El Makefile tiene la siguiente pinta :
CC=gcc
MODCFLAGS := -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX
NEW_INCLUDE_PATH=-I /usr/src/linux-2.4.18-3/include/
r8169.o: r8169.c /usr/include/linux/version.h
$(CC) $(MODCFLAGS) $(NEW_INCLUDE_PATH) -c r8169.c
clean:
rm *.o -f
~
¿ que direcctorio debo poner en NEW_INCLUDE_PATH ? como os he dicho se trata
de un suse 7.3.
Muchas Gracias a to2
--
Usuario Linux número 396108
7.3 y en los drivers me pone los siguiente.:
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
El problema viene en el Makefile, ya que tengo que sustituir el valor de
NEW_INCLUDE_PATH pues el directorio que me dice aqui no existe en mi suse
7.3. El Makefile tiene la siguiente pinta :
CC=gcc
MODCFLAGS := -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX
NEW_INCLUDE_PATH=-I /usr/src/linux-2.4.18-3/include/
r8169.o: r8169.c /usr/include/linux/version.h
$(CC) $(MODCFLAGS) $(NEW_INCLUDE_PATH) -c r8169.c
clean:
rm *.o -f
~
¿ que direcctorio debo poner en NEW_INCLUDE_PATH ? como os he dicho se trata
de un suse 7.3.
Muchas Gracias a to2
--
Usuario Linux número 396108
| < Previous | Next > |