Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-02-08, 05:13 PM   #1
Naveen
Registered User
 
Join Date: Apr 2008
Posts: 4
Question MM Kernel Mod Compilation Issue (linux-2.6.25-rc8-mm1, 169.12+) [patch was supplied]

EDIT: Have not tried Valdis's patch yet, will report back at some point hopefully!

Hi All, thanks for having me here at your forums!

I have received a compile time error from the .run NVIDIA installer on an {EDIT: MM VARIANT}-rc kernel. I patched the 2 installers with the patch from the sticky here and ran both with expert mode install option. Both produced similar looking nvidia-installer logfile output, however, I'm no expert in that and that's what I'm looking for your help on here please.

My system; Arch Linux with stock and custom (2.6.24.4-rt4) kernels. I built an 169.12 nvidia.ko module against 2.6.24.4-rt4 successfully for this realtime kernel I'm running now. My kernel builds were done outside the Arch packaging system. Default Arch kernel .config was modified heavily/quickly

I built a 2.6.25-rc8-mm1 kernel using the recent patch and then tried to build against this. Error was different before patching the stock .run file. 171.06 also fails for me ?at?

/tmp/selfgz5080/NVIDIA-Linux-x86_64-169.12-pkg2-custom/usr/src/nv/nv.c

I will attach the logs for my 169.12 patched installer, with the 171.06 patched installer (was looking to try the glyph cache out and see if 2 or 4 setting works for me). Either one may answer my question. Any other info I can also add in further posts below.

This one looks technical to me folks I don't have experience with the make output really at the moment to properly parse it fully. Please give me a hand here Back on 169.12 on a 2.6.24-rt4 for now.

Thanks for your time !!! Havent done this kind of thing for a while ,,,
Attached Files
File Type: log nvidia-installer.log (11.1 KB, 97 views)
File Type: log nvidia-installer-17x.xx.log (11.1 KB, 87 views)

Last edited by Naveen; 04-05-08 at 01:06 AM.
Naveen is offline   Reply With Quote
Old 04-02-08, 06:34 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: User kernel Module Compile Error (linux-2.6.25-rc8-mm1 and 171.06/169.12) [technical]

Please note that -mm* kernels are experimental in nature and not every change included in them makes it to mainline kernels. I'll keep an an eye on this particular problem, but for the moment, I recommend that you use a stable (or at least more stable) kernel (pre-)release.
zander is offline   Reply With Quote
Old 04-02-08, 06:44 PM   #3
Naveen
Registered User
 
Join Date: Apr 2008
Posts: 4
Default Re: User kernel Module Compile Error (linux-2.6.25-rc8-mm1 and 171.06/169.12) [techni

Thanks for your quick reply Zander ..... Appreciated .

EDIT: Thanks Valdis, API Change hey? Fair enough!

Last edited by Naveen; 04-05-08 at 01:01 AM.
Naveen is offline   Reply With Quote
Old 04-04-08, 10:09 PM   #4
valdis
Registered User
 
Join Date: Apr 2003
Posts: 48
Default Re: User kernel Module Compile Error (linux-2.6.25-rc8-mm1 and 171.06/169.12) [technical]

Here's a totally-ugly but works-for-me patch for that particular specific-to-mm API change. Note in particular that the check against linux_version_code is busticated, and *will* do the wrong thing if you build it against a clean 2.6.25 tree when it's released. Feel free to change it to #if 0/#else/#endif instead.
Attached Files
File Type: txt patch.25-rc8-mm1.txt (897 Bytes, 125 views)
valdis is offline   Reply With Quote
Old 04-05-08, 05:06 PM   #5
Naveen
Registered User
 
Join Date: Apr 2008
Posts: 4
Arrow linux-2.6.25-rc8-mm1 patch(es) result for nvidia kernel module driver.

Hi Valdis , ,

I had a go with your patch (patched my 171.06-custom with it, pointing the patch towards usr/src/nv.c or similar....) but unfortunately the kernel module build still failed. I'll add my nvidia-installer log to this post to help out.... No need for this to be a priority in any way though If we can't sort it out in this fashion I'll revisit this idea later.

Thanks for your help so far though!
Attached Files
File Type: log nvidia-installer-result.log (10.5 KB, 95 views)
Naveen is offline   Reply With Quote
Old 04-07-08, 12:39 AM   #6
valdis
Registered User
 
Join Date: Apr 2003
Posts: 48
Default Re: User kernel Module Compile Error (linux-2.6.25-rc8-mm1 and 171.06/169.12) [technical]

Well, *that* was dumb of me. There were multiple API changes for 25-rc8-mm1, and I managed to mis-diff my source tree and thus fail to get the *whole* patch in.

The changes were: (1) the change from .nopage to .fault in struct vm_operations_struct, which hit nv.c down around lines 1800-1850. (2) The removal of proc_root_driver - workaround in nv.c around line 613 (note that I *think* this one is safe for backporting without version checking), and (3) the change from ->memory to ->pages (workaround in os-agp.c). This of course assumes you've applied Zander's 25-rc8 patch first....
Attached Files
File Type: txt new-patch.25-rc8-mm1.txt (1.5 KB, 117 views)
valdis is offline   Reply With Quote
Old 04-07-08, 09:30 AM   #7
Naveen
Registered User
 
Join Date: Apr 2008
Posts: 4
Default Re: User kernel Module Compile Error (linux-2.6.25-rc8-mm1 and 171.06/169.12) [technical]

Hello Valdis ,

I'm gonna be off the net sometime soon so not sure how much more time I myself will be spending on this. However, I tried this new patch and I wasn't able to make my module again :/

I enclose a copy of terminal output during patching process (including command line string) and another nvidia-installer.log . Glad you were able to get it working anyroad. Please take a look if you have a chance - I'm quite new at this and may have missed something basic.

Ok Cheers Valdis! Both files will be showing below...
Attached Files
File Type: log nvidia-installer-valdispatch2.log (12.6 KB, 99 views)
File Type: log NVIDIA-Linux_x86_64_171.06-valdiss-patching.log (5.4 KB, 94 views)
Naveen is offline   Reply With Quote
Reply


Thread Tools

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
Forum Jump


All times are GMT -5. The time now is 12:57 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.