{"id":21076673,"url":"https://github.com/monah-rasta/r8125","last_synced_at":"2025-06-22T19:08:28.333Z","repository":{"id":205056586,"uuid":"713281817","full_name":"MONaH-Rasta/r8125","owner":"MONaH-Rasta","description":"2.5G Ethernet LINUX driver r8125","archived":false,"fork":false,"pushed_at":"2025-05-06T14:00:32.000Z","size":511,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T19:08:00.941Z","etag":null,"topics":["dkms","driver","ethernet","linux","network","realtek"],"latest_commit_sha":null,"homepage":"https://www.realtek.com/Download/List?cate_id=584","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MONaH-Rasta.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-02T07:52:23.000Z","updated_at":"2025-06-16T15:12:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0caed93-e905-451b-9cc5-82de8ad8fbc8","html_url":"https://github.com/MONaH-Rasta/r8125","commit_stats":null,"previous_names":["monah-rasta/r8125"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/MONaH-Rasta/r8125","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONaH-Rasta%2Fr8125","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONaH-Rasta%2Fr8125/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONaH-Rasta%2Fr8125/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONaH-Rasta%2Fr8125/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MONaH-Rasta","download_url":"https://codeload.github.com/MONaH-Rasta/r8125/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONaH-Rasta%2Fr8125/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261348750,"owners_count":23145313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dkms","driver","ethernet","linux","network","realtek"],"created_at":"2024-11-19T19:29:42.357Z","updated_at":"2025-06-22T19:08:23.319Z","avatar_url":"https://github.com/MONaH-Rasta.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cLinux device driver for Realtek Ethernet controllers\u003e\n\n\tThis is the Linux device driver released for Realtek 2.5 Gigabit Ethernet controllers with PCI-Express interface.\n\n\u003cRequirements\u003e\n\n\t- Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)\n\t- For linux kernel 2.4.x, this driver supports 2.4.20 and latter.\n\t- Compiler/binutils for kernel compilation\n\n\u003cQuick install with proper kernel settings\u003e\n\tUnpack the tarball :\n\t\t# tar vjxf r8125-9.aaa.bb.tar.bz2\n\n\tChange to the directory:\n\t\t# cd r8125-9.aaa.bb\n\n\tIf you are running the target kernel, then you should be able to do :\n\n\t\t# ./autorun.sh\t(as root or with sudo)\n\n\tYou can check whether the driver is loaded by using following commands.\n\n\t\t# lsmod | grep r8125\n\t\t# ifconfig -a\n\n\tIf there is a device name, ethX, shown on the monitor, the linux\n\tdriver is loaded. Then, you can use the following command to activate\n\tthe ethX.\n\n\t\t# ifconfig ethX up\n\n\t\t,where X=0,1,2,...\n\n\u003cSet the network related information\u003e\n\t1. Set manually\n\t\ta. Set the IP address of your machine.\n\n\t\t\t# ifconfig ethX \"the IP address of your machine\"\n\n\t\tb. Set the IP address of DNS.\n\n\t\t   Insert the following configuration in /etc/resolv.conf.\n\n\t\t\tnameserver \"the IP address of DNS\"\n\n\t\tc. Set the IP address of gateway.\n\n\t\t\t# route add default gw \"the IP address of gateway\"\n\n\t2. Set by doing configurations in /etc/sysconfig/network-scripts\n\t   /ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network\n\t   /ifcfg-ethX for SuSE. There are two examples to set network\n\t   configurations.\n\n\t\ta. Fixed IP address:\n\t\t\tDEVICE=eth0\n\t\t\tBOOTPROTO=static\n\t\t\tONBOOT=yes\n\t\t\tTYPE=ethernet\n\t\t\tNETMASK=255.255.255.0\n\t\t\tIPADDR=192.168.1.1\n\t\t\tGATEWAY=192.168.1.254\n\t\t\tBROADCAST=192.168.1.255\n\n\t\tb. DHCP:\n\t\t\tDEVICE=eth0\n\t\t\tBOOTPROTO=dhcp\n\t\t\tONBOOT=yes\n\n\u003cModify the MAC address\u003e\n\tThere are two ways to modify the MAC address of the NIC.\n\t1. Use ifconfig:\n\n\t\t# ifconfig ethX hw ether YY:YY:YY:YY:YY:YY\n\n\t   ,where X is the device number assigned by Linux kernel, and\n\t\t  YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.\n\n\t2. Use ip:\n\n\t\t# ip link set ethX address YY:YY:YY:YY:YY:YY\n\n\t   ,where X is the device number assigned by Linux kernel, and\n\t\t  YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.\n\n\u003cForce Link Status\u003e\n\n\t1. Force the link status when insert the driver.\n\n\t   If the user is in the path ~/r8125, the link status can be forced\n\t   to one of the 5 modes as following command.\n\n\t\t# insmod ./src/r8125.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION\n\n\t\t,where\n\t\t\tSPEED_MODE\t= 1000\tfor 1000Mbps\n\t\t\t\t\t= 100\tfor 100Mbps\n\t\t\t\t\t= 10\tfor 10Mbps\n\t\t\tDUPLEX_MODE\t= 0\tfor half-duplex\n\t\t\t\t\t= 1\tfor full-duplex\n\t\t\tNWAY_OPTION\t= 0\tfor auto-negotiation off (true force)\n\t\t\t\t\t= 1\tfor auto-negotiation on (nway force)\n\t\tFor example:\n\n\t\t\t# insmod ./src/r8125.ko speed=100 duplex=0 autoneg=1\n\n\t\twill force PHY to operate in 100Mpbs Half-duplex(nway force).\n\n\t2. Force the link status by using ethtool.\n\t\ta. Insert the driver first.\n\t\tb. Make sure that ethtool exists in /sbin.\n\t\tc. Force the link status as the following command.\n\n\t\t\t2.5G before kernel v4.10\n\t\t\t# ethtool -s eth0 autoneg on advertise 0x802f\n\n\t\t\t2.5G for kernel v4.10 and later\n\t\t\t# ethtool -s eth0 autoneg on advertise 0x80000000002f\n\n\t\t\t# ethtool -s eth0 autoneg on advertise 0x002f (1G)\n\t\t\t# ethtool -s eth0 autoneg on advertise 0x000f (100M full)\n\t\t\t# ethtool -s eth0 autoneg on advertise 0x0003 (10M full)\n\n\u003cJumbo Frame\u003e\n\tTransmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please change mtu by the following command.\n\n\t# ifconfig ethX mtu MTU\n\n\t, where X=0,1,2,..., and MTU is configured by user.\n\n\tRTL8125 supports Jumbo Frame size up to 9 kBytes.\n\n\u003cEEE\u003e\n    Get/Set device EEE status\n\n\t\tGet EEE device status\n\t\t# ethtool --show-eee enp1s0\n\n\t\tSet EEE device status\n\t\t# ethtool --set-eee enp1s0 eee on tx-lpi on tx-timer 1546 advertise 0x0008 (100M full)\n\t\t# ethtool --set-eee enp1s0 eee on tx-lpi on tx-timer 1546 advertise 0x0020 (1G)\n\t\t# ethtool --set-eee enp1s0 eee on tx-lpi on tx-timer 1546 advertise 0x8000 (2.5G)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonah-rasta%2Fr8125","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonah-rasta%2Fr8125","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonah-rasta%2Fr8125/lists"}