Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This is part of the readme file for the source code ( Driver ) I have for my network card
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 ***** THIS THE CARD I HAVE ******
* 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'.
config.in - Default configuration options for the driver.
driver.h - Configuration file for the Universal
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
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 184.108.40.206) must be used. The configuration script should detect SuSE 6.0 and set the C compiler to be "gcc -V 220.127.116.11". 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.