LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2005, 12:30 PM   #1
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Rep: Reputation: 30
Compiling source code for a network card module


Hullo,

I've got a source file and a header file that is supposed to be the linux drivers for my new network card. Thats great....what do I do with them?

I looked through the source and found at the end a message on compiling parameters, but it doesn't work in the slightest. I've been googling for a few hours now but haven't found anything, can somebody at least point me towards a source of info? I'm gonna keep looking, but help would be appreciated.

Okay...I've created the slackware 10.1 bootdisk and the 2 rootdisks.
I then catted the "network.dsk" image to a floppy and I can run the network setup, my only problem is... how do I actually tell the system to use that module? I can prob for cards using the module, but how do I tell it to use it?

I'm kinda completely lost...*groan*

Last edited by WindowsBurner; 02-14-2005 at 02:39 PM.
 
Old 02-14-2005, 03:35 PM   #2
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 31
Modprobe your_module ?

edit: sorry, not really helpful.

What is the name of the module you are using? And the network card?

Last edited by chup; 02-14-2005 at 03:36 PM.
 
Old 02-14-2005, 03:43 PM   #3
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
I'm back to trying to compile the module on my slackware 10.1 comp.
This is computer is not using the card. It is in my laptop which doesn't have a cd-rom drive, which is why I'm trying to get the card to work, so I can connect to my NFS server and install slack.

I went to D-Links site to see if they could help, and they gave me a header file and source file and a gcc command to compile it, but I don't think pcmcia is configured on this computer(why would it be though..it doesn't have a cardbus or anything). And I get a huge friggin error message, I'd post the message but its to long for me to type and I can't seem to copy it over.

I'm lost, the only thing I can think of at the mo is find out if pcmcia is installed and where. Only prob is...how?

edit : Just saw the post from chup.
I can't modprobe the module because all I've got are the two rootdisks loaded in memory, slack isn't actually installed on the comp, so modprobe tells me it can't find the modules. I was trying to use the 8139too module, because I've heard/read you don't need the drivers that come with the card, you can use it instead. Which is grand and all, but when I run the network util from my network.dsk, it can't find any card using that module. I don't know how to tell to use that module anyway. *shrugs*

The card is a D-Link DFE-690TXD



Last edited by WindowsBurner; 02-16-2005 at 08:14 AM.
 
Old 02-16-2005, 08:13 AM   #4
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Ok, everything I've read says that you need to use the 8139too driver.
Only thing is when I run the network utility from the network supplemental disk, it can't find any cards that use that module.

And when I run the pcmcia utility from the pcmcia supplemental disk, it starts the "pcmcia_core" module and the "i82365" module as well as "ds"(checked by running lsmod). The "pcmcia_core" module is being used "0" and so is "ds", I'm guessing this means their not being used,except that "pcmcia_core" is being used BY "[ds i82365]".The "i82365" module us being used "2", what does that mean? Who is using it?

I've always known linux is hard, I've had my share of troubles, but man this is ridiculous. I'm still working on it, but help would be extremely appreciated.
I've got 6 laptops to install slack to, all using the exact same card.

Thanks all,

ME

Last edited by WindowsBurner; 02-16-2005 at 09:22 AM.
 
Old 02-16-2005, 12:04 PM   #5
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Okay, I've tried using insmod to load the module, and I get these error messages :
Code:
8139too.o.gz : unresolved symbol mii_ethtool_sset
8139too.o.gz: unresolved symbol mii_link_ok
8139too.o.gz : unresolved symbol crc32_le
8139too.o.gz : unresolved symbol mii_ethtool_gset
8139too.o.gz : unresolved symbol mii_check_media
8139too.o.gz: unresolved symbol generic_mii_ioctl
8139too.o.gz: unresolved symbol mii_nway_restart
8139too.o.gz: unresolved symbol bitreverse
Whew! Had to type that all in, hope there aren't too many error messages...

Anyways, I haven't a clue as to what this means.

ME
 
Old 02-16-2005, 12:28 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
try modprobing the module in. unresolved symbols means the module is trying to link to functions from other modules but cannot find them ( they need to be loaded also). insmod does not load the modules that are needed by the module that you are trying to load but modprobe does.

from looking at it, looks like you need the mii module loaded first before you try to load your module ( This is why they get "stacked" in the output from lsmod, one module depending on another)

EDIT: all you need to do for 8139too is :

modprobe 8139too and all will be taken care of for you

Last edited by __J; 02-16-2005 at 12:29 PM.
 
Old 02-16-2005, 01:29 PM   #7
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Can't modprobe it because modprobe says it can't find the module.
Even though I checked the list with "modprobe -l" and it is in the list, modprobe can't find it.

I insmoded the mii module in, and that fixed some errors but I still have :
Code:
8139too.o.gz : unresolved symbol crc32_le
8139too.o.gz: unresolved symbol bitreverse
I'm gonna look into it and see if I can figure out which module is missing.
Thanks for your input

ME
 
Old 02-16-2005, 01:31 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
insmod crc32

also run depmod -a and see if that helps with your modprobe issues
 
Old 02-16-2005, 01:37 PM   #9
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
It was the crc32 module that was needed for those errors, but now I get new ones :
Code:
path/to/module/8139too.o.gz : init_module: No such device
path/to/moudle.8139too.o.gz : Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
 You may find more information in syslog or the output from dmesg
Now if you'll recall, I'm booting off of a floppy. I don't have syslog and dmesg just parrots back stuff from the last 20 or 30 commands I've run, which doesn't help at all.

Well, I'm gonna take a small break and then get cracking on it again.

Thanks all,


edit : depmod is not on the floppy __J , I can try to copy it over though. Thanks
ME
 
Old 02-16-2005, 01:44 PM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
does this use the realtek 8139 chipset? drivers check the hardware as they are loading and if it doesn't find the hardware it's looking for it will refuse to load.
 
Old 02-16-2005, 01:58 PM   #11
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Forgive my ignorance, but how do I check the chipset? I checked the manual but it don't say sh**.
 
Old 02-16-2005, 03:28 PM   #12
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Well, normally they are on the pci bus and you can view them in the output of "lspci" but in your case with the laptop card I dunno , you'll probably have to get the specifics off of the vendor's site.

you did say you got a driver from d-link's site didn't you?
 
Old 02-16-2005, 04:22 PM   #13
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Yeah I checked the manual and the card and anything else I can think of..but no luck.
Yes I got a driver from D-Link, but I have to compile it on my desktop machine which doesn't have any cardbus slots or pcmcia anything for that matter. And I get a friggin 2 foot long error message. Plus I've read that you CAN'T use that driver because the linux kernel doesn't support the card, and I went and checked, and the kernel doesn't support the card.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling hplip source code. hscast Linux - Software 4 06-16-2006 07:36 PM
Compiling Kernel and other source code davegermiquet Conectiva 2 01-26-2005 06:01 PM
Compile a source code for FastEthernet Network Card-Please assist badger311 Linux - Networking 4 07-17-2004 02:17 PM
Problem in compiling source code JIV Linux - Software 1 02-14-2004 03:11 AM
Problems with compiling source code cav Linux - General 4 02-06-2003 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:07 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
Open Source Consulting | Domain Registration