¿Install Driver Realtek r8153 in OSMC?

Buenas.

Como la velocidad de la LAN era un tanto escasa compré un “pincho” a GB. pero no aumenta ni un poco la velocidad.

Antes de nada soy consciente de que evidentemente no irá nunca a GB (USB 2.0 480Mbits compartidos con dispositivos)…

pero viendo Test de gente en Internet con pinchos de estos consiguen llegar a velocidades de LAN cercanas a los 200 o 300 Mbits…

La inteción es utilizar una RPi Model B que tengo como NAS.

El pincho en cuestión tiene un Chip Realtek R8153 el lsusb “cuenta lo siguiente”

Bus 001 Device 004: ID 0bda:8153 Realtek Semiconductor Corp.

Pero el dmesg dice esto

[ 13.889536] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 14.030779] r8152 1-1.3:1.0 eth1: v1.08.2
[ 14.031469] usbcore: registered new interface driver r8152

Lo “instala” o controla como el R8152 (este funciona a 100Mbits)

buscando he encontrado en internet el driver para Linux.

http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=56&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

Pero no tengo ni P… idea de como instalarlo.

En principio lo quiero instalar en OSMC …

aunque tambien tengo minibian y raspbian.

Al hacer un iperf contra un PC con red a GB (y router a GB) me da velocidad de transferencia 95Mb… (entre los ordenadores llego a los 890 Mb). por lo que el router o el PC que utilizo para probar no es.

¿Alguien sabe como instalar el driver propietario o como solventar la “mala detección” del driver para que por lo menos apoveche algo mejor la red.

Saludos y disculpar por el tostonazo…
.
.
.
.
Translate with google Translator.

Goodnight.

As the speed of the LAN was somewhat sparse I bought a “spike” to GB. but it does not increase even a little speed.

First of all I am aware that obviously never going to GB (shared with USB 2.0 devices 480Mbits) …

but seeing Test of people on the Internet with spikes of these manage to reach speeds close LAN 200 or 300 Mbits …

Inteción is to use an RPI Model B I have as NAS.

The spike in question has a Realtek Chip R8153 the lsusb “consider the following”

Bus 001 Device 004: ID 0bda: 8153 Realtek Semiconductor Corp.

But the dmesg says this

[13.889536] usb 1-1.3: reset high-speed USB device using dwc_otg number 4
[14.030779] r8152 1-1.3: 1.0 eth1: v1.08.2
[14.031469] usbcore: registered new interface driver r8152

What “install” or controls as the R8152 (this works to 100Mbits)

I found on the internet looking for the driver for Linux.

http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=56&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

But I have no idea how P … install.

In principle I want to install in OSMC …

but also I have minibian and raspbian.

When
making a iperf against a network PC with GB (and router GB) gives me
transfer speed of 95Mb … (between computers came to 890 Mb). so the router or PC that I use for testing is not.

Does anyone know how to install the driver or owner solve the “bad detection” driver for at least apoveche better network.

Greetings and apologize for the tostonazo …

Hi, If I understand right you want to use a Gigabit usb adapter but it only gives you the same speed as the Raspberry’s built in network (100mbit/s)?
Cause this is what I also tried with the same result.
Generally it should be possible to get a bit more speed with Gigabit, I read about this - the only limit is the USB 2 port which is 480 mbit/s

For me the problem was not the adapter / driver itself but the cables/hub that i used. They limited everything to the 100mbit standard.
With the tool

ethtool

It is possible to force a 1000mbit negotiation between the PCs.
Did you try that?

By the way I extracted the driver from your link and it seems to be the same driver that was already on your system (r8152). Also it does not compile for me. It is possibly not compatible with newer kernels but not sure.

Translate with google Translator

Hello.

The cable is not the same cable with the PCs reach 1GB …

Ethtool result is as follows.

OSMC @ osmcrpi1: ~ $ ethtool eth1
Settings for eth1:
Supported ports: [TP ​​MII]
Supported link modes: 10baseT / Half 10baseT / Full
100baseT / Half 100baseT / Full
1000baseT / 1000baseT Half / Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT / Half 10baseT / Full
100baseT / Half 100baseT / Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT / Half 10baseT / Full
100baseT / Half 100baseT / Full
1000baseT / Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 100Mb / s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Can not get wake-on-lan settings: Operation not permitted
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr TX_DONE rx_status pktdata hw wol
Link detected: yes

I tried it with another single Cat6 cable 20cm (minimal loss), it gives exactly the same result. I tried it on another port on the router and the same result.

The router is this

http://www.tp-link.com/en/products/details/cat-9_TL-WDR4300.html

GB Lan.

results of mii-tool

osmc@osmcrpi1:~$ sudo mii-tool -v eth1
eth1: negotiated 100baseTx-FD flow-control, link ok
product info: vendor 00:07:32, model 0 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

You know as bargaining strength 1GB?

Greetings and thanks for answering: D
.
.
.
.
.
.
En español

Hola buenas.

El cable no es, con ese mismo cable los PCs llegan a 1GB…

el resultado de ethtool es el siguiente.

osmc@osmcrpi1:~$ ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
Link detected: yes

He probado con otro cable Cat6 de solo 20cm (perdida minima) , da exactamente el mismo resultado. he probado en otro puerto del router y el mismo resultado.

El router es este

http://www.tp-link.com/en/products/details/cat-9_TL-WDR4300.html

Lan a GB.

¿sabes como se fuerza la negociación a 1GB?

osmc@osmcrpi1:~$ sudo mii-tool -v eth1
eth1: negotiated 100baseTx-FD flow-control, link ok
product info: vendor 00:07:32, model 0 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

Saludos y gracias por contestar :smiley:

OK, ethtool shows that the device uses 100Mbit/s at the moment but should be capable of setting to 1000Mbit/s.
Did you try to manually set the link speed to 1000Mbit?
Like:

sudo ethtool -s eth1 autoneg off speed 1000 duplex full

or first

sudo ethtool -s eth1 autoneg off

then

sudo ethtool -s eth1 speed 1000 duplex full

Maybe also try

sudo mii-tool -F 1000baseTx-FD

And of course also try that on the other machine. I think important is to deactivate autonegotiation first before setting the speed manually.

Unfortunately all that did not work for me so I cannot provide more help. But I tried it with a different adapter so maybe you have more luck :slight_smile: