Skip to content

Commit f95afbf

Browse files
authored
9.016.01
1 parent 10f5948 commit f95afbf

19 files changed

+4574
-2463
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# r8125 is the Linux device driver released for Realtek 2.5 Gigabit Ethernet
55
# controllers with PCI-Express interface.
66
#
7-
# Copyright(c) 2024 Realtek Semiconductor Corp. All rights reserved.
7+
# Copyright(c) 2025 Realtek Semiconductor Corp. All rights reserved.
88
#
99
# This program is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by the Free

autorun.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ echo
1515
echo "Check old driver and unload it."
1616
check=`lsmod | grep r8169`
1717
if [ "$check" != "" ]; then
18-
echo "rmmod r8169"
19-
/sbin/rmmod r8169
18+
echo "rmmod r8169"
19+
/sbin/rmmod r8169
2020
fi
2121

2222
check=`lsmod | grep r8125`
2323
if [ "$check" != "" ]; then
24-
echo "rmmod r8125"
25-
/sbin/rmmod r8125
24+
echo "rmmod r8125"
25+
/sbin/rmmod r8125
2626
fi
2727

2828
echo "Build the module and install"
@@ -52,6 +52,21 @@ elif [ "$module" != "r8169" ]; then
5252
mv $TARGET_PATH/r8169.ko $TARGET_PATH/r8169.bak
5353
fi
5454
fi
55+
if test -e $TARGET_PATH/r8169.ko.zst ; then
56+
echo "Backup r8169.ko.zst"
57+
if test -e $TARGET_PATH/r8169.zst.bak ; then
58+
i=0
59+
while test -e $TARGET_PATH/r8169.zst.bak$i
60+
do
61+
i=$(($i+1))
62+
done
63+
echo "rename r8169.ko.zst to r8169.zst.bak$i"
64+
mv $TARGET_PATH/r8169.ko.zst $TARGET_PATH/r8169.zst.bak$i
65+
else
66+
echo "rename r8169.ko.zst to r8169.zst.bak"
67+
mv $TARGET_PATH/r8169.ko.zst $TARGET_PATH/r8169.zst.bak
68+
fi
69+
fi
5570
fi
5671

5772
echo "DEPMOD $(uname -r)"
@@ -84,4 +99,3 @@ fi
8499

85100
echo "Completed."
86101
exit 0
87-

src/Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# r8125 is the Linux device driver released for Realtek 2.5 Gigabit Ethernet
55
# controllers with PCI-Express interface.
66
#
7-
# Copyright(c) 2024 Realtek Semiconductor Corp. All rights reserved.
7+
# Copyright(c) 2025 Realtek Semiconductor Corp. All rights reserved.
88
#
99
# This program is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by the Free
@@ -33,7 +33,6 @@
3333
CONFIG_SOC_LAN = n
3434
ENABLE_REALWOW_SUPPORT = n
3535
ENABLE_DASH_SUPPORT = n
36-
ENABLE_DASH_PRINTER_SUPPORT = n
3736
CONFIG_DOWN_SPEED_100 = n
3837
CONFIG_ASPM = y
3938
ENABLE_S5WOL = y
@@ -52,6 +51,7 @@ DISABLE_MULTI_MSIX_VECTOR = n
5251
ENABLE_DOUBLE_VLAN = n
5352
ENABLE_PAGE_REUSE = n
5453
ENABLE_RX_PACKET_FRAGMENT = n
54+
ENABLE_GIGA_LITE = n
5555

5656
ifneq ($(KERNELRELEASE),)
5757
obj-m := r8125.o
@@ -67,10 +67,6 @@ ifneq ($(KERNELRELEASE),)
6767
r8125-objs += r8125_dash.o
6868
EXTRA_CFLAGS += -DENABLE_DASH_SUPPORT
6969
endif
70-
ifeq ($(ENABLE_DASH_PRINTER_SUPPORT), y)
71-
r8125-objs += r8125_dash.o
72-
EXTRA_CFLAGS += -DENABLE_DASH_SUPPORT -DENABLE_DASH_PRINTER_SUPPORT
73-
endif
7470
EXTRA_CFLAGS += -DCONFIG_R8125_NAPI
7571
EXTRA_CFLAGS += -DCONFIG_R8125_VLAN
7672
ifeq ($(CONFIG_DOWN_SPEED_100), y)
@@ -131,6 +127,12 @@ ifneq ($(KERNELRELEASE),)
131127
ifeq ($(ENABLE_RX_PACKET_FRAGMENT), y)
132128
EXTRA_CFLAGS += -DENABLE_RX_PACKET_FRAGMENT
133129
endif
130+
ifeq ($(ENABLE_GIGA_LITE), y)
131+
EXTRA_CFLAGS += -DENABLE_GIGA_LITE
132+
endif
133+
134+
# Backward compatibility
135+
ccflags-y += $(EXTRA_CFLAGS)
134136
else
135137
BASEDIR := /lib/modules/$(shell uname -r)
136138
KERNELDIR ?= $(BASEDIR)/build

src/Makefile_linux24x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# r8125 is the Linux device driver released for Realtek 2.5 Gigabit Ethernet
55
# controllers with PCI-Express interface.
66
#
7-
# Copyright(c) 2024 Realtek Semiconductor Corp. All rights reserved.
7+
# Copyright(c) 2025 Realtek Semiconductor Corp. All rights reserved.
88
#
99
# This program is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by the Free

0 commit comments

Comments
 (0)