Download raw body.
[PATCH] rge(4): Add support for RTL8126A revision B (0x64a00000)
Hi,
This patch adds support for the Realtek RTL8126A revision B chipset
(chip version 0x64a00000) to the rge(4) driver. This revision uses
the same MAC type (MAC_R26) as the already-supported revision A
(0x64900000).
Hardware tested:
- Odroid H4+ with 4x RTL8126A revision B NICs
- OpenBSD -current
- All four NICs properly detected and functional
Without this patch, the NICs appear as "unknown version 0x64a00000"
and are not initialized.
dmesg snippet with patch applied:
rge0 at pci2 dev 0 function 0 "Realtek RTL8126" rev 0x01
rge1 at pci3 dev 0 function 0 "Realtek RTL8126" rev 0x01
rge2 at pci4 dev 0 function 0 "Realtek RTL8126" rev 0x01
rge3 at pci5 dev 0 function 0 "Realtek RTL8126" rev 0x01
ok?
Index: sys/dev/pci/if_rge.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_rge.c,v
diff -u -p -r1.38 if_rge.c
--- if_rge.c 19 Sep 2025 00:41:14 -0000 1.38
+++ if_rge.c 21 Oct 2025 02:43:11 -0000
@@ -257,6 +257,9 @@ rge_attach(struct device *parent, struct
case 0x64900000:
sc->rge_type = MAC_R26;
break;
+ case 0x64a00000:
+ sc->rge_type = MAC_R26;
+ break;
case 0x68800000:
sc->rge_type = MAC_R25D;
printf(": RTL8125D");
Best,
Carl Henriksson
[PATCH] rge(4): Add support for RTL8126A revision B (0x64a00000)