build_driver

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Linksys driver compile
From: "mgalgoci@redhat.com" <mgalgoci@redhat.com>
Date: Wed, 8 Dec 1999 17:20:51 +0000 (UTC)

On Wed, 8 Dec 1999, Bob Hartung wrote:

> Hi all,
>   Putting a new system together with RH 6.1.  All okay now
> except the ethernet driver.  The card is a  Linksys 100TX
> wake on lan card.  I have the proper tulip.c driver for this
> card but cannot get it to compile the module.
>   I am enough of a newbie, certainly ignorant of "C", so all
> I can do is copy the gcc line provided from linksys.  
>   Has anyone out there successfully compiled this driver
> module?  If so, are there replacements in the gcc command
> that need to be modified due the difference in location of
> files in different distros?
>   All help appreciated!
> 

The compile command line for this module is at the end of the 
tulip.c file.  You'll need to have a kernel source tree installed, 
the tools required to build the kernel, and you will have to 
prepare the kernel source tree with these commands:

cd /usr/src/linux
make mrproper
make oldconfig
make dep

Then, you can use the command line compile command for the module
to compile it without compiling the whole kernel.

Then, put the tulip.o file in /lib/modules/`uname -r`/net/

and then run depmod -a

The module should then be installed and ready to go.

--Matt


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu