Review your favorite Linux distribution.
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 10-20-2002, 03:13 AM   #1
LQ Newbie
Registered: Oct 2002
Location: UK
Distribution: | Mandrake 9.0 | | Red Hat 8.0 |
Posts: 16

Rep: Reputation: 0
How do I compile a driver

lo all.

I posted last week on how to get my card ethernet card
working on linux. I was useing lindows at the time.

Ihave messed about with linux for a short time but
always go back on windows cause I cant get any net

All I have to do is make this work.



1. copy the source code fealnx.c to Linux,

2. compile the source code, the instruction for compiling the driver is
as follows:

#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c fealnx.c

3. insert the driver as module,

#insmod fealnx.o

4. bind your card to an IP address

#ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

5. add your card to IP routing table,

#route add -net ${NETWORK} netmask ${NETMADK} eth0

6. now, you should be able to ping local network.
Also how do I get this info ?


#ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

#route add -net ${NETWORK} netmask ${NETMADK} eth0
Whick linux o/s would be the best I have installed
redhat and lindows in the past.

What about mandrake and the others ?

I see it as if I get on the net with linux then I can
learn from this point. I dont have to go back to windows
as all I use my comp @home for is icq and surfing.

Old 10-20-2002, 04:02 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
well you shouoldn't need to compile anything, your card driver is fairly common, and is *probably* already precompiled on your system, so you should only need to configure it with netconfig or something similar.
Old 10-20-2002, 07:51 AM   #3
LQ Newbie
Registered: Oct 2002
Location: UK
Distribution: | Mandrake 9.0 | | Red Hat 8.0 |
Posts: 16

Original Poster
Rep: Reputation: 0

I installed redhat 7.2 to attempt to get this card working on linux.

I got this info about the card.


01:02.0 ethernet controller: myson technology unknow device 0803

subsystem: surecom technologys: unknow device 1320
flags: bus master medium devsel, latency 64 irq5

io ports adbc00 [sixe=256]
memory adefdfcc00 32bit , non-prefetchable [size=1k]
expansion rom adefde0000 [disabled] [size=64k]
capabilites: [88] power management version2
I also took the card out of the comp and got the model number : "ep-320x-s1"

I download a new driver set and this in the linux install dir contents.

dir : mtd80x.v021
file: kern_compat.h
file: Makefile
file: mtd80x.c
file: pci-scan.c
file: pci-scan.h

This is the new info in the read me.


******* This document contains instructions on Linux driver installation for *******
******* SURECOM EP-320X-S/S-1 100/10M Ethernet PCI Adapter *******

The Linux driver for Myson MDT8xx compatible MAC chipset on
this adapter has been embedded into Linux systems since kernel
version 2.4.5, and this makes this adapter automatically detected
and installed with the driver supported by Linux system.


1. If your Linux kernel is still old version 2.2.x, please use
and refer the driver supported for kernel version 2.2.x in
\Linux\2.2.x directory on the driver diskette.

2. If your Linux kernel is version 2.4.x previous than version
2.4.5, please get the latest kernel file from the web site of The
Linux Kernel Archives ( Then, install and
re-compile the downloaded latest kernel file into your current
Linux system.

3. If your Linux kernel is or has been patched to version
above 2.4.5 but you have not enabled or configured the MTD8xx
compatible driver as dynamic loadable or embedded system module, then you could follow the step 4 to enable the driver
and re-compile the kernel.

If you could use the console command "#locate fealnx.o" to
locate the module driver file or find the driver module file
fealnx.o in kernel source /usr/src/linux-2.4.x/drivers/net in
your Linux system, then you could load module into system by
console command "insmod fealnx.o" and then "ifconfig eth0 up" to bring this adapter to work.

You could use console command "linuxconf" to configure
this adapter card too.

4. If your Linux kernel is any new version above than 2.4.5
(included) and it is a new installation, you can configure the
kernel by following console commands to enable the driver for
SURECOM EP-320X-S/S-1 100/10M Ethernet PCI Adapter.


Enable the option of "Myson MTD-8XX PCI Ethernet support"
in "Ethernet (10 or 100 M bit)" of "Network device support" as a
loadable module or system default module.

#make dep

#make clean

#make bzImage

#cp /usr/src/linux-2.4.X/arch/i386/boot/bzImage /boot

Then, edit /etc/lilo.conf, run "/sbin/lilo", and then reboot
your Linux system. After new kernel has been rebooted,
it will automatically load the driver for this adapter.
I tryed to set the ipconfig acid_kewpie card is not
installed m8.

I am a newbie so some tips on setting all this up please.

Last edited by lexy; 10-20-2002 at 07:53 AM.
Old 12-16-2002, 04:35 PM   #4
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
according to, you need the tulip driver, for the Surecom EP-320X-S1.


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 compile a new driver GregLille Linux - Networking 3 01-05-2005 05:42 AM
How to compile a driver Kuki Linux - Newbie 2 03-04-2004 04:21 PM
driver compile rcarlino Mandriva 0 08-25-2003 07:22 AM
How to compile a driver with the kernel? Kermeat Linux - General 5 02-11-2003 04:04 AM
How to compile a network driver. vsuresh25 Linux - General 1 08-31-2001 09:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 AM.

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