LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-31-2007, 11:25 AM   #1
cheerful
Member
 
Registered: Jul 2007
Posts: 37

Rep: Reputation: 15
Fedora 6: kernel, arch and source incompatible


I am having problem with nVidia driver installation. Here is the setup

1. The machine is upgraded from FC3 to FC6 final.

2. After upgrade

> uname -a
Linux cuhhig 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 i686 i386 GNU/Linux
> uname -m
i686

3. After upgrade, I Installed kernel-devel and kernel-2.6.18-1.2798.fc6.src.rpm

Use rpmbuild -bp --target=i686 to unpack the kernel source and did make in the directory.

The error from nVidia installer is at the bottom. It appears I have both 2.6.12 and 2.6.18, and 586 and 686.

- How can I find the exact kernel version and arch I have?

- How do remove the other kernel(s)?

Thanks!

Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 Invalid module format
-> Kernel messages:
eth0: no IPv6 routers present
ADDRCONF(NETDEV_UP): eth0: link is not ready
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
nvidia: no version for "struct_module" found: kernel tainted.
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.12-prep 686 REGPARM 4KSTACKS gcc-4.1' should be
'2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
nvidia: version magic '2.6.18-prep SMP mod_unload 686 REGPARM 4KSTACKS
gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS
gcc-4.1'
 
Old 09-01-2007, 09:39 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Quote:
- How can I find the exact kernel version and arch I have?
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'kernel*'

Quote:
- How do remove the other kernel(s)?
Carefully; rpm -e kernel-<version number here>

You should also remove any matching (by version number) old kernel-devel and kernel-headers packages also. It is a good idea to add the --test switch to the 'rpm -e' command above to check if something requires a specific installed kernel first. Remove the --test switch if OK to really remove.
 
Old 09-01-2007, 06:49 PM   #3
cheerful
Member
 
Registered: Jul 2007
Posts: 37

Original Poster
Rep: Reputation: 15
Here is what I got. My guess is that headers does not really matter. However, I clearly have the incompatible kernel and kernel-devel/PAE.

cuhhig:~>rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'kernel*'
kernel-headers-2.6.18-1.2798.fc6.i386
kernel-devel-2.6.18-1.2798.fc6.i686
kernel-PAE-2.6.18-1.2798.fc6.i686
kernel-2.6.18-1.2798.fc6.i586

My questions is:

1. How do I tell which kernel I should have?

