LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-13-2006, 02:39 PM   #1
NetGuy411
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
Problems Compiling 3c940 Driver


I'm trying to install a driver for the 3c940 network card. I've downloaded all the headers and source code for the Linux kernel. The driver comes with a program that ries to install it. When I run it this is th error that i get in the Install.log:

+++ Compile the driver

+++ ====================================

make: Entering directory `/usr/src/kernels/2.6.17-1.2174_FC5-smp-i686'

Building modules, stage 2.

MODPOST

make: Leaving directory `/usr/src/kernels/2.6.17-1.2174_FC5-smp-i686'

+++ Compiler error

I'm very new to Linux. Any help would be greatly appreciated.
 
Old 08-13-2006, 03:17 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
You have downloaded kernel-devel-2.6.17-1.2174.*.rpm correct?
And you have installed it?
What does the command ' uname -r ' say?
Does the directory /usr/src/kernels/2.6.17-1.2174_FC5-smp-i686 exist?
Anything in it?

Brian1
 
Old 08-14-2006, 08:54 AM   #3
NetGuy411
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I belive that I have the correct source. The program has a series of tests that it displays and it passes the header test. I used the commands:
yum update kernel*
yum install kernel-smp-devel

This install the source in /usr/src. I created a link to the source code directory and called it "linux".

The uname -r response is 2.6.17-1.2174_FC5smp
 
Old 08-14-2006, 01:35 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
What is the output from the command ' rpm -qa | grep kernel '?
This directory does exist correct ? /usr/src/kernels/2.6.17-1.2174_FC5-smp-i686
This is what it is looking for.

Other than that the output info on the first part is very vague as to what is going on. Normally one sees compiling code go by but maybe because of the install file you are using.

Where is this file at that can be downloaded?

Brian1
 
Old 08-15-2006, 04:37 PM   #5
NetGuy411
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Here are the results:

****
[root@deolfs2lx ~]# rpm -qa|grep kernel
kernel-smp-devel-2.6.17-1.2174_FC5
kernel-smp-2.6.17-1.2174_FC5
kernel-devel-2.6.17-1.2174_FC5
kernel-smp-2.6.17-1.2157_FC5
kernel-devel-2.6.17-1.2157_FC5
[root@deolfs2lx ~]#
****

The kernel directory does exist.
****
[root@deolfs2lx ~]# cd /
[root@deolfs2lx /]# cd usr
[root@deolfs2lx usr]# cd src
[root@deolfs2lx src]# cd kernels
[root@deolfs2lx kernels]# dir
2.6.17-1.2157_FC5-i686 2.6.17-1.2174_FC5-smp-i686
2.6.17-1.2174_FC5-i686 2.6.17-1.2174_FC5smp-i686
[root@deolfs2lx kernels]# cd 2.6.17-1.2174_FC5-smp-i686
[root@deolfs2lx 2.6.17-1.2174_FC5-smp-i686]# dir
arch drivers init lib Module.symvers security version.h
block fs ipc Makefile net sound
crypto include kernel mm scripts usr
[root@deolfs2lx 2.6.17-1.2174_FC5-smp-i686]#
****

I got the driver off of the 3com website. It's install-8_23.tar.bz2

Thanks for your help.
 
Old 08-15-2006, 05:47 PM   #6
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Okay I check out the file from 3com and it builds a module called sk98lin.ko
Check to see if you already have it built with the command ' ls /lib/modules/`uname -r`/kernel/drivers/net/sk98lin '
If it exist then as root do a ' modprobe sk98lin '

Ok did a quick download of the kernel rpm and it is not one of the default modules.
Then I tried installing the driver you are trying to install and it errors on me as well. A bit different but does fail. I am guessing it is an issue with the structure of the 2.6 kernel. Since the driver is over 3 years old it probably will not compile on this new of a kernel. I don't have the time to debug any of the source code there.

I don't use any of those precompiled kernel rpms. I build my own since my hardware is not standard as far as the redhat/fedora team goes. A quick check of the latest I have installed 2.6.17.7 contains the sk98lin module. What I would do is build your own kernel. Essy by following this post under a Redhat clone distro. http://www.linuxquestions.org/questi...36#post1401136

Only thing you may run into is the netfilter config change in 2.6.15 kernel and later so you will have to goto the netfilter section and enable everything if using and old config file from /boot.

Brian1
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
3Com Gigabit LOM (3C940) Driver V1.00.00.0046 for Linux Breitling007 Linux - Hardware 1 08-09-2004 06:24 PM
Driver compiling problems silverline Linux - Hardware 1 03-12-2004 03:00 AM
3COM 3c940/3c2000 Driver JGull8502 Linux - Hardware 2 11-09-2003 07:46 PM
3COM Driver - 3c940/3c2000 & SATA Harddrives cheezwiz Linux - Hardware 2 09-15-2003 02:16 PM
Another Prob with driver 3C940 hawat Linux - Hardware 3 08-02-2003 01:20 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration