GithubHelp home page GithubHelp logo

realganfan / r8125-esxi Goto Github PK

View Code? Open in Web Editor NEW
203.0 14.0 66.0 573 KB

Realtek RTL8125 driver for ESXi 6.7

License: GNU General Public License v3.0

Makefile 0.77% C 97.67% Shell 1.57%
esxi r8125 driver vmware rtl8125

r8125-esxi's Introduction

Realtek RTL8125 NIC driver for ESXi 6.7

This source code is based on realtek official source, VMware-ESXI-67U3-ODP and VMware-TOOLS-10.2.0-ODP.

Just do these steps:

  • Prepare the building environment, I did it on CentOS 7
  • Log in with root, make a folder name 'build' on /, make folder toolchain and vsphere in /build.
  • Copy and extract gcc-4.8.0, binutils-2.22, glibc-2.3.4-2.41 to /build/toolchain/src
  • Compile the toolchain, dest path is /build/toolchain/lin64
  • Extract and copy vmkdrivers-gpl from 67U3-ODP to /build/vsphere
  • Copy build-r8125.sh to /build/vsphere/vmkdrivers-gpl/
  • Copy r8125 folder to /build/vsphere/vmkdrivers-gpl/vmkdrivers/src_9/drivers/net
  • Run build-r8125.sh

r8125-esxi's People

Contributors

realganfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r8125-esxi's Issues

Thanks and test

Fist, thanks a lot.
简单测试了两天,运行基本没问题,发现以下问题,盼下个版本能修复:

  1. LAN口工作稳定没问题,做WAN通过pppoe拨号比上一版稍好,但还是会吊死。配置了两个WAN拨号,一个端口流量到8G多就吊死,另一个工作到16G左右,两个端口同时吊死。直通给openwrt后工作没问题。
  2. 端口工作模式不能修改为1000M,全双工。因为pppoe吊死后,无法通过禁用启用接口恢复端口,我都是通过把接口模式由自动协商修改成1000M,或者把1000M修改为自协商就会恢复,所以发现不能改为这个模式,但是可以改为10M或1000M.
  3. 不完全确定我的配置没问题,VLAN还是不能工作。

再次感谢付出,希望下个版本可以更好。

请问怎么编译?

Compile the toolchain, dest path is /build/toolchain/lin64
这一步怎么操作?

Jumbo frames

Just to mention it as the VLAN problem, there seems to be no MTU 9000 support.

cant't install or update

[root@localhost:~] esxcli software vib update -v /r8125-9.006.04-1.vib
[VibDownloadError]
('/r8125-9.006.04-1.vib', 'Bad VIB archive header')
url = /r8125-9.006.04-1.vib
Please refer to the log file for more details.

r8125-esxi-9.005.06 已编译,征集测试

https://github.com/shuxin/r8125-esxi-9.005.06/tree/main/BLD/build/vmkdriver-r8125/release/vmkernel64

按照作者ganfan的教程,编译了一把 9.005.06 版,征求测试与反馈。

警告:

  • 1.该驱动编译后,本人测试有限。可能不稳定,甚至可能导致不可预知的灾难性后果,请做好故障预案。请勿用于生产。
  • 2.已知系统启动时有warn日志,涉及 rtl8125_enable_rxdvgate、rtl8125_nic_reset、rtl8125_disable_rxdvgate三个函数,但该段代码为realtek原版,本人未作修改,暂未发现影响使用。
  • 3.本人已尽提醒义务。您必须了解使用本软件的风险,您将出于自愿测试使用本驱动,本人不承诺提供任何形式的技术支持、使用担保,也不承担任何因使用本驱动而产生问题的相关责任。您若下载,则代表同意。

RTL8125 driver for ESXi Vmware 7.0

Dear Sir,
This driver could not been used on the ESXi Vmware 7.0, could you help to make a driver that can be used on the ESXi Vmware 7.0.

Thanks!

编译完成r8125-esxi-9.009.00,征集测试

https://github.com/lengfwang/r8125-esxi6.7/blob/r8125-esxi/net-r8125-9.009.00-4.vib
按照原作者ganfan的教程,编译了一把 9.009.00 版,现征集测试:

