LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-20-2003, 03:07 PM   #1
Jefklak
LQ Newbie
 
Registered: Oct 2003
Distribution: Currently Fedora B3, Will try Gentoo 1.4
Posts: 26

Rep: Reputation: 15
Lightbulb After compiling 2.6 kernel >> not enough drivers in /lib/modules??


Hiya all,

Well after compiling the 2.6.0-test7 kernel everything went fine except that sx.h file, but I simply didn't "compile" it with xconfig. Anyway, I copy bzImage to my /boot dir and I copy for the record my .config file too. I run mkinitrd to create a IMG file and place it too in the /boot dir and change my GRUB config.

Everything is going fine, i'm booting the new kernel. OK from here. BUT: I installed the nvidia drivers on my original kernel (2.4.22 using Fedora beta 3, version 0.95 I mean) and I can't get any graphics in my new booted kernel. When trying "startx" i'm getting a fatal error:

Quote:
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.
What's wrong? I don't have a clue.
BUT when I check the /lib/modules/2.6.0-test7/kernel/ map, in the drivers dir there aren't too much drivers. there isn't any nvidia.o in /drivers/video but when I try to copy it from the /lib/modules/2.4.22/ dir and reboot that doesn't work eighter.
Trying to reinstall nvidia drivers gives also an error:

Quote:
ERROR: The kernel header file
'/lib/modules/2.6.0-test7/build/include/linux/modversions.h' does not
exist. The most likely reason for this is that the kernel header files
in '/lib/modules/2.6.0-test7/build/include' have not been configured.
Did i forgot to do something after compiling? I ran make modules and make modules_install without any problems. What's wrong here?
Thanks a lot for your support!!



Greets
Wouter.
MOD: maybe I unticked a bit too much options in xconfig?
If you want i'll post the config file, I backed it up (as I said before).

Last edited by Jefklak; 10-20-2003 at 03:08 PM.
 
Old 10-20-2003, 03:21 PM   #2
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
I am really sure that the 2.6 kernel is the problem. The latest stable kernel is 2.4.22 FYI
So why don t you use one of the most unstable Kernels. It isn t even unstable. The 2.6 kernels lie in the darkest testing phase.
So get the 2.4.22 kernel and be lucky
I think you know where to get it.
 
Old 10-20-2003, 03:29 PM   #3
Jefklak
LQ Newbie
 
Registered: Oct 2003
Distribution: Currently Fedora B3, Will try Gentoo 1.4
Posts: 26

Original Poster
Rep: Reputation: 15
Heh, if you've read my post carefully, I am ALREADY running on the 2.4.22 kernel. But I yust would like to try the 2.6 for fun. It has NTFS support and ACPI wich is very intresting. Heck, I yust wanted to try it.

I'm sure it is NOT the 2.6 kernel, i have been searching on google.com and found this:
https://listman.redhat.com/archives/.../msg02146.html
But my symlink in /lib/modules/2.6.0-test7/build IS correct and refers to /usr/src/2.6.0-test7 ... so If anyone has this modversion.h problem too or something like that....



Help!!
Thanks a lot.
 
Old 10-20-2003, 03:36 PM   #4
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
Sorry read the 2.6 and......
The nvidia driver compiled correctly and there is no nvidia.o ? Did you looked by going in the directory or just by locate nvidia.o? I think you loaded the module, did you?
 
Old 10-20-2003, 03:42 PM   #5
Jefklak
LQ Newbie
 
Registered: Oct 2003
Distribution: Currently Fedora B3, Will try Gentoo 1.4
Posts: 26

Original Poster
Rep: Reputation: 15
No I didn't.
I did the following:

Install Fedora (kernel 2.4.22)
Install Nvidia drivers (first source of 2.4.22 and make and gcc and stuff)
Ok, works perfectly.
Download 2.6.0-test7 source
Configure with make xconfig
Compile with make bzImage, make modules & make modules_install
copy bzImage, change GRUB config, make initrd.img
reboot and try 2.6 kernel.
==> Error while starting X.

I think there's a problem because I "compiled" nvidia.o with 2.4.22 (installed) and now I try to run 2.6.0. But when I try to restart the nvidia-installer, I get the error I showed you in my first post (quotes). I searched on google and found something about nvidia:
"blah blah blah If you get the error "Failed to initialize" you compiled it with the wrong kernel headers" or something like that.
Someone know what I did wrong? Mixed the two kernel versions or what?

BTW snu, did you try the 2.6?
 
Old 10-20-2003, 03:51 PM   #6
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
did you make make dep and make clean after the xconfig by the way?

No I didn t. And I think I will not do that. Are there some preferences. My system runs stable and nearly everything works. So why should I.
 
Old 10-20-2003, 04:02 PM   #7
Jefklak
LQ Newbie
 
Registered: Oct 2003
Distribution: Currently Fedora B3, Will try Gentoo 1.4
Posts: 26

Original Poster
Rep: Reputation: 15
No I didn't. Is that needed? I did make dep, the first time, but I got someting like "not needed". Dunno why. Does it matter that much?
 
Old 10-20-2003, 10:37 PM   #8
mishak
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware 9.0
Posts: 17

Rep: Reputation: 0
1.) 'make dep' is no longer necessary when building the 2.6 kernel. Technically, all you need are 'make' and 'make install'.

2.) I'm thinking you need to recompile the nVidia drivers under the 2.6 kernel. This process will make sure all the files are in the correct spots, too.

Hope this helps!

--Misha
 
Old 10-20-2003, 11:19 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally posted by Jefklak
No I didn't.
I did the following:

Install Fedora (kernel 2.4.22)
Install Nvidia drivers (first source of 2.4.22 and make and gcc and stuff)
Ok, works perfectly.
Download 2.6.0-test7 source
Configure with make xconfig
Compile with make bzImage, make modules & make modules_install
copy bzImage, change GRUB config, make initrd.img
reboot and try 2.6 kernel.
==> Error while starting X.

I think there's a problem because I "compiled" nvidia.o with 2.4.22 (installed) and now I try to run 2.6.0. But when I try to restart the nvidia-installer, I get the error I showed you in my first post (quotes). I searched on google and found something about nvidia:
"blah blah blah If you get the error "Failed to initialize" you compiled it with the wrong kernel headers" or something like that.
Someone know what I did wrong? Mixed the two kernel versions or what?

BTW snu, did you try the 2.6?
You will need to go here and get the patch for the test7 kernel. The method I used was the live install with the new kernel running mentioned in the README you let the login X screen fail when you boot, go to the console extract the nvidia.run and patch the sources and then run make install the loading of the module at the end will fail at least it did for me then modprobe -f nvidia will load the module assuming you compiled the kernel to allow forced loading.
 
Old 10-21-2003, 12:55 PM   #10
Jefklak
LQ Newbie
 
Registered: Oct 2003
Distribution: Currently Fedora B3, Will try Gentoo 1.4
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks a lot for the link man, it worked!!
 
  


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
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 08:59 AM
/lib/modules/.../kernel/drivers empty? maxware Linux - General 7 03-05-2004 08:58 PM
need printer config help...instmod: /lib/modules/kernel/drivers/scsi/scsi_mod.o fails krome Linux - Hardware 2 01-16-2004 01:52 PM
/lib/modules Issues w/ New Kernel peace Linux - General 2 01-03-2004 05:50 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 02:50 AM


All times are GMT -5. The time now is 09:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration