LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-22-2002, 10:27 AM   #1
GeoffOs
LQ Newbie
 
Registered: Apr 2002
Location: UK
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
Question smc1255TX & Making the driver tulip.o


I am having some difficulty in trying to make the driver file. I seem to get error when I follow the instructions form the manufacturer.
Can any give me any assistence in making this file (tulip.o)


:smash:

Regards

Geoff
 
Old 04-23-2002, 04:51 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you do and which error you get?
 
Old 04-23-2002, 06:56 AM   #3
GeoffOs
LQ Newbie
 
Registered: Apr 2002
Location: UK
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Red face What error

The command I am entering is
Code:
gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c
and I get the following error:
Code:

Oops cannot currently start the system it hangs on going into Xwindows.

But the error was along the lines of cannot call Kernel Modules from this Module.

If you want the C file being called let me know.
 
Old 04-23-2002, 07:16 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have kernel headers installed?
 
Old 04-23-2002, 09:16 AM   #5
GeoffOs
LQ Newbie
 
Registered: Apr 2002
Location: UK
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Hmmmmmm!

Probably not, as I don't know what they are or where I would get them from.
There was no mention of them from the manufacturer web instructions.

Help, please
 
Old 04-23-2002, 09:57 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
RedHat...
It will be package kernel-headers, I think. Install it and try again.
 
Old 04-23-2002, 11:51 PM   #7
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
You shouldn't need to compile the tulip driver as an external module at all, as it's had native support in the kernel forever.

What version of Redhat are you running, and what is the make/model of your card? For versions of Redhat prior to 7., use linuxconf to set up your NIC. For 7.x, use the Network Administration Tool; just type "neat" (no qoutes) at a prompt.
 
Old 04-24-2002, 03:10 AM   #8
GeoffOs
LQ Newbie
 
Registered: Apr 2002
Location: UK
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Angry TULIP

I am currently running Red Hat 7.0 (though I have attempted to update the kernel to 7.2 from Red Hat - so far unsuccessful)
I have tried to use the tulip driver that the distribution cam with but it does not seem to respond. When I attempt to force the driver to load with
Code:
insmod tulip - f
It comes back with the following error
Code:
Using /lib/modules/2.2.16-22/net/tulip.o
/lib/modules/2.2.16-22/net/tulip.o: ini_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
I have run the diag program in does on the smae machine to deteremine the correct parameters for the card and it appears to be running on IO=6200 and IRQ=11

Is there a way of passing the parameters with the insmod command?
 
Old 04-24-2002, 04:51 AM   #9
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
GeoffOs,

There are a few things that could be going on, but none of them need (or will be fixed by) compiling a new tulip driver.

1) As I asked before- please give us the exact make and model of your NIC card; it makes a difference, especially if you have an old ISA card or a card with a non-standard chipset.

2)insmod isn't as "intelligent" as the "modprobe" command in the fact that insmod doesn't know if one module needs to have another module loaded in order for the first module to function (module dependency). Type the following two commands at a prompt:
depmod -ae
modprobe tulip

If you get no errors, type lsmod and see if the tulip module appears in the resulting list of loaded drivers.


My guess is that the above won't work, because the "device or resource busy" error usually means that you do indeed have a resource (IRQ or I/O address) conflict. I've reponded to a few very similar problems in the past; here's the link to the results I got from the forum search when I went to dig them up. Turning off PNP support in the BIOS is something you should do before trying any of the other remedies.

As to your question of passing parameters, the answer is "yes...sort of"- the success you'll have can depend on the type of card. Options can be passed by adding entries to /etc/modules.conf, although in the case of NICs and their IRQ/IO, I'm pretty sure this only works for ISA cards.

Last edited by DMR; 04-24-2002 at 04:54 AM.
 
Old 04-24-2002, 05:47 AM   #10
GeoffOs
LQ Newbie
 
Registered: Apr 2002
Location: UK
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Angry Sorry

The make and model of the card is
SMC1255TX
This is a 10/100Mb PCI Card
 
Old 05-23-2002, 09:13 AM   #11
markvenables
LQ Newbie
 
Registered: May 2002
Location: Borehamwood, UK
Distribution: Mandrake 8.2
Posts: 5

Rep: Reputation: 0
Hi there. I too am having virtually exactly the same difficulties with the SMC1255TX Card. My chip version is apparently a Accton EN1216 (rev11) when I do an lspci. My kernel is 2.4.18 and I can find a tulip.o.gz stashed away somewhere.

My understanding of the situation is that for some reason the driver and the bios aren't talking to each other. Surely just switching the PnP BIOS off and rebooting can't fix it... Surely...
 
Old 05-23-2002, 12:44 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Could you write what happens when you do
insmod tulip
?
 
Old 05-25-2002, 02:23 AM   #13
markvenables
LQ Newbie
 
Registered: May 2002
Location: Borehamwood, UK
Distribution: Mandrake 8.2
Posts: 5

Rep: Reputation: 0
Bugger. I switched off the PnP BIOS and insmod tulip followed by lspci and everything seemed to be absolutely fine. (lspci called the card by its Box Brand name and everything, the ISDN adapters in Harddrake detected the presence of an ethernet card and so on...)

I think what was central to the issue was that at first, I had the card inserted into the final PCI slot, next to the ISA slots. Neither Windows nor Linux liked that one little bit.
 
Old 07-11-2002, 04:57 PM   #14
metaxa
LQ Newbie
 
Registered: Jul 2002
Location: Montreal, Canada
Distribution: RedHat & Debian
Posts: 6

Rep: Reputation: 0
I got exactly the same problem as above.

"Device or resource busy" when <modprobe tulip>

I also have a SMC1255tx card... I turned of the PnP in BIOS but I get the same message. I have inserted the card in the middle of the three pci slots on my MSI mainboard.
 
Old 08-01-2002, 04:57 AM   #15
metaxa
LQ Newbie
 
Registered: Jul 2002
Location: Montreal, Canada
Distribution: RedHat & Debian
Posts: 6

Rep: Reputation: 0
I think there might be a kernel issue here... I got it to work under SuSe 7.2 with kernel 2.4.4 but not under debian potato with kernel 2.2.something, I therefore expect it to work with the final woody version kernel 2.4.4 but I haven't tried it yet...
 
  


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
smc1255tx driver compilition error Linas27 Linux - Hardware 1 11-24-2004 02:49 PM
Tulip driver in 2.6 kernels allroy Linux - Software 2 03-17-2004 10:04 PM
tulip driver ok on Slackware 7.1 but not 9.1 geoffd3 Linux - Networking 4 12-25-2003 10:54 AM
SMC1255TX-PF ethernet driver won't install kiltie Linux - Hardware 0 10-19-2003 01:38 PM
Getting the Tulip driver working again jim64 Linux - Hardware 15 07-14-2003 04:46 AM

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

All times are GMT -5. The time now is 12:21 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