Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia and kernel 2.6.6-rc3-mm1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
vmc
n00b
n00b


Joined: 30 Mar 2004
Posts: 29
Location: Leiria - PT

PostPosted: Sat May 01, 2004 4:00 pm    Post subject: nvidia and kernel 2.6.6-rc3-mm1 Reply with quote

Recently I upgrade my kernel from 2.6.5-rc2-mm3 to 2.6.6-rc3-mm1 and my nvidia driver stopped to work.

Code:
runner linux# modprobe nvidia
FATAL: error inserting nvidia (/lib/modules/2.6.6-rc3-mm1/video/nvidia.ko): Invalid module format


Output from dmesg:
Code:
No module found in object


So. I recall that 4K stacks problem and did the following:

1) Edit the file /usr/src/linux/arch/i386/Kconfig and modified the 4KStacks section

Code:
config 4KSTACKS
   bool "Use 4Kb for kernel stacks instead of 8Kb"
   default n
   help
     If you say Y here the kernel will use a 4Kb stacksize for the
     kernel stack attached to each process/thread. This facilitates
     running more threads on a system and also reduces the pressure
     on the VM subsystem for higher order allocations. This option
     will also use IRQ stacks to compensate for the reduced stackspace.



2) Recompile the kernel (make mrproper before that) with the option
Code:
[] Use 4Kb for kernel stacks instead of 8Kb

unchecked


3) umerge nvidia-kernel and nvidia-glx (and removed the driver from /lib/modules/2.6.6-rc3-mm1/video/nvidia.ko)

4) Reboot the systema with the new recompiled kernel

5) emerged nvidia-kernel (1.0.5336-r2) and nvidia-glx

6) Runned opengl-update nvidia

And after that I still have the same error.

Any suggestion? I don't want to go back to kernel 2.6.5-rc2-mm3 (some problems with uhci and hotplug)

Heres my partial .config
Code:
....
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y

....
#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
CONFIG_EARLY_PRINTK=y
CONFIG_DEBUG_SPINLOCK_SLEEP=y
# CONFIG_FRAME_POINTER is not set
# CONFIG_4KSTACKS is not set
# CONFIG_SCHEDSTATS is not set



Any help would be appreciate. Thanx
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sat May 01, 2004 4:06 pm    Post subject: Reply with quote

You need to either revert the patch or use a newer nvidia driver:
NVIDIA-Linux-x86-1.0-5341-pkg1.run
_________________
linux: #232767
Back to top
View user's profile Send private message
vmc
n00b
n00b


Joined: 30 Mar 2004
Posts: 29
Location: Leiria - PT

PostPosted: Sat May 01, 2004 4:30 pm    Post subject: Reply with quote

ikaro wrote:
You need to either revert the patch or use a newer nvidia driver:
NVIDIA-Linux-x86-1.0-5341-pkg1.run


Thanx for the quick reply. Two questions:

1) How to revert the patch?

2) Where can I get NVIDIA-Linux-x86-1.0-5341-pkg1.run?
I didn't found it in portage or nvidia site
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sat May 01, 2004 4:38 pm    Post subject: Reply with quote

i can only say search the forums, i don't remember the actual place to get them, but there are threads with links in them
_________________
linux: #232767
Back to top
View user's profile Send private message
vmc
n00b
n00b


Joined: 30 Mar 2004
Posts: 29
Location: Leiria - PT

PostPosted: Sat May 01, 2004 5:52 pm    Post subject: Reply with quote

I searched in gentoo forums and in google for NVIDIA-Linux-x86-1.0-5341-pkg1.run and I can't find this driver version.
From nvidia site the latest driver available is NVIDIA-Linux-x86-1.0-5336-pkg1.run

Now. About reverting the patch? Which patch do u mean?
The
move-__this_module-to-modpost.patch


I tried to revert this patch but I' come with the following errors:
Code:
cd /usr/src/linux
patch -R -p1 < move-__this_module-to-modpost.patch
patching file include/linux/module.h
patching file scripts/Makefile.modpost
Unreversed patch detected!   Ignore -R? [n] n
Apply anyway? [n] y
Hunk #1 FAILED at 68.
1 out of 1 hunk FAILED -- saving rejects to file scripts/Makefile.modpost.rej
patching file scripts/modpost.c
Hunk #1 succeeded at 352 (offset 9 lines).
Hunk #2 FAILED at 477.
1 out of 2 hunks FAILED -- saving rejects to file scripts/Makefile.modpost.rej


Any suggestion?
Back to top
View user's profile Send private message
vmc
n00b
n00b


Joined: 30 Mar 2004
Posts: 29
Location: Leiria - PT

PostPosted: Sat May 01, 2004 6:13 pm    Post subject: Reply with quote

Problem solved.

Instead of using the ebuild from portage, I used the installer from nvidia and everything works smoothly.

Thanx for the help.
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sun May 02, 2004 7:34 am    Post subject: Reply with quote

see Bug # 48030 for newer ebuild options and more info on this
"nvidia/new kernel module handling issue"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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