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

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-05-06, 11:19 PM   #1
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default 2.6.15-git1 build problems with 8178

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.
Attached Files
File Type: txt log.txt (19.3 KB, 533 views)
siddly is offline   Reply With Quote
Old 01-06-06, 12:28 AM   #2
snaboofypop
Registered User
 
Join Date: Aug 2003
Posts: 29
Default 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
snaboofypop is offline   Reply With Quote
Old 01-06-06, 07:58 AM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: 2.6.15-git1 build problems with 8178

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
Attached Files
File Type: txt NVIDIA_kernel-1.0-8178-1444349.diff.txt (397 Bytes, 2880 views)
zander is offline   Reply With Quote
Old 01-06-06, 12:13 PM   #4
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 2.6.15-git1 build problems with 8178

Solved, Thanks.
siddly is offline   Reply With Quote
Old 01-07-06, 10:06 AM   #5
MaKa
Registered User
 
Join Date: Jan 2006
Posts: 3
Default 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'
MaKa is offline   Reply With Quote
Old 01-07-06, 02:00 PM   #6
snaboofypop
Registered User
 
Join Date: Aug 2003
Posts: 29
Default 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!
snaboofypop is offline   Reply With Quote
Old 01-14-06, 12:41 AM   #7
llmmix
Registered User
 
Join Date: Jan 2006
Posts: 1
Default Re: 2.6.15-git1 build problems with 8178

Thanks it solved!
llmmix is offline   Reply With Quote
Old 01-14-06, 10:30 PM   #8
ellson
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: 2.6.15-git1 build problems with 8178

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.
Attached Files
File Type: log nvidia-installer.log (10.0 KB, 446 views)
ellson is offline   Reply With Quote

Old 01-14-06, 10:49 PM   #9
ellson
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: 2.6.15-git1 build problems with 8178

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.
Attached Files
File Type: txt nv-linux.h.diff.txt (433 Bytes, 536 views)
ellson is offline   Reply With Quote
Old 01-15-06, 08:18 AM   #10
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: 2.6.15-git1 build problems with 8178

@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.
Attached Files
File Type: txt NVIDIA_kernel-1.0-8178-1449645.diff.txt (468 Bytes, 921 views)
zander is offline   Reply With Quote
Old 03-22-06, 03:53 PM   #11
sonic74
Registered User
 
Join Date: Mar 2006
Location: Germany
Posts: 2
Smile 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

Last edited by sonic74; 03-22-06 at 04:03 PM.
sonic74 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Diablo 3 Wizard build guide News Archived News Items 0 05-30-12 03:40 PM
Any problems with this build? Zeta CPUs, Motherboards And Memory 8 05-15-12 11:52 PM
Diablo 3 build guide: Barbarian, Demon Hunter, Monk, Witch Doctor and Wizard News Archived News Items 0 05-12-12 01:00 PM

All times are GMT -5. The time now is 09:53 AM.


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