From: Chad Netzer <cnetzer@mail.arc.nasa.gov>
To: "immortal1015" <immortal1015@hotpop.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: How to replace the network cards (kernel newbies)
Date: Thu, 3 Oct 2002 22:39:59 -0700 [thread overview]
Message-ID: <200210040540.WAA09498@mail.arc.nasa.gov> (raw)
In-Reply-To: <20021004045437.ABCA51B8535@smtp-2.hotpop.com>
On Thursday 03 October 2002 21:56, immortal1015 wrote:
>
> Thanks. But how can I do it if I have move pcnet32.c to my own place.
Well, you can make a copy of the existing kernel tree, and simply
modify things in there, then "make modules_install". Or you can make a
link from the kernel tree pcnet32.c, to your own.
If you don't have space or permissions for that, you are pretty much
SOL, I think. :-)
Ok, I kid you. Put the driver somewhere, and type something like:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
-DKBUILD_BASENAME=pcnet32 -c -o pcnet32.o pcnet32.c
Or whatever the actual command is that is output for the module when
you build the unmodified kernel.
Then copy it to /lib/modules/2.4.19/kernel/drivers/net/, or wherever,
and "insmod" away.
--
Chad Netzer
cnetzer@mail.arc.nasa.gov
prev parent reply other threads:[~2002-10-04 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-04 4:56 Re: How to replace the network cards immortal1015
2002-10-04 5:39 ` Chad Netzer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200210040540.WAA09498@mail.arc.nasa.gov \
--to=cnetzer@mail.arc.nasa.gov \
--cc=immortal1015@hotpop.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®