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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-20-04, 04:38 AM   #1
rgadsdon
Registered User
 
Join Date: Sep 2004
Posts: 1
Default Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

I have been running 6111 with 'vanilla' Linux 2.6.9-rc2 with no problems (both compiles and runs OK), but changes to /asm-i386/page.h in 2.6.9-rc2-bk5 breaks the compile/install:

ld -m elf_i386 -r -o /home/xxxxx/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.ko /home/xxxxx/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.o /home/xxxxx/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
nvidia: Unknown symbol __VMALLOC_RESERVE
FATAL: Error inserting nvidia (/lib/modules/2.6.9-rc2-bk5/kernel/drivers/video/nvidia.ko): Unknown symbol in module, or unknown parameter (see dmesg)
make[1]: *** [package-install] Error 1
make: *** [install] Error 2

An ugly workaround is to copy the nvidia.ko module from a 'vanilla' 2.6.9-rc2 build and install with #modprobe ... --force

Robert Gadsdon.
rgadsdon is offline   Reply With Quote
Old 09-20-04, 05:13 AM   #2
Cartman
Registered User
 
Join Date: Jun 2004
Posts: 52
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

Don't expect NVidia driver to compile with kernel snapshots.
Cartman is offline   Reply With Quote
Old 09-20-04, 02:04 PM   #3
zyphr
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

download the following patch to revert the vmalloc changes, and answer yes for all questions.

http://linux.bkbits.net:8080/linux-2...WYpg3ykLWayPnA

bk5 running fine here =)
zyphr is offline   Reply With Quote
Old 09-21-04, 12:35 PM   #4
catimimi
Registered User
 
Join Date: Jan 2004
Posts: 52
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

You are right : it works but it breaks the vmalloc patch.

The problem is only a missing symbol export.
Try the following patch, it works great. I'll submit it.

----------------------------------------------------------------------------------

--- a/arch/i386/mm/init.c 2004-09-21 19:26:29.564841416 +0200
+++ b/arch/i386/mm/init.c 2004-09-21 17:38:25.000000000 +0200
@@ -41,6 +41,7 @@
#include <asm/sections.h>

unsigned int __VMALLOC_RESERVE = 128 << 20;
+EXPORT_SYMBOL(__VMALLOC_RESERVE);

DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
unsigned long highstart_pfn, highend_pfn;

---------------------------------------------------------------------------------

Michel.
catimimi is offline   Reply With Quote
Old 09-21-04, 04:16 PM   #5
zyphr
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

I can't get your patch to work for me
I get this:

------
shuttle:/usr/src/linux# patch -p1 < ../vmalloc_nvidia
patching file arch/i386/mm/init.c
patch: **** malformed patch at line 6: unsigned int __VMALLOC_RESERVE = 128 << 20;
------

also I had to rename

--- a/arch/i386/mm/init.c 2004-09-21 19:26:29.564841416 +0200
+++ b/arch/i386/mm/init.c 2004-09-21 17:38:25.000000000 +0200

into

--- linux/arch/i386/mm/init.c 2004-09-21 19:26:29.564841416 +0200
+++ linux/arch/i386/mm/init.c 2004-09-21 17:38:25.000000000 +0200

I can't code so obviously I did something very wrong
zyphr is offline   Reply With Quote
Old 09-22-04, 03:49 PM   #6
catimimi
Registered User
 
Join Date: Jan 2004
Posts: 52
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

It works at me,

cp vmalloc_nvidia /usr/src/linux/vmalloc_nvidia
cd /usr/src/linux
patch -p1 < vmalloc_nvidia

it is a patch against bk6

Michel
catimimi is offline   Reply With Quote
Old 09-23-04, 12:36 PM   #7
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

http://ngc891.blogdns.net/index.php?...nvidia-drivers
Dragoran is offline   Reply With Quote
Old 09-23-04, 02:48 PM   #8
catimimi
Registered User
 
Join Date: Jan 2004
Posts: 52
Exclamation Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

Att : Dragoran

Thanks for the tip, I tried something like that earlier but I don't agree with the patch.

Why ? because bk3 introduced the possibility for the user to change the
value of __VMALLOC_RESERVE at boot. The patch defines a constant value for this symbol. What would happen if the kernel value and the nv value are different ?

It is the reason why I patched the kernel in order to get the actual value of
__VMALLOC_RESERVE !!

Am I wrong ?

Michel.
catimimi is offline   Reply With Quote

Old 09-30-04, 04:14 PM   #9
firephoto
Registered User
 
Join Date: Aug 2004
Posts: 7
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

I get the __VMALLOC_RESERVE error with 2.6.9-rc3, is there any info on when a new driver with a fix might be released? This problem will be present when the stable kernel is released so this issue for some will become an issue for many fairly soon it seems.
firephoto is offline   Reply With Quote
Old 10-02-04, 01:28 AM   #10
vnpenguin
GeForce4
 
Join Date: Mar 2003
Location: Belgium
Posts: 28
Send a message via Yahoo to vnpenguin
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

I have the same error about __VMALLOC_RESERVE with 2.6.9-rc3
__________________
Vietnamese Open Source Software
vnpenguin is offline   Reply With Quote
Old 10-02-04, 01:46 AM   #11
catimimi
Registered User
 
Join Date: Jan 2004
Posts: 52
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

I have the same error, but since anyway we compile the kernel, I apply my patch and it works.

----------------------------------------------------------------------------------

--- a/arch/i386/mm/init.c 2004-09-21 19:26:29.564841416 +0200
+++ b/arch/i386/mm/init.c 2004-09-21 17:38:25.000000000 +0200
@@ -41,6 +41,7 @@
#include <asm/sections.h>

unsigned int __VMALLOC_RESERVE = 128 << 20;
+EXPORT_SYMBOL(__VMALLOC_RESERVE);

DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
unsigned long highstart_pfn, highend_pfn;

---------------------------------------------------------------------------------

Michel
catimimi is offline   Reply With Quote
Old 10-02-04, 11:39 AM   #12
vnpenguin
GeForce4
 
Join Date: Mar 2003
Location: Belgium
Posts: 28
Send a message via Yahoo to vnpenguin
Default Re: Linux 2.6.9-rc2-bk5 + Driver 6111 install fails

Oh, i'll try it now
Thnx
__________________
Vietnamese Open Source Software
vnpenguin 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
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 08:27 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
How to install my nvdia driver... danyal_r NVIDIA Linux 2 10-11-02 12:06 PM
Getting bizarre errors with driver install clutch NVIDIA Linux 1 09-14-02 09:53 PM
download problem with linux NVIDIA driver packages Timo NVIDIA Linux 7 07-31-02 09:22 AM

All times are GMT -5. The time now is 04:23 PM.


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