Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

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

0
john1ireland
Asked:
john1ireland
  • 4
  • 4
  • 3
2 Solutions
 
pablouruguayCommented:
ok. the kernel dont have the headers.. download the kernel headers and soruces for this version of kernel and all works fine.
0
 
wesly_chenCommented:
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
 
pablouruguayCommented:
yes the development package too....  

ps. hey wesly time to didnt see you! welcome again!!!  :)
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now