Can't install drivers Netgear NIC

I am trying to install the drivers for a Netgear PCI (10/100) NIC (FA311) onto a fresh Fedora Core 5. When installing Fedora I chose to install ALL options, used yum to check for and install all updates and changed SELINUX to permissive for the time being. When I try to install the drivers for the Netgear NIC, using the MAKE ALL command, I get a series of errors beginning with:

ccl:  error:  /lib/modules/2.6.18-1.2239.fc5/build/include/linux/modversions.h:  No such file or directory

john1irelandAsked:
Who is Participating?
 
wesly_chenConnect With a Mentor Commented:
You need to install kernel-devel package for those header files.
As root, run
# yum install kernel-devel

Then recompile the Netgear NIC driver.
0
 
pablouruguayConnect With a Mentor Commented:
ok. the kernel dont have the headers.. download the kernel headers and soruces for this version of kernel and all works fine.
0
 
pablouruguayCommented:
yes the development package too....  

ps. hey wesly time to didnt see you! welcome again!!!  :)
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
john1irelandAuthor Commented:
Thank you, but am still having the same problem, as shown in the highlights below. This is after installing the kernel-devel. Only additional point I can think of is that the drivers available from netgear are for kernel 2.2. or 2.4, whereas the kernel in Fedora is 2.6:

'gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -D__init="" -D__exit="" -D_DRIVER_ -DNETGEAR_DEV=310 -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -w -I/lib/modules/2.6.18-1.2239.fc5/build/include -include /lib/modules/2.6.18-1.2239.fc5/build/include/linux/modversions.h -g -c fa3xx.c

cc1: error: /lib/modules/2.6.18-1.2239.fc5/build/include/linux/modversions.h: No such file or directory
In file included from /lib/modules/2.6.18-1.2239.fc5/build/include/asm/thread_info.h:16,


Any other suggestions? Thanks.
0
 
pablouruguayCommented:
yep other solution is install via ndiswrapper
0
 
wesly_chenCommented:
Could you provide the following result:
ls /lib/modules/2.6.18-1.2239.fc5/build/include/linux/mod*.h
ls /lib/modules/2.6.18-1.2239.fc5/build/include/mod*.h
uname -a
rpm -q kernel-devel

Usually, the driver written for 2.4.x kernel might not compatible to 2.6.x kernel. You need to download the driver for 2.6.x kernel for better luck.
0
 
john1irelandAuthor Commented:
Here is the output requested:

[root@localhost ~]# ls /lib/modules/2.6.18-1.2239.fc5/build/include/linux/mod*.h
/lib/modules/2.6.18-1.2239.fc5/build/include/linux/mod_devicetable.h
/lib/modules/2.6.18-1.2239.fc5/build/include/linux/module.h
/lib/modules/2.6.18-1.2239.fc5/build/include/linux/moduleloader.h
/lib/modules/2.6.18-1.2239.fc5/build/include/linux/moduleparam.h


[root@localhost ~]# ls /lib/modules/2.6.18-1.2239.fc5/build/include/mod*.h
ls: /lib/modules/2.6.18-1.2239.fc5/build/include/mod*.h: No such file or directory


[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-1.2239.fc5 #1 Fri Nov 10 13:04:06 EST 2006 i686 athlon i386 GNU/Linux


[root@localhost ~]# rpm -q kernel-devel


kernel-devel-2.6.18-1.2239.fc5

Thanks. (I tried ndiswrapper, but ran into a problem with that route)
0
 
wesly_chenCommented:
As root, try
# updatedb
# locate modversions.h
to see if you can find the modversions.h in your system somewhere such as /usr/src/linux-2.x.x/include/config/...
Then copy modversions.h to /lib/modules/2.6.18-1.2239.fc5/build/include/.

Or you can install the kernel src rpm.
# rpm -ivh ftp://zeniv.linux.org.uk/pub/distributions/fedora/linux/core/updates/5/SRPMS/kernel-2.6.18-1.2239.fc5.src.rpm
Then
# updatedb
# locate modversions.h
to find the modversions.h.
0
 
john1irelandAuthor Commented:
I moved the modversions.h  to the location specified, but it still provies the same result. Question: The instructions with the Netgear Readme did not specify where the .c, .h and makefile needed to be copied before trying to compile. Is there a specific place they must be?
Thanks.
0
 
wesly_chenCommented:
> I moved the modversions.h  to the location specified, but it still provies the same result.
Which error message is the same? Still complain
"cc1: error: /lib/modules/2.6.18-1.2239.fc5/build/include/linux/modversions.h: No such file or directory"
or others?

By default, it looks for system and kernel library/include files in
/lib/modules/`uname -r`/build/include/linux/
0
 
john1irelandAuthor Commented:
I am sorry for delay in update.

When I said that I tried to move modversions.h and it produced the same result...I meant that I got the message
"cc1: error: /lib/modules/2.6.18-1.2239.fc5/build/include/linux/modversions.h: No such file or directory"
I noticed later that the size of that file (??) is 0  (significant, ???).
In any event, I deeply appreciate the prompt and excellent advice from wesley chen and pablouruguay. I will continue to work on this with more self study before making further postings. You at least inspired someone to pursue linux to a much deeper level and it is encouraging to know that there are people willing to share their time and effort with those trying to break into new territory.
Thanks again and I'll get the well earned points out.

 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.