nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   2.6.15-git1 build problems with 8178 (http://www.nvnews.net/vbulletin/showthread.php?t=62889)

siddly 01-05-06 10:19 PM

2.6.15-git1 build problems with 8178
 
1 Attachment(s)
Works OK with 2.6.15, but changes to 2.6.15-git1 causes build to fail. See attached log. Mandriva 2006.0 x86, gcc-4.0.1.

snaboofypop 01-05-06 11:28 PM

Re: 2.6.15-git1 build problems with 8178
 
Yes. I had been using the 8174 driver, but when I built 2.6.15-git1 (my previous kernel build was 2.6.15-rc7-git6), it failed (as the first poster stated). My build failed as the first posters had, with file src/nv/os-interface.c line 1375 expected to have a structure with a member rlim (but alas, rlim is no longer there), and so the driver install went kaput! I found and tried the new driver (81.78) but it too fails to install on 2.6.15-git1 (it does work well on 2.6.15-rc7-git6 though). I took a few good looks at patch-2.6.15-git1 to see if I could find which patch broke things, but I didn't find rlim mentioned anywhere in the patch (even as a --line). There are a few changes to usb video, but nothing to agp. My best guess is the change to linux/videodev.h (but I haven't tested yanking individual patches and I'm only about 10% confident about my guess).
'pop

zander 01-06-06 06:58 AM

Re: 2.6.15-git1 build problems with 8178
 
1 Attachment(s)
It looks like this problem was introduced by Sam Ravnborg's recent KBUILD changes (see http://marc.theaimsgroup.com/?l=linu...9507221614&w=2), which cause a number of compile tests performed by the NVIDIA driver's conftest.sh to fail. The attached patch should help with this problem (the steps needed to patch the Linux/x86-64 driver are analogous to those below):

# sh /path/to/NVIDIA-Linux-x86-1.0-8178-pkg0.run --extract-only
# cd NVIDIA-Linux-x86_64-1.0-8178-pkg0
# patch -p0 < /path/to/NVIDIA_kernel-1.0-8178-1444349.diff.txt
# ./nvidia-installer -n

siddly 01-06-06 11:13 AM

Re: 2.6.15-git1 build problems with 8178
 
Solved, Thanks.

MaKa 01-07-06 09:06 AM

Re: 2.6.15-git1 build problems with 8178
 
I had also such problem. The patch solved it.
I add few lines from log to this post. I hope, it will be help people searching for this.

Linux 2.6.15 git2

In file included from
/usr/src/modules/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:26:
/usr/src/modules/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/usr/src/modules/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:In function 'os_set_mlock_capability':
/usr/src/modules/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:1375: error: 'struct task_struct' has no member named 'rlim'

snaboofypop 01-07-06 01:00 PM

Re: 2.6.15-git1 build problems with 8178
 
I finally tried the patch against 2.6.15-git3 (too busy this week to try earlier). Everything is working great (GLX apps, tv tuner and full screen/overscan, etc). All running at full speed, no problems. Thanks!

llmmix 01-13-06 11:41 PM

Re: 2.6.15-git1 build problems with 8178
 
Thanks it solved!

ellson 01-14-06 09:30 PM

Re: 2.6.15-git1 build problems with 8178
 
1 Attachment(s)
The patch (NVIDIA_kernel-1.0-8178-1444349.diff.txt) worked for me on Fedora i686 with kernel-smp-2.6.15-1.1853_FC5, but not on x86_64.

ellson 01-14-06 09:49 PM

Re: 2.6.15-git1 build problems with 8178
 
1 Attachment(s)
Apparently page_to_pfn() and pfn_to_page() are real functions in the x86_64 kernel and that "#if !defined(page_to_pfn)" doesn't detect them.

The attached patch hacks around the problem.

zander 01-15-06 07:18 AM

Re: 2.6.15-git1 build problems with 8178
 
1 Attachment(s)
@ellson: thank you for your report. Your patch looks correct for Linux 2.6, but would break support for some older Linux 2.4 kernels; the attached patch removes the unused page_to_pfn() definition and restricts that of pfn_to_page() to Linux/x86 2.4.

sonic74 03-22-06 02:53 PM

Re: 2.6.15-git1 build problems with 8178
 
thanks for the patch NVIDIA_kernel-1.0-8178-1444349.diff.txt! it works for version 7174, too, the last one that works with my rusty old TNT :)


All times are GMT -5. The time now is 11:58 AM.

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