Linksys EG1032 rev. 3 patch

Benjamin Lutz benlutz at datacomm.ch
Sat Oct 1 21:20:51 PDT 2005


Hello,

I picked up a Linksys EG1032 yesterday, and was surprised to see that it
didn't work on FreeBSD 6.0-BETA5/i386. After some investigation I found
out that apparently Linksys has silently changed the chip on the card.

The EG1032 is a standard 32bit PCI gigabit ethernet card. Two drivers
already support a card by that name, according to the manpages and
hardware notes:

  nge(4), which works with National Semiconductor DP83820 / DP83821
  chips.

  sk(4), which works with SysKonnect SK-984x and SK-982x chips.

Now, this EG1032 I got here, marked as "rev. 3", comes with a Realtek
RTL8169S chip. Unfortunately, it seems that the device ID was not
changed, it is still 0x1032, which made the sk(4) driver try and fail to
attach to the card.

I got the card working with the two patches below.

Cheers
Benjamin


--- sys/dev/re/if_re.c.orig     Sun Oct  2 05:31:06 2005
+++ sys/dev/re/if_re.c  Sun Oct  2 05:34:02 2005
@@ -173,6 +173,8 @@
 		"RealTek 8110S Single-chip Gigabit Ethernet" },
 	{ COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, RL_HWREV_8169S,
 		"Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" },
+	{ LINKSYS_VENDORID, LINKSYS_DEVICEID_EG1032, RL_HWREV_8169S,
+		"Linksys EG1032 (RTL8169S) Gigabit Ethernet" },
 	{ 0, 0, 0, NULL }
 };


--- sys/pci/if_rlreg.h.orig     Sun Oct  2 05:35:58 2005
+++ sys/pci/if_rlreg.h  Sun Oct  2 05:38:54 2005
@@ -826,6 +826,16 @@
 #define COREGA_DEVICEID_CGLAPCIGT		0xc107

 /*
+ * Linksys vendor ID
+ */
+#define LINKSYS_VENDORID			0x1737
+
+/*
+ * Linksys EG1032 device ID
+ */
+#define LINKSYS_DEVICEID_EG1032			0x1032
+
+/*
  * Peppercon vendor ID
  */
 #define PEPPERCON_VENDORID			0x1743


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20051002/11a06262/signature.bin


More information about the freebsd-current mailing list