说明:
1.该驱动编译后,本人测试有限。可能不稳定,甚至可能导致不可预知的灾难性后果,请做好故障预案,请勿用于生产。
2.本人已尽提醒义务。您必须了解使用本软件的风险,您将出于自愿测试使用本驱动,本人不承诺提供任何形式的技术支持、使用担保,也不承担任何因使用本驱动而产生问题的相关责任。您若下载,则代表同意。(copy from @shuxin,thanks:)
3.基本函数,网卡驱动类的更是两眼发黑,不明白参数含义,完全抄袭realganfan的,若有高手可参考修改的9.009.01 https://github.com/lengfwang/r8125-esxi6.7
4.基本功能正常,用做WAN口的pppoe拨号端口吊死问题正在测试,还未知。VLAN测试正常。
ps:编译的9.009.00-1第一版,引起esxi无法启动,此为第二版,现使用正常。

net-r8125-9.004.01-2存在外网反复断网情况

日常使用情况下,每日至少断网1次,断网后重启路由器不能再次成功拨号,需重启esxi,才能重新联网。望修复,谢谢。爱快日志:
cif6addr: ioctl(SIOCDIFADDR): No such address
2020-11-28 13:47:32
adsl
Connect time 97.7 minutes.
2020-11-28 13:47:32
adsl
Serial link appears to be disconnected.
2020-11-28 13:47:32
adsl
No response to 20 echo-requests

ESXi 6.7 Realtek USB 8156 driver

Hi realganfan,

I have a big question, that, I hope you can will help me with...
I need the realtek 8156 driver...
I tried that one here - https://flings.vmware.com/usb-network-native-driver-for-esxi - but unfortunatly that does not worked or causes couple of issues...
And it seems there are not updating that driver for ESXi 6.7.
I found there is a newer driver - https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software - , but unfortunately all my tries to build that driver myself failed...

So it would be great if you could try it.

Thanks.
BR
Chavelle

This happens when compiling the driver, help me

The computer is win10, using Vmware virtualization centos7

git clone https://github.com/realganfan/compile-vmkdriver-env-builder

cd compile-vmkdriver-env-builder

bash build--esxi-driver-env-centos7.sh

Build completed,please comfirm your /build/toolchain/lin64 has 3 subfolders.
Remember changing your build-xxxx.sh:
binutil version: 2.22
gcc version: 4.8.0
glibc version: 2.3.4-2.41

[root@bogon compile-vmkdriver-env-builder]# cd /build/vsphere/vmkdrivers-gpl
[root@bogon vmkdrivers-gpl]# ./build-r8125.sh
In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0,
from vmkdrivers/src_9/drivers/net/r8125/r8125_n.c:83:
vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory
#include <linux/timecounter.h>
^
compilation terminated.
In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0,
from vmkdrivers/src_9/drivers/net/r8125/rtl_eeprom.c:44:
vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory
#include <linux/timecounter.h>
^
compilation terminated.
In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0,
from vmkdrivers/src_9/drivers/net/r8125/rtltool.c:43:
vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory
#include <linux/timecounter.h>
^
compilation terminated.
/build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/r8125_n.o: No such file or directory
/build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/rtl_eeprom.o: No such file or directory
/build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/rtltool.o: No such file or directory
cp: cannot stat ‘/build/vmkdrivers-gpl/BLD/build/vmkdriver-r8125/release/vmkernel64/r8125’: No such file or directory

VLAN not working, untagged traffic works

Hardware: GB-BRR7-4800 (https://www.gigabyte.com/Mini-PcBarebone/GB-BRR7-4800-rev-10#kf)
I've installed esxi6.7 with your vib driver and can get link up to 2.5Gbps
untagged traffic works, tagged traffic is not seen by the network adapter

[root@localhost:~] esxcli network nic list
Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description


vmnic0 0000:02:00.0 r8125 Up Up 1000 Full 18:c0:4d:8c:7f:34 1500 Realtek Semiconductor Co., Ltd. Ethernet controller
vusb0 Pseudo uether Up Down 0 Half 00:e0:4c:68:00:84 1500 Realtek USB 101001G2.5G LAN

using
pktcap-uw --uplink vusb0 --vlan 300
shows I'm getting packets when cable is attached to vusb0 nic, but no incoming packets are seen on vmnic0

I've some suggestions to say that vlan egress is working (since vmware host's nic shows up in arp table when attached to builtin nic) but haven't looked into it further

Can anyone else replicate or mitigate?

Not loading any NIC firmware

Other ESXi drivers like tg3 or ixge have embedded the FW for loading. Linux uses /lib/firmware/

#define FIRMWARE_8125A_3        "rtl_nic/rtl8125a-3.fw"
#define FIRMWARE_8125B_2        "rtl_nic/rtl8125b-2.fw"
#define FIRMWARE_8126A_1        "rtl_nic/rtl8126a-1.fw"

