elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Tutorial básico de Quickjs


+  Foro de elhacker.net
|-+  Sistemas Operativos
| |-+  GNU/Linux (Moderador: MinusFour)
| | |-+  Problema driver ethernet Ubuntu 14.04
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Problema driver ethernet Ubuntu 14.04  (Leído 3,995 veces)
Thryks

Desconectado Desconectado

Mensajes: 112



Ver Perfil
Problema driver ethernet Ubuntu 14.04
« en: 14 Mayo 2015, 15:45 pm »

Les comento mi problema, recién instalado Ubuntu 14.04 he navegado un poco y notaba el internet lento, normalmente las descargas me funcionan a 500 - 600 Kbps y cuando miro me van a 80-150 Kbps, creyendo que esto sería problema de el driver que trae ubuntu para mi tarjeta ethernet RTL8111/8168/8411 cojí el cd de instalacion de drivers que me trae Asus, la placa base es asus y lo introduje en el PC, entre en la carpeta que dice linuxdrivers la copie y la pegue al escritorio.
La descomprimí he hice un ls para ver lo que contenía y era esto:
Código:
autorun.sh
log.txt
Makefile
README
src
Al intentar hacer un sudo
Código:
./autorun.sh
me da el siguiente error:
Código:
Check old driver and unload it.
rmmod r8169
Build the module and install
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c: In function ‘rtl8168_set_features’:
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1746:22: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
  if (dev->features & NETIF_F_HW_VLAN_RX)
                      ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1746:22: note: each undeclared identifier is reported only once for each function it appears in
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c: In function ‘rtl8168_rx_vlan_skb’:
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1793:3: error: too few arguments to function ‘__vlan_hwaccel_put_tag’
   __vlan_hwaccel_put_tag(skb, swab16(opts2 & 0xffff));
   ^
In file included from /home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:47:0:
include/linux/if_vlan.h:337:31: note: declared here
 static inline struct sk_buff *__vlan_hwaccel_put_tag(struct sk_buff *skb,
                               ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c: At top level:
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2167:2: error: unknown field ‘get_rx_csum’ specified in initializer
  .get_rx_csum  = rtl8168_get_rx_csum,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2167:2: warning: initialization from incompatible pointer type [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2167:2: warning: (near initialization for ‘rtl8168_ethtool_ops.nway_reset’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2168:2: error: unknown field ‘set_rx_csum’ specified in initializer
  .set_rx_csum  = rtl8168_set_rx_csum,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2168:2: warning: initialization from incompatible pointer type [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2168:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_link’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2169:2: error: unknown field ‘get_tx_csum’ specified in initializer
  .get_tx_csum  = rtl8168_get_tx_csum,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2169:2: warning: initialization from incompatible pointer type [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2169:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_eeprom_len’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2170:2: error: unknown field ‘set_tx_csum’ specified in initializer
  .set_tx_csum  = rtl8168_set_tx_csum,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2170:2: warning: initialization from incompatible pointer type [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2170:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_eeprom’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2171:2: error: unknown field ‘get_sg’ specified in initializer
  .get_sg   = ethtool_op_get_sg,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2171:2: warning: initialization from incompatible pointer type [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2171:2: warning: (near initialization for ‘rtl8168_ethtool_ops.set_eeprom’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2172:2: error: unknown field ‘set_sg’ specified in initializer
  .set_sg   = ethtool_op_set_sg,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2172:2: warning: initialization from incompatible pointer type [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2172:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_coalesce’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2174:2: error: unknown field ‘get_tso’ specified in initializer
  .get_tso  = ethtool_op_get_tso,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2174:14: error: ‘ethtool_op_get_tso’ undeclared here (not in a function)
  .get_tso  = ethtool_op_get_tso,
              ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2175:2: error: unknown field ‘set_tso’ specified in initializer
  .set_tso  = ethtool_op_set_tso,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2175:14: error: ‘ethtool_op_set_tso’ undeclared here (not in a function)
  .set_tso  = ethtool_op_set_tso,
              ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12326:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_board’
 rtl8168_init_board(struct pci_dev *pdev,
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12651:2: warning: initialization from incompatible pointer type [enabled by default]
  .ndo_fix_features = rtl8168_fix_features,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12651:2: warning: (near initialization for ‘rtl8168_netdev_ops.ndo_fix_features’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12652:2: warning: initialization from incompatible pointer type [enabled by default]
  .ndo_set_features = rtl8168_set_features,
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12652:2: warning: (near initialization for ‘rtl8168_netdev_ops.ndo_set_features’) [enabled by default]
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12661:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_one’
 rtl8168_init_one(struct pci_dev *pdev,
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12821:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_remove_one’
 rtl8168_remove_one(struct pci_dev *pdev)
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c: In function ‘rtl8168_xmit_frags’:
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:14332:3: error: incompatible type for argument 1 of ‘lowmem_page_address’
   addr = ((void *) page_address(frag->page)) + frag->page_offset;
   ^
In file included from /usr/src/linux-headers-3.13.0-24-generic/arch/x86/include/asm/pci.h:4:0,
                 from include/linux/pci.h:1487,
                 from /home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:41:
include/linux/mm.h:852:30: note: expected ‘const struct page *’ but argument is of type ‘struct <anonymous>’
 static __always_inline void *lowmem_page_address(const struct page *page)
                              ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c: At top level:
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:15209:12: error: ‘rtl8168_init_one’ undeclared here (not in a function)
  .probe  = rtl8168_init_one,
            ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:15210:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
  .remove  = __devexit_p(rtl8168_remove_one),
  ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:15210:25: error: ‘rtl8168_remove_one’ undeclared here (not in a function)
  .remove  = __devexit_p(rtl8168_remove_one),
                         ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:14859:12: warning: ‘rtl8168_poll’ defined but not used [-Wunused-function]
 static int rtl8168_poll(napi_ptr napi, napi_budget budget)
            ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:817:13: warning: ‘rtl8168_driver_start’ defined but not used [-Wunused-function]
 static void rtl8168_driver_start(struct rtl8168_private *tp)
             ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:836:13: warning: ‘rtl8168_driver_stop’ defined but not used [-Wunused-function]
 static void rtl8168_driver_stop(struct rtl8168_private *tp)
             ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1125:1: warning: ‘rtl8168_xmii_reset_pending’ defined but not used [-Wunused-function]
 rtl8168_xmii_reset_pending(struct net_device *dev)
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1140:1: warning: ‘rtl8168_xmii_link_ok’ defined but not used [-Wunused-function]
 rtl8168_xmii_link_ok(struct net_device *dev)
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1152:1: warning: ‘rtl8168_xmii_reset_enable’ defined but not used [-Wunused-function]
 rtl8168_xmii_reset_enable(struct net_device *dev)
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1285:1: warning: ‘rtl8168_link_option’ defined but not used [-Wunused-function]
 rtl8168_link_option(int idx,
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1526:1: warning: ‘rtl8168_set_speed_xmii’ defined but not used [-Wunused-function]
 rtl8168_set_speed_xmii(struct net_device *dev,
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:1821:13: warning: ‘rtl8168_gset_xmii’ defined but not used [-Wunused-function]
 static void rtl8168_gset_xmii(struct net_device *dev,
             ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2159:27: warning: ‘rtl8168_ethtool_ops’ defined but not used [-Wunused-variable]
 static struct ethtool_ops rtl8168_ethtool_ops = {
                           ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2504:12: warning: ‘rtl8168_get_mac_version’ defined but not used [-Wunused-function]
 static int rtl8168_get_mac_version(struct rtl8168_private *tp, void __iomem *ioaddr)
            ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2603:1: warning: ‘rtl8168_print_mac_version’ defined but not used [-Wunused-function]
 rtl8168_print_mac_version(struct rtl8168_private *tp)
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:2645:1: warning: ‘rtl8168_hw_phy_config’ defined but not used [-Wunused-function]
 rtl8168_hw_phy_config(struct net_device *dev)
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:11485:1: warning: ‘rtl8168_release_board’ defined but not used [-Wunused-function]
 rtl8168_release_board(struct pci_dev *pdev,
 ^
/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.c:12606:17: warning: ‘rtl8168_try_msi’ defined but not used [-Wunused-function]
 static unsigned rtl8168_try_msi(struct pci_dev *pdev, void __iomem *ioaddr)
                 ^
cc1: some warnings being treated as errors
make[3]: *** [/home/thork/Escritorio/LAN/r8168-8.026.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/home/thork/Escritorio/LAN/r8168-8.026.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2

Entonces ejecuto un make y me da el mismo error, después intento ejecutar un make install e igualmente, ¿alguien puede darme una orientacion acerca de esto?
En cuanto ejecuto el .autorun.sh la conexion ethernet se desconecta y me quedo sin internet, un poco raro no? :S gracias a todos de antemano.


En línea

Futuro Sysadmin
Stakewinner00


Desconectado Desconectado

Mensajes: 1.426



Ver Perfil WWW
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #1 en: 14 Mayo 2015, 16:07 pm »

"error: ‘NETIF_F_HW_VLAN_RX’ undeclared" -> creo que podría ser que te faltara alguna librería o alguna versión incorrecta de alguna lib

En el README pone algo sobre las dependencias (si tiene) o como compilarlo?
Normalmente si hay un README en mayus es razonable leerlo antes de compilarlo xD


En línea

MinusFour
Moderador Global
***
Desconectado Desconectado

Mensajes: 5.529


I'm fourth.


Ver Perfil WWW
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #2 en: 14 Mayo 2015, 16:17 pm »

¿Quizas es probable que el driver que tienes no sea compatible con el kernel 3.13? De todas formas, yo no creo que sea un problema del driver. Hay muchas variables que pueden ocasionar que una descarga no vaya al 100% de tu conexion.

Si quieres tratar de actualizar tu driver, usa el último de la pagina de RealTek.

http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
En línea

Thryks

Desconectado Desconectado

Mensajes: 112



Ver Perfil
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #3 en: 15 Mayo 2015, 00:59 am »

SI, tiene un README que dice lo siguiente:
Citar
<Linux device driver for Realtek Ethernet controllers>

   This is the Linux device driver released for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface.

<Requirements>

   - Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
   - For linux kernel 2.4.x, this driver supports 2.4.20 and latter.
   - Compiler/binutils for kernel compilation

<Quick install with proper kernel settings>
   Unpack the tarball :
      # tar vjxf r8168-8.aaa.bb.tar.bz2

   Change to the directory:
      # cd r8168-8.aaa.bb

   If you are running the target kernel, then you should be able to do :

      # ./autorun.sh   (as root or with sudo)

   You can check whether the driver is loaded by using following commands.

      # lsmod | grep r8168
      # ifconfig -a
Pero igual intento hacer un make y no funciona el make install tampoco y por supuesto el sudo ./autorun.sh tampoco funciona, efectivamente la velocidad de bajada depende de muchos factores pero es mas o menos un ejemplo ya que con el mismo sistema con drivers actualizados y las mismas condiciones el otro día ibaa 600 kbps y ahora a 200kbps, el router solo esta ocupado por este equipo.
En línea

Futuro Sysadmin
MinusFour
Moderador Global
***
Desconectado Desconectado

Mensajes: 5.529


I'm fourth.


Ver Perfil WWW
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #4 en: 15 Mayo 2015, 01:59 am »

Citar
   - Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)

Tu kernel es 3.13.x..., mi punto exactamente.
En línea

Thryks

Desconectado Desconectado

Mensajes: 112



Ver Perfil
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #5 en: 15 Mayo 2015, 12:40 pm »

Correcto Minus pero el problema es que hacer, porque he estado buscando el driver rtl8168 para ubuntu con kernel 3.14 y el que me sale me da el error que mostré en el primer post   :-( nose que puedo hacer para solucionar el problema, igualmente intentare actualizar todos los paquetes ya que me lo pide cada 2 por 3
En línea

Futuro Sysadmin
Thryks

Desconectado Desconectado

Mensajes: 112



Ver Perfil
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #6 en: 15 Mayo 2015, 14:28 pm »

Como mencionaste desde un principio minus la raiz de mi problema era un mal cable en mi casa pero igualmente para instalar el driver de Realtek lo solucione de esta manera, la dejo puesta por si alguien se quiere beneficiar de la info:
Código:
apt-get install build-essential
cd r8168-8.025.00
make clean modules
make install
depmod -a
insmod ./src/r8168.ko
mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`
echo “r8168″ >> /etc/modules
lspci -v
En línea

Futuro Sysadmin
MinusFour
Moderador Global
***
Desconectado Desconectado

Mensajes: 5.529


I'm fourth.


Ver Perfil WWW
Re: Problema driver ethernet Ubuntu 14.04
« Respuesta #7 en: 15 Mayo 2015, 15:16 pm »

Correcto Minus pero el problema es que hacer, porque he estado buscando el driver rtl8168 para ubuntu con kernel 3.14 y el que me sale me da el error que mostré en el primer post   :-( nose que puedo hacer para solucionar el problema, igualmente intentare actualizar todos los paquetes ya que me lo pide cada 2 por 3

Te deje un link de RealTek:

Citar
LINUX driver for kernel 3.x and 2.6.x and 2.4.x 8.040   2015/5/14

El readme no parece estar actualizado (dice que solo soporta 2.6.x y 2.4.x), asi que realmente no estoy seguro si probaste el link.
« Última modificación: 15 Mayo 2015, 16:23 pm por MinusFour » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Problema Driver Ethernet Nvidia
Windows
ignorantev1.1 6 4,812 Último mensaje 16 Junio 2010, 13:13 pm
por Randomize
Problema con driver RT73 en Ubuntu 9.10 y Kernel 2.6.35
Wireless en Linux
aaronduran2 2 2,706 Último mensaje 15 Agosto 2010, 16:24 pm
por aaronduran2
Que Driver Ethernet nesesito?
Software
kazraven 4 4,119 Último mensaje 30 Enero 2012, 13:33 pm
por abi-ds
Problemas driver REALTEK RTL8150 USB Fast Ethernet en Pfsense2.01
Redes
CATBro 0 2,614 Último mensaje 27 Julio 2012, 05:39 am
por CATBro
driver de ethernet o wifi de ASUS X751LK? no lo encuentro ni a la pagina oficial
Hardware
victtor77 4 3,302 Último mensaje 15 Mayo 2015, 21:45 pm
por _Slash_
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines