Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] nvidia-drivers don't work with newest kernels?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Dec 28, 2006 3:10 pm    Post subject: [solved] nvidia-drivers don't work with newest kernels? Reply with quote

Hi there,
I need your help with a new kernel, namely 2.6.20-rc2-mm1 / 2.6.20-rc2:

everytime I'm trying to insert the nvidia.ko module it says:

FATAL: Error inserting nvidia (/lib/modules/2.6.20-rc2-mm1/video/nvidia.ko): Unknown symbol in module, or known parameter (see dmesg)

and dmesg tells me:
nvidia: module license 'NVIDIA' taints kernel
nvidia: Unknown symbol _proxy_pda
nvidia: no version for "struct_module" found: kernel tainted.
nvidia: no version magic, tainting kernel.
nvidia: Unknown symbol _proxy_pda

Thanks in advance for your help

Update:

ok, alright, solved it,

this only affects gcc-4.3.0
:roll:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Dec 29, 2006 5:53 pm    Post subject: Reply with quote

just building mm as I post , luckily I took the precaution of switching to 4.1.1 first.

Anything else to note?
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Dec 29, 2006 8:12 pm    Post subject: Reply with quote

Gentree wrote:
just building mm as I post , luckily I took the precaution of switching to 4.1.1 first.

Anything else to note?
8)


no, I think, that should be all :wink:

what puzzles me is that the module / nvidia-drivers works even when built with another compiler than with the compiler used for the kernel :lol:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Dec 29, 2006 9:02 pm    Post subject: Reply with quote

thx,

fuse fails to build on '20 , yet more data structure changes , so another round of breaking everything with fs in the name. :roll:

I've also noticed that nvidia-drivers does not always need reinstalling between different kernels. I guess it just depends on how similar certain things are. This may be an indirect benefit of modular X but I've never tried to tie it down.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Dec 30, 2006 6:47 pm    Post subject: Reply with quote

I've managed to patch fuse to get it to work in '20 but I can never work out what the hell to do with diff to get something that emerge can use.

here's the guts of what I produced by renaming the stuff that compiled and diffing against the current source.

Code:
diff -au fuse-2.6.1-fixed/work/fuse-2.6.1/kernel/dev.c fuse-2.6.1/work/fuse-2.6.1/kernel/dev.c
--- fuse-2.6.1-fixed/work/fuse-2.6.1/kernel/dev.c 2006-12-30 18:52:07.000000000 +0100
+++ fuse-2.6.1/work/fuse-2.6.1/kernel/dev.c 2006-11-19 17:02:34.000000000 +0100
@@ -43,7 +43,7 @@

 struct fuse_req *fuse_request_alloc(void)
 {
- struct fuse_req *req = kmem_cache_alloc(fuse_req_cachep, GFP_KERNEL);
+ struct fuse_req *req = kmem_cache_alloc(fuse_req_cachep, SLAB_KERNEL);
  if (req)
    fuse_request_init(req);
  return req;

diff -au fuse-2.6.1-fixed/work/fuse-2.6.1/kernel/file.c fuse-2.6.1/work/fuse-2.6.1/kernel/file.c
--- fuse-2.6.1-fixed/work/fuse-2.6.1/kernel/file.c  2006-12-30 19:00:13.000000000 +0100
+++ fuse-2.6.1/work/fuse-2.6.1/kernel/file.c  2006-10-20 19:33:56.000000000 +0200
@@ -501,6 +501,7 @@
    spin_unlock(&fc->lock);

    if (offset == 0 && to == PAGE_CACHE_SIZE) {
+     clear_page_dirty(page);
      SetPageUptodate(page);
    }
  }

diff -au fuse-2.6.1-fixed/work/fuse-2.6.1/kernel/inode.c fuse-2.6.1/work/fuse-2.6.1/kernel/inode.c
--- fuse-2.6.1-fixed/work/fuse-2.6.1/kernel/inode.c 2006-12-30 18:52:26.000000000 +0100
+++ fuse-2.6.1/work/fuse-2.6.1/kernel/inode.c 2006-11-28 15:04:45.000000000 +0100
@@ -52,7 +52,7 @@
  struct inode *inode;
  struct fuse_inode *fi;

- inode = kmem_cache_alloc(fuse_inode_cachep, GFP_KERNEL);
+ inode = kmem_cache_alloc(fuse_inode_cachep, SLAB_KERNEL);
  if (!inode)
    return NULL;



I've got fuse installed but I'd like to have it available in overlay and post the pack as a bug report.

Can you tell me the right proceedure to create a patch for portage?

TIA.
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum