[tulip] Conexant LANfinity is working in 2.2 and 2.4!

Donald Becker becker@scyld.com
Mon, 23 Jul 2001 15:21:07 -0400 (EDT)


On Mon, 23 Jul 2001, Kent Hunt wrote:

> 	To those that are not faint hearted and that cannot
> wait, I managed to have the Conexant LANfinity
> NIC in presario laptops working in both 2.2.19 and
> 2.4.7 kernels.
> 	For 2.2 just follow the instructions in the
> tulip (2.2) mailing list in July. For 2.4 I've got the
> following.
...
> OPTIONSCOMMON = -D__KERNEL__ -DMODULE -Wall
> -Wstrict-prototypes -O2 -I/usr/src/linux/include
> -fomit-frame-pointer -fno-strict-aliasing
> -Wno-trigraphs -fno-common -pipe
> -mpreferred-stack-boundary=2 -march=i686 -DMODVERSIONS
>  -include /usr/src/linux/include/linux/modversions.h

Ahhh, I suspect that  "-DMODVERSIONS" is the critical option.

I'll have to check out how to automatically add it to the 2.4 compile.
Under 2.2 and earlier I did 

#if defined(CONFIG_MODVERSIONS) && defined(MODULE) && ! defined(MODVERSIONS)
#define MODVERSIONS
#endif
#include <linux/version.h>
#include <linux/module.h>
#if LINUX_VERSION_CODE < 0x20300  &&  defined(MODVERSIONS)
#include <linux/modversions.h>
#endif

Does changing this to 
...
#if defined(MODVERSIONS)  ||  defined(CONFIG_MODVERSIONS)
...
allow dropping  -DMODVERSIONS

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993