Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-09-2002, 12:52 PM   #1
LQ Newbie
Registered: Feb 2002
Posts: 5

Rep: Reputation: 0
Simple Question ? I think so !

Good Afternoon to all,..

I got this netowkr card thats giving me hell,. now I got the code for the card do I have to reconpile my kernel with this new code ?

Now can someone help me out,. I got the this code and I'm wondering if I got to reconpile?

How would I know if I have to what are the sings to look for ?

I think I can this thing done but I just need a little help .....

Please some one help me out,..
Old 02-09-2002, 12:53 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
not sure what you mean by code.. ?? do you mean driver for your network card ??
Old 02-09-2002, 01:02 PM   #3
LQ Newbie
Registered: Feb 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Source Code

YES !! The source code for the network card ...

This is part of the ream me file

1. Platforms supported

This driver has been tested on uniprocessor kernel versions:-


2. Adapters Supported

The following Madge Token-Ring adapters are supported:

* 51-05 Smart Mk4 PCI Adapter
* 53-05 Smart Mk4 PCI Adapter (low profile)
* 3140 2010 Rapidfire 3140V2 16/4 TR PCI Adapter
* 20-03 Smart 16/4 CardBus Mk2

3. Contents of the Distribution

./ README - This file.

Makefile - The 'Makefile'. - Default configuration options for the driver.

driver.h - Configuration file for the Universal
Toolkit (UDT).

madgetr.c - Main driver source.

madgetr.h - Main driver header.
ver.h - Some macro definitions to try to make the
driver source as compatible as possible over
different kernel versions.

madgecs.c - Source for the PCMCIA helper.
madgecs.h - Header for the PCMCIA helper.

madgecb.c - Source for the CardBus helper.
madgecb.h - Header for the CardBus helper.

./udt - UDT source and header files.

./utils trconfig.c - A command line utility to display
about Madge Token Ring Adapters currently
running. Demonstrates how to use the IOCTL
interface. Also used to turn on/off MAC
frame reception.

mver.c - A command line utility to extract Madge
product information strings from files.

llcping.c - A command line utility to send a TEST or XID
frame to another node and wait for the

4. Building the driver


You must have at least the kernel headers installed, and if you want to build the PCMCIA/CardBus helper modules, you must have unpacked the pcmcia-cs source tree somewhere. Under RedHat the pcmcia source files can normally be found under /usr/src/linux/pcmcia-cs-*. The location varies on other distributions.

RedHat release 7 and upwards have the pcmcia/CardBus files bundled along with the kernel. The release does not provide the k_compat.h file, which has been provided in this distributiona and will be using this file during complilation. If you would like to use any of the pcmcia-cs-* releases, then you will have to compile the release with the kernel. For instructions on compiling the release, please refer to the readme files with the release.

Step 1: Run make

The first time you run make on a clean distribution a configuration script will run. It asks for the location of a kernel source tree. This source tree must have been configured and make dep run. It is best if the source tree has been configured and a kernel made from it and that kernel is running when the Madge Token Ring driver is built.

The kernel configuration options can either be taken from the running kernel or from the kernel source tree. If the driver is to be used with the running kernel select that option.

If you are building a driver to be used on a kernel version that is different from the kernel version that is currently running you will not be allowed to take configuration options from the currently running kernel.

For the vast majority of cases it is fine to accept the default driver options.

Note: SuSE 6.0 comes with two versions of the GNU C compiler. The default version that is executed when gcc is run (egcs 2.91) is not suitable for

compiling kernel version 2.0.36 or kernel modules. Instead the other version (gcc must be used. The configuration script should detect SuSE 6.0 and set the C compiler to be "gcc -V". If the other compiler is inadvertently used to compile the mtok module the compilation will fail.

Step 2: Run make

After configuring various locations make must be run again to build the driver. The driver file is called mtok.o. The PCMCIA helper driver is called mtok_cs.o and the CardBus helper is called mtok_cb.o. These modules will be found in the root of the distribution directory.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
Hopefully a Simple Question Arcane Kidd Linux - Newbie 5 01-17-2003 05:27 PM
Really Simple Question -- Please help! Cia420 Linux - General 3 05-07-2002 07:42 AM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration