Problema driver ethernet Ubuntu 14.04

(1/2) > >>

Thryks:
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.

Stakewinner00:
"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

MinusFour:
¿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

Thryks:
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.

MinusFour:
Citar

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

Tu kernel es 3.13.x..., mi punto exactamente.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente