Giter Site home page Giter Site logo

wanghongjiang / r8152 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bb-qq/r8152

0.0 0.0 0.0 593 KB

Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters

License: GNU General Public License v2.0

Shell 1.56% C 98.35% Makefile 0.08%

r8152's Introduction

DSM driver for realtek RTL8152/RTL8153/RTL8156 based USB Ethernet adapters

This is an RTL8152/RTL8153/RTL8156(2.5Gbps or 1.0Gbps) driver package for Synology NASes.

You may also be interested in my other projects:

Supported NAS platform

  • DSM 7.x and 6.2
  • Almost all models released after 2017
    • Older models also work, but you may not have enough performance.
    • Compatibility reports by the community will help you.

You can download drivers from the release page and determine a proper driver for your model from knowledge base of Synology,

I very much appreciate it if you could report whether it works. If you have any problems, the Troubleshooting page may help.

NOTE: I recommend using front ports to connect devices because some users reported stability issues when they use rear ports.

Author's environment

The author uses the following environments daily and has confirmed that they work stably.

  • NAS
    • DS918+ (apollolake) with 16GB RAM
    • DSM 7.2-64570 Update 3
    • Ethernet dongle
      • USB-LAN2500R2 (RTL8156BG, only in Japan.)
  • PC
  • Network switches
    • main: QNAP QSW-2104-2T (Broadcom BCM53161: x3 2.5Gbe / x2 10Gbe)
    • sub: keepLINK 5 Port 2.5G Switch (Realtek RTL8372: x5 2.5Gbe / x1 10G SFP+)
      • If you are looking for an affordable 2.5Gbe switch, I recommend products using the RTL837x family, which is a newer generation of chips and consumes less power. Many other products are available from many vendors.

Supported RTL8156(2.5Gbps) based devices

INFO: Products using RTL8156BG have dramatically lower power consumption(up to 64% decrease) and heat generation than those using RTL8156.

See the Compatibility page for the latest information.

  • If you have other products not listed and they do not work, please create an issue with the output of lsusb.
  • If you are using a product with a Type-C connector, you will need a connector or cable to convert it to Type-A.
    • For stable device operation, I recommend using a USB 3.2gen2 10Gbps compatible cable.
    • A 5Gbps cable is sufficient for this driver to work, but a 10Gbps capable cable can be expected to have higher transmission quality.

How to install

Preparation

Enable SSH and login your NAS.

Installation

  1. Go to "Package Center"
  2. Press "Manual Install"
  3. Choose a driver package downloaded from the release page.
  4. [DSM7] The installation will fail the first time. After that, run the following command from the SSH terminal:
    • sudo install -m 4755 -o root -D /var/packages/r8152/target/r8152/spk_su /opt/sbin/spk_su
  5. [DSM7] Retry installation.
    • You don't need the above DSM7-specific steps at the next time.
  6. Reboot your NAS.
    • This procedure is not usually necessary, but many have reported that a reboot was necessary, so please reboot just in case.

https://www.synology.com/en-us/knowledgebase/SRM/help/SRM/PkgManApp/install_buy

Warning: Do not use Safari for this operation.

How to configure

You can configure the IP addresses and MTU of the added NICs from the DSM UI in the same way as the built-in NICs.

Option: I recommend setting MTU to 9000 and SMB protocol version to v3 for better performance.

Performance test

Environment

  • DS918+ (USB-LAN2500R)
  • DSM 6.2
  • direct connection with PC (AQN-107: discontinued, but almost equivalent to ASUS XG-C100C)
  • native iperf3
    • using docker causes high CPU load

Result

Connecting to host 192.168.0.xxx, port 5201
[  4] local 192.168.0.xxx port 50366 connected to 192.168.0.xxx port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   266 MBytes  2.23 Gbits/sec
[  4]   1.00-2.00   sec   274 MBytes  2.30 Gbits/sec
[  4]   2.00-3.00   sec   278 MBytes  2.33 Gbits/sec
[  4]   3.00-4.00   sec   278 MBytes  2.33 Gbits/sec
[  4]   4.00-5.00   sec   278 MBytes  2.33 Gbits/sec
[  4]   5.00-6.00   sec   278 MBytes  2.34 Gbits/sec
[  4]   6.00-7.00   sec   274 MBytes  2.30 Gbits/sec
[  4]   7.00-8.00   sec   267 MBytes  2.24 Gbits/sec
[  4]   8.00-9.00   sec   269 MBytes  2.26 Gbits/sec
[  4]   9.00-10.00  sec   271 MBytes  2.27 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  2.67 GBytes  2.29 Gbits/sec                  sender
[  4]   0.00-10.00  sec  2.67 GBytes  2.29 Gbits/sec                  receiver

iperf Done.

r8152's People

Contributors

bb-qq avatar riverscn avatar chag06 avatar gensplejs avatar kleuter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.