LinuxQuestions.org
Visit Jeremy's Blog.
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 12-19-2003, 07:51 AM   #1
DrSkrud
LQ Newbie
 
Registered: Oct 2003
Location: Montreal, Canada
Distribution: Slackware 9.1
Posts: 6

Rep: Reputation: 0
3com 3c2000 in kernel 2.6.0


I've got kernel 2.6.0 up and running on Slackware 9.1. The only problem is that I can't seem to compile the 3c2000 Linux drivers for the ASUS P4P800 Deluxe motherboard (which I downloaded from ASUS's website). They compiled fine in 2.4.23. Here's the erroneus output from make:

Code:
skge.c: In function `SkGeOpen':
skge.c:1793: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:482)
skge.c: In function `SkGeClose':
skge.c:1893: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:494)
make: *** [skge.o] Error 1
(For reference: /usr/src/linux is linked to /usr/src/linux-2.6.0 which is where it should be...)

Any help that anyone can provide would be greatly appreciated. Thanks in advance
 
Old 12-19-2003, 05:25 PM   #2
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
I don't believe warnings would cause the make to stop, can you see if there are errors above and post those?
 
Old 12-19-2003, 06:17 PM   #3
DrSkrud
LQ Newbie
 
Registered: Oct 2003
Location: Montreal, Canada
Distribution: Slackware 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Here is the complete output from make:
Code:
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux/include    -c -o skge.o skge.c
In file included from /usr/src/linux/include/asm/processor.h:18,
                 from /usr/src/linux/include/asm/thread_info.h:13,
                 from /usr/src/linux/include/linux/thread_info.h:21,
                 from /usr/src/linux/include/linux/spinlock.h:12,
                 from /usr/src/linux/include/linux/capability.h:45,
                 from /usr/src/linux/include/linux/sched.h:7,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux/include/linux/irq.h:20,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from h/skdrv1st.h:161,
                 from skge.c:347:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from h/skdrv1st.h:161,
                 from skge.c:347:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from h/skdrv1st.h:161,
                 from skge.c:347:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
skge.c: In function `skge_probe':
skge.c:504: warning: implicit declaration of function `pci_present'
skge.c:525: warning: integer constant is too large for "long" type
skge.c: In function `SkGeBoardInit':
skge.c:1085: warning: passing arg 2 of `request_irq' from incompatible pointer type
skge.c:1088: warning: passing arg 2 of `request_irq' from incompatible pointer type
skge.c: In function `SkGeOpen':
skge.c:1793: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:482)
skge.c: In function `SkGeClose':
skge.c:1893: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:494)
make: *** [skge.o] Error 1
Indeed there are errors earlier on.... in hw_irq.h it seems. Is the 2.6.0 pool that far removed from the 2.4 series?
 
Old 12-19-2003, 09:54 PM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Yes. I am having the same problem with another wireless driver. I need more time to look into this.
 
Old 12-20-2003, 12:35 AM   #5
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
LWN article on porting drivers to 2.6

http://lwn.net/Articles/driver-porting/

Interesting reading at least.
 
Old 12-20-2003, 12:58 AM   #6
DrSkrud
LQ Newbie
 
Registered: Oct 2003
Location: Montreal, Canada
Distribution: Slackware 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Indeed that is an interesting read, and I thank you for it! Unfortunately, most of it goes way over my head. To date, my programming experience lies solely in the realm of academia and related contests (like the ACM Coding Competition), but as far as practical programming and network related things and anything that could be *useful*, I am at a complete loss...

Though the more I read... the closer I get
 
Old 12-23-2003, 04:39 PM   #7
Ethan Hunt
LQ Newbie
 
Registered: Dec 2003
Distribution: Debian sid
Posts: 1

Rep: Reputation: 0
hi people... the answer is easy:

why using a misc driver, if a working one is already included in 2.6.0?

simply activate 'CONFIG_SK98LIN=m' or under networking -> 1000 ethernet -> '<M> Marvell Yukon Chipset / SysKonnect SK-98xx Support'

depmod -a
insmod /lib/modules/2.6.0/kernel/drivers/net/sk98lin/sk98lin.ko
ifconfig eth0 up

and everything should be fine!


btw. 3com uses this chip from SysKonnect, see here
 
Old 12-25-2003, 08:18 AM   #8
DrSkrud
LQ Newbie
 
Registered: Oct 2003
Location: Montreal, Canada
Distribution: Slackware 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks a lot! That worked great. I recompiled my kernel with the SK-98xx driver as a module and then added modprobe sk98lin to my rc.modules file. My NIC works great now. Thanks for the help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
p4p800 with 3com 3c2000..Noob------> MattZ Linux - Hardware 2 12-25-2008 06:44 AM
got problem with installing 3Com 3c2000 arSUduLU Linux - Hardware 0 12-12-2003 06:35 AM
3COM 3c940/3c2000 Driver JGull8502 Linux - Hardware 2 11-09-2003 07:46 PM
3com 3c2000 onboard lan problem scoughlin Linux - Networking 10 11-01-2003 02:42 PM
3com 3c940 (3c2000) vies Linux - Hardware 1 07-04-2003 11:23 AM

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

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