Patch to Linux Tulip driver for Intel AnyPoint
Last updated Monday, 20 March 2001.
That, as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously.
-- Benjamin Franklin
I have hacked up a couple of patches that allow the Linux Tulip driver to work with the Intel AnyPoint 1Mbps HomePNA cards.
To write these patches, I used Intel's hardware reference for the 21145 chip, available from http://www.intel.com/design/network/manuals/
If you are running a 2.2 kernel, get Scyld's Tulip driver and use this patch. The patch was generated from version 0.92t of Scyld's tulip.c. I suppose it should work with any Intel 21145 HomePNA card, but I only have the one.
This patch is not well integrated with the rest of the code -- in fact, it is pretty well isolated from the rest of the code. But, since I don't really understand the rest of the code very well, I figure it is probably safer like it is.
In order to use the modified driver with an Intel AnyPoint HomePNA card, specify "options=18" as a module parameter in the /etc/conf.modules file or when using insmod. I have the following two lines in my /etc/conf.modules file:alias eth0 tulip
options eth0 options=18
If you are running a 2.4 kernel, apply this patch in the drivers/net/tulip directory. The patch was generated from version 2.4.2 of the Linux kernel. It modifies the media.c file.
NOTE: This one is ugly. It forces any 21145-based card into HomePNA-only mode -- regardless of configuration or supported media.
As with above, I recommend you specify "options=18" as a module parameter in the /etc/modules.conf file or when using insmod. I don't think it matters, but I have not tested otherwise.