LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2004, 06:07 AM   #1
badger311
LQ Newbie
 
Registered: Nov 2002
Distribution: Fedora Core 1
Posts: 8

Rep: Reputation: 0
Compile a source code for FastEthernet Network Card-Please assist


I am running Red Hat 7.1 on a Dell CPi 400GT. This old laptop does not have a Ethernet Nic card built in. I am trying to configure a D-Link DFE-690TXD to be used with this computer. I researched online at Dlink.com and found that linux does support this card, however I need to complile a source code. This is the instructions from the manufacturer.


How do I install my DFE-690TXD in Linux?

Step 1 Compile the source code (for Kernel 2.2.xx only):

Copy the source code dfe690.c (ver 1.11a above) to a directory and execute gcc -DCARDBUS -DMODULE -D_KERNEL_ -Wall -Wstrict-prototypes -O6 -c dfe690.c -o dfe690_cb.o -I/usr/src/linux/pcmcia-cs-3.0.9/include/pcmcia/

Download DFE690.c here

The directory pcmcia-cs-3.0.9 stands for the card service version you use. Please change it to the version on your system in order to include proper .h file. The final file is dfe690_cb.o.

Download .h file here

Step 2 Copy driver :

Copy the file dfe690_cb.o to /lib/modules/2.2.14-5.0/pcmcia

The directory 2.2.14-5.0 stands for the Linux kernel version you use.

Step 3 Edit config:

Add 5 lines to the file /etc/pcmcia/config

#
# Device driver definitions
#
device "dfe690_cb" (==>Add 1/5)
class "network" module "cb_enabler", "dfe690_cb" (==>Add 2/5)
:
:

#
# CardBus Cards
#

card "D-Link DFE-690TXD CardBus PC Card" (==>Add 3/5)
manfid 0x0149, 0x0000 (==>Add 4/5)
bind "dfe690_cb" (==>Add 5/5)


The values 0x0149, 0x0000 are JEDEC ID and can be read by typing "cardctl ident" on console with one card on socket.

Step 4 Edit linuxconf

Type linuxconf and choose Config>Networking>Client tasks>Basic host information.

Select an adapter, enable it, and type "dfe690_cb" on "Kernel module" and "eth0" (or eth1, eth2) on "Net device". Click on Accept button and Act/change button.

Step 5 Restart the computer.

Step 6 More information about kernel compile: metalab.unc.edu


I have two questions:

When getting a driver for a component in linux, do you simply copy and paste the code from the FTP site to a certain directory?

How would I compile this source code to get this network card to work.

I can answer any questions needed, but I think that this should suffice for now.

Thanks,
Badger-
 
Old 07-16-2004, 08:45 AM   #2
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
there is a standard module for fastethernet "e100" that will work.

modprobe e100.

now check through ifconfig -a.

that driver is for 2.2. kernel.
 
Old 07-16-2004, 09:27 AM   #3
badger311
LQ Newbie
 
Registered: Nov 2002
Distribution: Fedora Core 1
Posts: 8

Original Poster
Rep: Reputation: 0
Newpenguin, thanks for the reply

However, it doesn't apper that it is going to work for me.
I ran "modprobe e100" and this is what I got.

[root@localhost /root]# modprobe e100
/lib/modules/2.4.2-2/kernal/drivers/net/e100.o: init_module No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.2-2/kernal/drivers/net/e100.o: insmod /lib modules/2.4.2-2/kernal/drivers/net/e100.o failed
/lib/modules/2.4.2-2/kernal/drivers/net/e100.o:insmod e100 failed
[root@localhost /root]#

Does this mean that the e100 driver that you are referring to is missing or do I need to change something?

Also thanks for the knowledge about that driver being for version 2.2.XX.

Can you assist me in solving this.

Thank you very much,
Badger
 
Old 07-17-2004, 08:40 AM   #4
badger311
LQ Newbie
 
Registered: Nov 2002
Distribution: Fedora Core 1
Posts: 8

Original Poster
Rep: Reputation: 0
NewPenguin

I was able to get a copy of Fedora Core 1 from a friend of mine and it picked up my NIC card no problem, along with another sound problem I was having. The problem is now resloved. Thank you for the help.

Badger
 
Old 07-17-2004, 02:17 PM   #5
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
sorry that was a wrong reply. that e100 module works only with pci ethernet.
sorry i am very bad in pcmcia but as your problem is resolved.
u must check which which module worked.
do a

lsmod

and see which modules are loaded and r in use.

cheers
 
  


Reply



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
Why can't FreeBSD compile anything from source code? mortal *BSD 5 03-21-2005 07:49 PM
how i compile a source code? nazib Linux - General 5 02-27-2005 09:13 AM
Compiling source code for a network card module WindowsBurner Linux - General 12 02-16-2005 04:22 PM
compile source code ethernet card [lindows] lexy Linux - Newbie 5 10-11-2002 03:04 PM
How to compile source code... Grim Reaper Linux - Newbie 3 04-26-2002 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:39 PM.

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
Open Source Consulting | Domain Registration