Solved

Can't install drivers Netgear NIC

Posted on 2006-11-23
11
331 Views
Last Modified: 2010-05-18
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
Comment
Question by:john1ireland
  • 4
  • 4
  • 3
11 Comments
 
LVL 14

Assisted Solution

by:pablouruguay
pablouruguay earned 50 total points
ID: 18006925
ok. the kernel dont have the headers.. download the kernel headers and soruces for this version of kernel and all works fine.
0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 450 total points
ID: 18008024
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
 
LVL 14

Expert Comment

by:pablouruguay
ID: 18009807
yes the development package too....  

ps. hey wesly time to didnt see you! welcome again!!!  :)
0
 

Author Comment

by:john1ireland
ID: 18011636
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
 
LVL 14

Expert Comment

by:pablouruguay
ID: 18011829
yep other solution is install via ndiswrapper
0
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 
LVL 38

Expert Comment

by:wesly_chen
ID: 18012032
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
 

Author Comment

by:john1ireland
ID: 18012444
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
 
LVL 38

Expert Comment

by:wesly_chen
ID: 18013809
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
 

Author Comment

by:john1ireland
ID: 18015893
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
 
LVL 38

Expert Comment

by:wesly_chen
ID: 18017258
> 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
 

Author Comment

by:john1ireland
ID: 18049202
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Debian: failing to add netwok bridge for kvm 2 104
Linux alternative boot CD? 28 101
Cron jobs 12 116
Debian 8.5 networking quits working every couple of hours 13 92
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now