LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-17-2005, 06:54 AM   #1
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
tulip drivers with a 2.6* kernel


Sorry if this should be in the newtwork forum but has anyone had any luck with installling the tulip drivers in conjunction with a 2.6.10 kernel. or any 2.6.* for that matter.

I can't get them to compile.

I think that maybe they were only developed for up to the 2.4* kernels.

Its for a linksys nc100 card.

It worked ok under with previous kernel but Its the last bit of hardware for me to to get working now with my new one.

followed instructs for the build as per thw www.scyld.com site but no joy.
 
Old 09-17-2005, 09:44 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
I used the kernel module for the tulip card in my old computer, and it compiled fine with 2.6.11.3 although it doesn't want to connect to the VoIP gateway/router (it works with a direct connection to the main computer with a crossover cable).

What compile errors are you getting?
 
Old 09-17-2005, 10:25 AM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
if i just do
Code:
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
i get no errors but , insmod returns

insmod: error inserting 'tulip.o': -1 Invalid module format
i also did

gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS` -I /usr/src/linux/include -include /usr/src/linux-2.6.10/include/config/modversions.h


the output was quite verbose but it had

alot of compile errors, i.e undeclared variables etc..

i.e

Code:
tulip.c:3511: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
was yours a kernel that came with a distribution?
 
Old 09-17-2005, 12:43 PM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
No, I downloaded the source from kernel.org. It's an old DECchip 21041 using module de2104x so they may be quite different.

MOD_DEC_USE_COUNT seems to be deprecated, so you're probably right that this is an old driver and can't compile for 2.6.
 
Old 09-17-2005, 01:03 PM   #5
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
..hmm.


ah well...

thnks for your help.
 
Old 09-17-2005, 06:11 PM   #6
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
Smile

recompiled the kernel.

Although the tulip tree made no reference to my particular device I selected all of the modules in that particular part anyway.

Not pretty but it worked.

and now my linksys nc100 works fine.
 
Old 09-18-2005, 01:21 AM   #7
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
lsmod should tell you which driver it's actually using (likely tulip if that's what it was before), so the next time you compile a kernel you can leave out the others
 
Old 09-18-2005, 06:22 AM   #8
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
good point.

I'm not sure from the output what it is using ????

one of the two auth_pci entrys ?
I
ah,maybe its not showing up because I didn't build them as modules ,which was silly in retrospect.

I might re -compile anyway coz my system seems slower with a 2.6x.Maybe its the high mem support.

Code:
snd_usb_audio          78784  0
snd_usb_lib            17152  1 snd_usb_audio
snd_hwdep              11168  1 snd_usb_audio
wlan_wep                7936  1
ath_pci                81692  0
ath_rate_sample        17800  1 ath_pci
wlan                  147868  4 wlan_wep,ath_pci,ath_rate_sample
ath_hal               149840  3 ath_pci,ath_rate_sample
snd_via82xx            29216  3
snd_ac97_codec         86012  1 snd_via82xx
snd_pcm                95620  4 snd_usb_audio,snd_via82xx,snd_ac97_codec
snd_timer              27524  1 snd_pcm
snd_page_alloc         11140  2 snd_via82xx,snd_pcm
snd_mpu401_uart         9344  1 snd_via82xx
snd_rawmidi            27808  2 snd_usb_lib,snd_mpu401_uart
snd_seq_device         10124  1 snd_rawmidi
snd                    61540  15 snd_usb_audio,snd_usb_lib,snd_hwdep,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
nvidia               3714696  0
 
Old 09-18-2005, 08:49 AM   #9
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Coincidentally I just installed an unknown card which lspci said was a linksys nc100. I didn't understand all the tulip options in the 2.6.12.3 tulip menuconfig either, but checked them all as modules. But then just 'modprobe tulip' worked fine.
 
Old 09-18-2005, 09:31 AM   #10
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
you couldn't post your lsmod could you???

I'm interseted to see which module is driving your ethernet card.

Many thnks
 
Old 09-18-2005, 05:40 PM   #11
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Only the 'tulip' module is loaded. Here's the kernel menuconfig and .config sections I used:
Code:
[*] "Tulip" family network device support
 <M>   Early DECchip Tulip (dc2104x) PCI support (EXPERIMENTAL)
 <M>   DECchip Tulip (dc2114x) PCI support
  [ ]     New bus configuration (EXPERIMENTAL)
  [ ]     Use PCI shared mem for NIC registers
  [ ]     Use NAPI RX polling
 <M>   Generic DECchip & DIGITAL EtherWORKS PCI/EISA
 <M>   Winbond W89c840 Ethernet support
 <M>   Davicom DM910x/DM980x support


# Tulip family network device support
#
CONFIG_NET_TULIP=y
CONFIG_DE2104X=m
CONFIG_TULIP=m
# CONFIG_TULIP_MWI is not set
# CONFIG_TULIP_MMIO is not set
# CONFIG_TULIP_NAPI is not set
CONFIG_DE4X5=m
CONFIG_WINBOND_840=m
CONFIG_DM9102=m
So I guess the DECchip Tulip (dc2114x) option gives the standard 'tulip' module which is all that this generic 'made in china' network card needs.

In fact to figure out which module I needed I just booted up a knoppix CD and checked which network driver got loaded.
 
Old 09-19-2005, 05:47 AM   #12
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
thnks 4 your help.

i need to get a copy of knoppix.
Is seems handy.
 
  


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
Tulip/kernel 2.6.7 escargot22026 Linux - Networking 7 08-07-2004 07:56 AM
Losing internet connection Slack 10 Kernel 2.6.7 tulip driver EdwardA Linux - Networking 0 07-03-2004 08:55 AM
Compile tulip.c to tulip.o? WKoepp Linux - General 10 11-06-2003 09:15 AM
PCI tulip network adapter not working in 2.6.0-test4-bk3 kernel... Slayer Linux - Networking 0 09-06-2003 09:26 AM
linux kernel 2.5.1 and tulip drivers CtrlAltDel Linux - General 6 12-17-2001 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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