None of this is implemented and might cause the network drops or not having any VLAN support. If we want a stable driver, someone needs to do it.

r8125 9.009.02 error

git clone https://github.com/realganfan/compile-vmkdriver-env-builder

cd compile-vmkdriver-env-builder

bash build--esxi-driver-env-centos7.sh


Build completed,please comfirm your /build/toolchain/lin64 has 3 subfolders.
Remember changing your build-xxxx.sh:
binutil version: 2.22
gcc version: 4.8.0
glibc version: 2.3.4-2.41


[root@bogon compile-vmkdriver-env-builder]# cd /build/vsphere/vmkdrivers-gpl
[root@bogon vmkdrivers-gpl]# ./build-r8125.sh
In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0,
from vmkdrivers/src_9/drivers/net/r8125/r8125_n.c:83:
vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory
#include <linux/timecounter.h>
^
compilation terminated.
In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0,
from vmkdrivers/src_9/drivers/net/r8125/rtl_eeprom.c:44:
vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory
#include <linux/timecounter.h>
^
compilation terminated.
In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0,
from vmkdrivers/src_9/drivers/net/r8125/rtltool.c:43:
vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory
#include <linux/timecounter.h>
^
compilation terminated.
/build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/r8125_n.o: No such file or directory
/build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/rtl_eeprom.o: No such file or directory
/build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/rtltool.o: No such file or directory
cp: cannot stat ‘/build/vmkdrivers-gpl/BLD/build/vmkdriver-r8125/release/vmkernel64/r8125’: No such file or directory

esxi6.7 sems to work, but speed isn't right

Hiya

Looking pretty positive, in esxi 6.7u2, but can't get the speed right.
Web gui won't allow manually set speed 1000-full, but will allow 100-full or 2500-full.
Doesn't negotiate 1000-full with multiple different switches, only gets 100-full.
Can't test with 2.5g switch, don't have one.

So nearly there...
It'd be great to have a CLI command to set speed-duplex.
(Yeah & I'd like a 2.5g switch, but...!)

drops off network

Hello there, thank you for providing the drivers.
Unfortunately if I do large file transfers (40GB vmdk file) my esxi host drops off the network.
I have to unplug the network cable and then back in for connectivity to resume... tried other cables and switches but the issue persists.

esxcli network nic get -n vmnic0

Advertised Auto Negotiation: true
Advertised Link Modes: 10BaseT/Half, 10BaseT/Full, 100BaseT/Half, 100BaseT/Full, 1000BaseT/Full, 2500BaseX/Full
Auto Negotiation: true
Cable Type: Twisted Pair
Current Message Level: 51
Driver Info:
Bus Info: 0000:02:00.0
Driver: r8125
Firmware Version:
Version: 9.007.01-NAPI
Link Detected: true
Link Status: Up
Name: vmnic0
PHYAddress: 0
Pause Autonegotiate: true
Pause RX: true
Pause TX: true
Supported Ports: TP
Supports Auto Negotiation: true
Supports Pause: true
Supports Wakeon: true
Transceiver: internal
Virtual Address: 00:50:56:5a:e2:95
Wakeon: MagicPacket(tm)

esxi6.7 R8125 9.007 没有硬件VLAN?

esxi6.7 安装R8125 9.007驱动可以正常上网。
Openwrt 上网正常,但我需要多个房间使用IPTV机顶盒。普通安装B面不能认证(上海IPTV)。
直通两个网卡给Openwrt时,VLAN85可以使用。

esxi6.7终端执行 esxcfg-info -n
==+Hardware Capabilities :
|----Vlan Tag...........................................false
|----Vlan Untag.........................................false
|----Checksum Offload...................................false
|----Tcp Segmentation Offload...........................false
|----Scatter Gather Tx..................................false
==+Supported Speeds and Duplex :
|----Supported Mode.....................................auto/auto
|----Supported Mode.....................................10/half
|----Supported Mode.....................................10/full
|----Supported Mode.....................................100/half
|----Supported Mode.....................................100/full
|----Supported Mode.....................................1000/full
|----Supported Mode.....................................2500/full

硬件VLAN false,驱动没有加VLAN支持吗?

Is it possible to compile this for ARM ESXi?

I can boot VMware-VMvisor-Installer-7.0.0-22949429.aarch64 on a RADXA Rock5B ARM SBC but the installer fails when it does not detect a driver.

Is it possible to create an ARM VIB for the ESXi ARM variant?

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.