2. Is there a safe way to simply switch to i686 kernel (if that's the correct kernel)? Like rpm -Uvh --force?

3. The original log error shows 2.6.12. It's not shown here. Where does it come from?

Thanks for the help!

Quote:
Originally Posted by Lenard View Post
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'kernel*'



Carefully; rpm -e kernel-<version number here>

You should also remove any matching (by version number) old kernel-devel and kernel-headers packages also. It is a good idea to add the --test switch to the 'rpm -e' command above to check if something requires a specific installed kernel first. Remove the --test switch if OK to really remove.
 
Old 09-02-2007, 06:55 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
You have two kernels, both are i686;
kernel-PAE-2.6.18-1.2798.fc6.i686
kernel-2.6.18-1.2798.fc6.i586

The PAE kernel is for large memory (greater then 4GB), if the system does not have more then 4GB of memory then remove it;

rpm -e kernel-PAE-2.6.18-1.2798.fc6.i686

If it does then remove the other;
rpm -e kernel-2.6.18-1.2798.fc6.i686 kernel-devel-2.6.18-1.2798.fc6.i686

And install the correct kernel development rpm package; yum install kernel-PAE-devel

Your problem is with the FC6 supplied kernels which are compiled with 4k stacks and the nVidia source is expecting a 16k stack kernel.The nVidia script is designed to check for multiple kernels and is based on the 2.6.12 kernel (when configured).

Solution install the prebuilt nVidia rpm packages from some place like atrpms or freshrpms for example;

http://zod.freshrpms.net/rpm.html?id=1205
http://atrpms.net/dist/fc6/nvidia-graphics/

But you really should update FC6 first based on the fact that your current kernels are old and have been updated along with many other packages;

yum update yum
yum install kernel-2.6.22.2-42.fc6 kernel-PAE-2.6.22.2-42.fc6
yum update
 
Old 09-05-2007, 11:49 PM   #5
cheerful
Member
 
Registered: Jul 2007
Posts: 37

Original Poster
Rep: Reputation: 15
I thought FC6 has gone final and thus no longer has any update. Isn't that the case?

I am a bit confused. Is kernel-2.6.18-1.2798.fc6.i586 i586 or i686? Do you mean they are actually the same?

I will till the kernel issue is resolved to try pre-built nVidia rpm. Do you mean they will work with 4k stack? Thanks for the links.
 
Old 09-06-2007, 05:38 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Quote:
I thought FC6 has gone final and thus no longer has any update. Isn't that the case?
Yes Fedora Core 6 was released, but updates are still being released and made available;

https://www.redhat.com/archives/fedo...kage-announce/
https://www.redhat.com/archives/fedo.../msg00103.html

Also do; yum check-update

Quote:
I am a bit confused. Is kernel-2.6.18-1.2798.fc6.i586 i586 or i686? Do you mean they are actually the same?
The i586 kernels are built for the older i586 CPU's while the i686 kernels are built for the newer i686 CPU's;

http://www.redhat.com/archives/rhl-l.../msg05183.html

They are almost the same, but are optimized for the CPU family. You have both an i586 kernel (kernel-2.6.18-1.2798.fc6.i586) and an i686 (kernel-PAE-2.6.18-1.2798.fc6.i686) kernel installed, which one are your running, check by typing the command;

uname -a

Both will work fine in an i686 based system, but the i686 kernel will not work correctly in an i586 based system. Which kernel (i586 or i686) you should run is based on the CPU of the system, review the link above and see which CPU you have by typing;

cat /proc/cpuinfo


Quote:
I will till the kernel issue is resolved to try pre-built nVidia rpm. Do you mean they will work with 4k stack?
Exactly the prebuilt rpm packages are built for the FC6 kernels that are by default 4k stack instead of the 16k stack the nVidia installer is expecting.
 
Old 09-06-2007, 09:52 PM   #7
cheerful
Member
 
Registered: Jul 2007
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the clarification.

>uname -a
Linux cuhhig 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 i686 i386 GNU/Linux

So I guess I am running the non-PAE version. I am not sure how to check the memory in Linux. Tried vmstat -s -S M and got 1009 M total memory. So non PAE should be right.

I will remove the PAE kernel. However, should I update to i686 kernel?

/proc/cpuinfo shows 2 identical CPU. How do I tell i686 from i586? Sorry for so many questions. I am just learning Linux.

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 5
cpu MHz : 2793.095
cache size : 512 KB
 
Old 09-06-2007, 11:02 PM   #8
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
There's little reason to get rid of old kernels. They don't do any harm when you stop using them, except take a little bit of disk space.
 
Old 09-07-2007, 06:02 AM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
To install a new kernel (and you do want the i686 kernel) one does something like;

yum install kernel-2.6.22.i686

rpm -ivh kernel-2.6.22.i686.rpm

One must be carefull to remove old kernels, get the list then carefully remove using the kernel's version number;

rpm -e kernel-2.6.21.2

FYI: the output you posted with the comment about 2 identical CPU suggest that you do have an i686 CPU which is dual-core.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Microsoft and open source: no longer incompatible? LXer Syndicated Linux News 0 04-08-2006 02:03 AM
Kernel 2.6.14.2 Incompatible with ATI drivers? RedShirt Linux - Software 5 11-19-2005 11:19 PM
arch source? chbin Arch 1 04-18-2005 07:41 AM
Incompatible file feature Fedora 3 / GNU Parted martinlinuxuser Linux - General 1 03-20-2005 11:39 AM
kernel incompatible and unresolved symbols bluejob Linux - Software 0 12-03-2004 01:23 AM


All times are GMT -5. The time now is 08:28 PM.

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