LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-09-2003, 12:54 PM   #1
Peit
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Rep: Reputation: 15
Question I need kernel source 2.4.20-20.9 i686


Hello all

I want to update my video drivers, but i need the source from my kernel, the file should be called kernel-source-2.4.20-20.9.i686.rpm

I found kernel-source-2.4.20-20.9.i386.rpm on the red hat updates ftp, but that one isnt working.

Anyone knows a place for all the kernel sources?

Thanks in advance!
 
Old 10-09-2003, 01:06 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Try here:
http://www.kernel.org

Although it looks like it is down so try:
http://www.mirror.ac.uk/sites/ftp.ke...x/kernel/v2.4/
 
Old 10-09-2003, 01:51 PM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If you need it to compile something that relies on having the kernel source installed you should be OK if you only install the matching kernel-headers package.

Or get the official source from a kernel.org mirror and build it yourself.

hw
 
Old 10-09-2003, 02:51 PM   #4
Peit
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your replies!

But i still got a problem
So i did as you said, downloaded this source:
ftp://ftp.kernel.org/pub/linux/kerne...-2.2.20.tar.gz
(after the error i also tried ftp://ftp.kernel.org/pub/linux/kerne....2.20.tar.bz2, didnt know the difference)
unpacked it somewhere, and did the nvidia installer again

this is the error it gave me then:
Code:
ERROR: The kernel header file
       '/home/willem/linux-2.4.20/include/linux/modversions.h' does not exist. 
       The most likely reason for this is that the kernel header files in
       '/home/willem/linux-2.4.20/include' have not been configured.
and that file, indeed, is not there. Other files are, when i gave the path wrong to the installer, it said 'couldnt find kernel.h', so i am pointing to the right dir.

Did i download the wrong source? Or is there another solution?
 
Old 10-09-2003, 04:15 PM   #5
blaisepascal
LQ Newbie
 
Registered: Jun 2002
Distribution: Red Hat Linux 9
Posts: 27

Rep: Reputation: 16
First off, do you have kernel 2.4.20-20.9 installed? If you don't know which version you have, you can check by typing "uname -r" or "rpm -qa kernel". When you said that using kernel-source doesn't work, how so?

Also, is there a reason why the kernel source you did install is in the /home/... directory? I thought that it had to go to the /usr/src directory. Maybe try putting the kernel source there and run the installer again.


BP

0018
 
Old 10-09-2003, 04:44 PM   #6
Peit
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your reply!

Quote:
Originally posted by blaisepascal
[B]First off, do you have kernel 2.4.20-20.9 installed?
Yes

Quote:
Originally posted by blaisepascal When you said that using kernel-source doesn't work, how so?
This source isnt, the nvidia installer says so, see the error report in my previous post.

Quote:
Originally posted by blaisepascal Also, is there a reason why the kernel source you did install is in the /home/... directory? I thought that it had to go to the /usr/src directory. Maybe try putting the kernel source there and run the installer again.
There was no reason for, i gave the path to the nvidia installer using the parameter. I tried putting it in /usr/src but that didnt work either same error!
 
Old 10-09-2003, 05:07 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
That's becaus the source needs to be compiled for the file to exist.

Get the kernel-headers package for your kernel.

hw
 
Old 10-09-2003, 05:07 PM   #8
Peit
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Original Poster
Rep: Reputation: 15
I did some searching and found the modversions.h, now im getting another error:
Code:
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/usr/include'...
                                                              
   You appear to be compiling the NVIDIA kernel module with   
   a compiler different from the one that was used to compile 
   the running kernel. This may be perfectly fine, but there  
   are cases where this can lead to unexpected behaviour and  
   system crashes.                                            
                                                              
   If you know what you are doing and want to override this   
   check, you can do so by setting IGNORE_CC_MISMATCH.        
                                                              
   In any other case, set the CC environment variable to the  
   name of the compiler that was used to compile the kernel.  
                                                              
   *** Failed cc sanity check. Bailing out! ***
   make: *** [gcc-check] Error 1
 
Old 10-10-2003, 03:41 AM   #9
Peit
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Can anyone please help me with this problem?

 
  


Reply



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
2.6.11-6mdk-i686-up-4GB kernel source install Grasshopper Mandriva 2 07-11-2005 02:36 PM
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - General 2 05-07-2005 11:21 PM
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - Enterprise 1 05-07-2005 07:20 PM
compiling from source with i686 optimizations ganja_guru Linux - Software 6 11-08-2004 09:26 AM
no i686 kernel source? LooseCanon Red Hat 4 09-18-2003 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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