LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2003, 04:53 PM   #1
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
Unhappy preemptive patch + nvidia kernel compilation


hi everyone.

here's my situation:

today i noticed a patch for my 2.4.20 kernel to add the preemptive
feature. i downloaded it, patched my kernel source / headers, ran
make menuconfig, enabled the option, compiled my kernel using the
instruction elsewhere in this slackware forum. no warnings, no errors.

booting went fine as well.

next i had to install the nvidia kernel + driver. i ran the nvidia install
script, which went through its dialogs nice and zippy; i could actually
notice the increased responsiviness because of the preemptive patch
already.

but then the script halted with the following error:

"ERROR: Unable to load the kernel module 'nvidia.o'. This is
most likely because the kernel module was built using the
wrong kernel header files. Please make sure you have installed
the kernel header files for your kernel; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' rpm installed.
If you know the correct kernel header files are installed, you may
specify the kernel include path with the '--kernel-include-path'
commandline option."

i had used this installer many times before, without a problem.
this leads me to conclude that the patch modified the source/
headers in such a way that they were not usable for the nvidia
kernel compilation any longer..

seeing no way to fix this, i have reverted back to my unpatched
kernel, since i need 3D acceleration daily. but now i have tasted
the preemptiviness, i *really* want it.

my question is:

how would i go about getting the nvidia kernel + driver installed
with the patched source / headers?

thanks for your time and suggestions.
 
Old 04-26-2003, 12:39 PM   #2
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
anyone?
 
Old 04-26-2003, 12:53 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Erm, if you can get the source for the nVidia patch then as a last resort you could combine the patches so you make both tweaks to the kernel at once, then try to get the nVidia installer to use your custom patch as it's own, and finish the rest of the install like normal. Sounds hard.
 
Old 04-26-2003, 04:03 PM   #4
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
thank you for the idea. i will see what i can do with it.

(meanwhile; others please post if you have an idea)
 
Old 04-26-2003, 04:25 PM   #5
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
when i tried to install the kernel manually from the tarball, i got the following warnings + errors:

ld -r -o nvidia.o nv-linux.o nv-kernel.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/scsi/ide-scsi.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/scsi/scsi_mod.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/scsi/sg.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/scsi/sr_mod.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/sound/sound.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/video/nvidia.o
/lib/modules/2.4.20/kernel/drivers/video/nvidia.o: unresolved symbol pm_unregister
/lib/modules/2.4.20/kernel/drivers/video/nvidia.o: unresolved symbol pm_register/lib/modules/2.4.20/kernel/drivers/video/nvidia.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. Contact the module supplier for
assistance, only they can help you.

/lib/modules/2.4.20/kernel/drivers/video/nvidia.o: insmod /lib/modules/2.4.20/kernel/drivers/video/nvidia.o failed
/lib/modules/2.4.20/kernel/drivers/video/nvidia.o: insmod nvidia failed
make: *** [package-install] Error 255

i just thought of something.. are there perhaps kernels which already
have the preemptive bit patched in? maybe those will work with
the nvidia kernel / drivers.

Last edited by neenee; 04-26-2003 at 04:28 PM.
 
Old 04-26-2003, 04:33 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Sounds possible, and then maybe the nVidia installer wont complain, but I would have though there is only one version of that patch, and kernel source with it already applied should look the same as the standard one after you personally apply it.
What is this premptiveness?
You're using 2.4.20 atm right? Maybe it's already in 2.4.21? Mandrake9.1 uses 2.4.21-0.13mdk.
 
Old 04-26-2003, 04:37 PM   #7
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
preemptiviness reduces the latency of the kernel.
this makes everything more responsive.
 
Old 04-26-2003, 09:30 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
The problem may be that when you did "make modules_install" for the new kernel it installed into the same directory as the modules from your old kernel, so you will end up with modules from the stock kernel and modules from your preemptive kernel in the same location.
I would recomend editing the makefile in the patched source and set an extraversion number for the preemptive kernel.
Code:
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 20
EXTRAVERSION =
To repair your current setup, delete your /lib/modules/2.4.20 directory and do "make modules_install" (in the patched kernel source) followed by "depmod -ae", then boot the new kernel and try installing the nvidia drivers again.
 
Old 04-27-2003, 06:40 AM   #9
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
hmm... the problem with the nvidia.o modules persists;
it seems part of the kernel, and is not created using
make modules_install.
 
Old 04-27-2003, 08:52 AM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
The nvidia module is made when you run make on the nvidia kernel package, the contents of your /lib/modules/2.4.20 is the problem now, it has modules from two different kernels (apart from their version number), and should only hold the modules for one kernel.
 
Old 08-13-2003, 03:13 PM   #11
gothick
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by neenee
/lib/modules/2.4.20/kernel/drivers/video/nvidia.o
/lib/modules/2.4.20/kernel/drivers/video/nvidia.o: unresolved symbol pm_unregister
/lib/modules/2.4.20/kernel/drivers/video/nvidia.o: unresolved symbol pm_register/lib/modules/2.4.20/kernel/drivers/video/nvidia.o:
Just a thought -- if it's only complaining that nvidia has an unresolved reference to pm_register/pm_unregister, it normally means that you've compiled your kernel without power management support of some kind -- nvidia registers with the power management stuff, I believe, to support monitor power saving features.

Matt
 
Old 08-26-2003, 06:45 PM   #12
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
this is a very old problem, and i think i can safely say
now that the problem was caused by me not properly
compiling modules; in this case, doing rm -R /lib/modules/*
and using make modules && make modules_install and
then recompiling the nvidia kernel would likely solve
the problem.
 
  


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
Quick question about kernel compilation and nvidia... audibel Linux - Software 5 03-12-2005 07:20 PM
gentoo preemptive kernel lyx0m Linux - General 4 10-27-2003 12:10 AM
How to install preemptive kernel patch? sb73542 Linux - Software 6 08-30-2003 06:11 PM
nvidia kernel patch with 2.6.0 likid0 Linux - Software 0 08-15-2003 07:26 AM
kernel compilation; applying patch h/w Linux - Software 11 07-23-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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