Realtek nic linux driver

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Official linux driver source for Realtek R810xE 100M ethernet controllers

ghostrider-reborn/realtek-r8101-linux-driver

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Realtek R8101 linux driver source

This is the official linux driver source for Realtek RTL8101E/RTL8102E/RTL8103E/RTL8105E/RTL8106E/RTL8107E FE 100M NICs, obtained from here. Tested on Ubuntu 20.04 in my Dell Inspiron 1440 laptop, ethernet works flawlessly with a speed of 95 Mbps upload and download.

Since Ubuntu 18 these NICs are being used with the default r8169 driver (which is for the R8169 gigabit ethernet controller only), which causes terrible download and upload speeds. Installing the official driver for 810xE series fixes it.

Driver version: 1.035.03
Release date: 26/05/2020

NOTE: I upgraded to another laptop few months ago so I’m no longer maintaining this repo.

How to install this driver?

  • First of all, clone this repo to some folder and cd into that folder
  • Install basic dependencies for compiling the driver: sudo apt install build-essential linux-headers-$(uname -r)
  • Unload the existing r8169 driver: sudo modprobe -r r8169
  • Block the r8169 driver in modprobe: sudo sh -c ‘echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf’
  • Run the automatic build & install script: sudo ./autorun.sh . Ignore errors if any.
  • Check if the driver is loaded: lsmod | grep r8101 , it will return a single line like r8101 204800 0
  • If the driver is not loaded, then run sudo modprobe r8101 .
  • Now try connecting. If you don’t see the connection then you might need a reboot.
  • Enjoy ethernet speeds upto 100Mbps!
 1. Set manually a. Set the IP address of your machine. # ifconfig ethX "the IP address of your machine" b. Set the IP address of DNS. Insert the following configuration in /etc/resolv.conf. nameserver "the IP address of DNS" c. Set the IP address of gateway. # route add default gw "the IP address of gateway" 2. Set by doing configurations in /etc/sysconfig/network-scripts /ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network /ifcfg-ethX for SuSE. There are two examples to set network configurations. a. Fixed IP address: DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=ethernet NETMASK=255.255.255.0 IPADDR=192.168.1.1 GATEWAY=192.168.1.254 BROADCAST=192.168.1.255 b. DHCP: DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes There are two ways to modify the MAC address of the NIC. 1. Use ifconfig: # ifconfig ethX hw ether YY:YY:YY:YY:YY:YY ,where X is the device number assigned by Linux kernel, and YY:YY:YY:YY:YY:YY is the MAC address assigned by the user. 2. Use ip: # ip link set ethX address YY:YY:YY:YY:YY:YY ,where X is the device number assigned by Linux kernel, and YY:YY:YY:YY:YY:YY is the MAC address assigned by the user. 1. Force the link status when insert the driver. If the user is in the path ~/r8101, the link status can be forced to one of the 4 modes as following command. # insmod ./src/r8101.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION where SPEED_MODE = 100 for 100Mbps = 10 for 10Mbps DUPLEX_MODE = 0 for half-duplex = 1 for full-duplex NWAY_OPTION = 0 for auto-negotiation off (true force) = 1 for auto-negotiation on (nway force) For example: # insmod ./src/r8101.ko speed=100 duplex=0 autoneg=1 will force PHY to operate in 100Mpbs Half-duplex(nway force). 2. Force the link status by using ethtool. a. Insert the driver first. b. Make sure that ethtool exists in /sbin. c. Force the link status as the following command. # ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION where SPEED_MODE = 100 for 100Mbps = 10 for 10Mbps DUPLEX_MODE = half for half-duplex = full for full-duplex NWAY_OPTION = off for auto-negotiation off (true force) = on for auto-negotiation on (nway force) For example: # ethtool -s eth0 speed 100 duplex full autoneg on will force PHY to operate in 100Mpbs Full-duplex(nway force). RTL8101E, RTL8102E and RTL8103E do not support Jumbo Frame. 

About

Official linux driver source for Realtek R810xE 100M ethernet controllers

Читайте также:  Linux mint установка приложений windows

Источник

Realtek nic linux driver

Установка драйвера для Wi-Fi адаптера от Realtek под Linux может стать небольшой проблемой. Есть несколько версий драйверов на github, но не все подходят для ядра линукс версий 5.+ . Здесь покажу рабочий вариант

У меня USB адаптер, и вот так он выглядит в lsusb. ID: 0bda:c811

Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC 

Установка

Вот этот драйвер подойдет к адаптерам на базе RTL8811CU RTL8821CU RTL8731AU, и к Linux kernel версий 4.19-6.1: https://github.com/morrownr/8821cu-20210916

Устанавливаю на Ubuntu 22.10:

sudo apt update && sudo apt install build-essential git dkms bc git clone https://github.com/morrownr/8821cu-20210916.git cd 8821cu-20210916 sudo ./install-driver.sh 

Если все прошло успешно, скрипт спросит “Do you want to edit the driver options file now?” — отказываемся. На предложение перезагрузки соглашаемся 🙂

iwconfig

После ребута получаем рабочий Wi-Fi адаптер:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Linux driver for Realtek RTL8111/8168/8411 PCIe GBE NIC

airium/Realtek-PCIe-GBE-NIC-Driver

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Читайте также:  Linux python installation path

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Realtek PCIe GBE NIC Driver

Applicable for RTL8111/8168/8411 PCIe GBE NIC.

Using the official driver will resolve sending rate being capped at 4MB/s per tcp connection under tcp-bbr, typically when you’re using the default r8169 nic driver on RTL8168 device. Newer distros like Ubuntu 18.04.3 with a mainline Linux 5.3 should not have the problem any more. You should try this driver only if you did notice the sending rate degradation.

    Install dependences (assume sudo su )

apt update && apt install build-essential libelf-dev linux-headers-$(uname -r)
git clone https://github.com/airium/Realtek-PCIe-GBE-NIC-Driver.git cd Realtek-PCIe-GBE-NIC-Driver/r8168-8.047.05 sh autorun.sh # this script will break the network temporarily # on Ubuntu 16/18, your ssh session will be automatically resumed in ~1 minute # on Debian 8/9, you might have to reboot manually after ~5 minutes
for i in $(ls /sys/class/net); do echo $i '=====================' ethtool -i $i done
enp4s0 ===================== driver: r8168 version: 8.047.05-NAPI firmware-version: expansion-rom-version: bus-info: 0000:04:00.0 supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: yes supports-priv-flags: no 

Compared with the reference, this guide complements necessary dependencies, and removes the blacklist operation (it seems the Realtek driver will do it for you).

About

Linux driver for Realtek RTL8111/8168/8411 PCIe GBE NIC

Читайте также:  Linux лучший pdf редактор

Источник

Установка драйвера для NIC Realtek RTL8101E в Linux

Может кому пригодится решение проблемы с низкой производительностью сетевой карты Realtek RTL8101E.
Установил Fedora 19 на ноутбук Samsung X120. В ноутбуке установлена сетевая карта
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02).
Драйвер для нее встал вот такой:
Kernel driver in use: [b]r8169[/b]
Имя файла: /lib/modules/3.11.3-201.fc19.x86_64/kernel/drivers/net/ethernet/realtek/r8169.ko
kernel-3.11.3-201.fc19.x86_64: The Linux kernel
Источник: updates
iperf показывает трансфер порядка полутора мегабит:
[ 3] 0.0-11.9 sec 2.38 MBytes 1.68 Mbits/sec

На сайте производителя ( http://www.realtek.com )
есть исходники родного драйвера ( r8101-1.024.00.tar.bz2 ), который не собирается в новых ядрах из-за двух проблем:
1) константа

__vlan_hwaccel_put_tag(skb, swab16(opts2 & 0xffff)) 
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)) 

решение было найдено в патчах для модуля r8169.ko
после установки нового модуля iperf показывает трансфер почти 100 Мбит/сек
0.0-10.0 sec 113 MBytes 94.1 Mbits/sec
ну и сформируем новый initramfs ( в fedor’е )

--- r8101-1.024.00.not-patched/src/r8101_n.c 2013-06-14 10:45:47.000000000 +0400 +++ r8101-1.024.00/src/r8101_n.c 2013-09-25 15:52:22.000000000 +0400 @@ -1906,7 +1906,7 @@ > #else if (opts2 & RxVlanTag) - __vlan_hwaccel_put_tag(skb, swab16(opts2 & 0xffff)); + __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); #endif desc->opts2 = 0; @@ -1967,7 +1967,7 @@ else tp->cp_cmd &= ~RxChkSum; - if (dev->features & NETIF_F_HW_VLAN_RX) + if (dev->features & NETIF_F_HW_VLAN_CTAG_RX) tp->cp_cmd |= RxVlan; else tp->cp_cmd &= ~RxVlan; @@ -7292,7 +7292,7 @@ #endif #ifdef CONFIG_R8101_VLAN - dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; + dev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) dev->vlan_rx_kill_vid = rtl8101_vlan_rx_kill_vid; #endif//LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) @@ -7305,7 +7305,7 @@ #else dev->features |= NETIF_F_RXCSUM | NETIF_F_SG; dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | - NETIF_F_RXCSUM | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; + NETIF_F_RXCSUM | NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX; dev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | NETIF_F_HIGHDMA; #endif 

Источник

Оцените статью
Adblock
detector