LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-09-2002, 01:04 PM   #1
juniorone
LQ Newbie
 
Registered: Feb 2002
Posts: 5

Rep: Reputation: 0
Source Code


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.0.36
2.2.5-15
2.2.10
2.2.12-20
2.4.2-2

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
Driver
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
information
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
response.


4. Building the driver
----------------------

Prerequisites

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.

Note:
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 2.7.2.3) must be used. The configuration script should detect SuSE 6.0 and set the C compiler to be "gcc -V 2.7.2.3". 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.
 
Old 02-09-2002, 01:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
http://www.linuxquestions.org/questi...threadid=13900

please stay on the same thread.
 
  


Reply


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
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 01:48 PM
where is source code? heraklez Mandriva 5 07-31-2005 06:47 PM
Source code hey_joe Linux - Newbie 1 03-14-2004 02:06 PM
Source Code help palbox2003 Linux - Newbie 1 02-23-2004 05:10 AM
Source Code dvong3 Linux - Newbie 3 07-13-2003 01:20 PM


All times are GMT -5. The time now is 06:50 AM.

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