LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Compile a source code for FastEthernet Network Card-Please assist (https://www.linuxquestions.org/questions/linux-networking-3/compile-a-source-code-for-fastethernet-network-card-please-assist-205768/)

badger311 07-16-2004 06:07 AM

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-

newpenguin 07-16-2004 08:45 AM

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.

badger311 07-16-2004 09:27 AM

Newpenguin, thanks for the reply :D

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 :confused:

badger311 07-17-2004 08:40 AM

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

newpenguin 07-17-2004 02:17 PM

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


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