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.33-rc1 kernel and 195.22 driver (http://www.nvnews.net/vbulletin/showthread.php?t=142794)

Milos_SD 12-18-09 05:36 PM

2.6.33-rc1 kernel and 195.22 driver
 
Can someone help me install 195.22 driver on 2.6.33-rc1 kernel?
I tried that patch from thread about 2.6.32-git5 and 195.22 driver, but it doesn't work.

Dizzle7677 12-18-09 09:04 PM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
Have you tried going in and changing the nvacpi.c manually? Use the --extract-only switch. The patch works with 2.6.33-rc1 and 190.53 for me.
Code:

--- usr/src/nv/nvacpi.c    2009-12-10 18:25:16.711696181 +0300
+++ usr/src/nv/nvacpi.c  2009-12-10 18:26:02.189383388 +0300
@@ -506,7 +506,7 @@

    *handlesPresent = 0;

-    acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, nv_acpi_find_methods, NULL, NULL);
+  acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, nv_acpi_find_methods, NULL, NULL, NULL);


    if (nvif_handle)
    {
@@ -1184,7 +1184,7 @@
            "NAMESPACE INVALID\n");
    }

-    acpi_walk_namespace(ACPI_TYPE_ANY, handle, 1, nv_acpi_walk_callback, acpi_name, NULL);
+    acpi_walk_namespace(ACPI_TYPE_ANY, handle, 1, nv_acpi_walk_callback, acpi_name, NULL, NULL);

    os_free_mem(acpi_name);
 }


zimiq 12-19-09 05:39 AM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
195.22 patch
Code:

--- usr/src/nv/nvacpi.c    2009-12-10 18:25:16.711696181 +0300
+++ usr/src/nv/nvacpi.c  2009-12-10 18:26:02.189383388 +0300
@@ -506,7 +506,7 @@
    *handlesPresent = 0;
 
    acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
-                        ACPI_UINT32_MAX, nv_acpi_find_methods, NULL, NULL);
+                        ACPI_UINT32_MAX, nv_acpi_find_methods, NULL, NULL, NULL);
 
    if (nvif_handle)
    {
@@ -1184,7 +1184,7 @@
            "NAMESPACE INVALID\n");
    }

-    acpi_walk_namespace(ACPI_TYPE_ANY, handle, 1, nv_acpi_walk_callback, acpi_name, NULL);
+    acpi_walk_namespace(ACPI_TYPE_ANY, handle, 1, nv_acpi_walk_callback, acpi_name, NULL, NULL);

    os_free_mem(acpi_name);
 }


FrancoisVal 12-19-09 05:02 PM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
This patch doesn't seems to be sufficient. It seems there are also problems in the conftest.sh file. I have already replaced all occurences of "linux/utsrelease.h" by "generated/utsrelease.h" but it still doesn't work and I still get this error

Code:

make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=x86_64-pc-linux-gnu-gcc clean module                                                                                                                 
If you are using a Linux 2.4 kernel, please make sure                                                                                                       
you either have configured kernel sources matching your                                                                                                     
kernel or the correct set of kernel headers installed                                                                                                       
on your system.                                                                                                                                             

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate 
output directory using either the "KBUILD_OUTPUT" or 
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.

*** Unable to determine the target kernel version. ***

Does anybody know ho to solve this problem ?
Thanks for your help.

Anssi 12-19-09 10:31 PM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
1 Attachment(s)
Attached is a working patch for 190.53 + 2.6.33.

rzx 12-20-09 05:03 AM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
So how does one use this patch?

siddly 12-20-09 07:32 AM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
# ./NVIDIA-Linux-x86_64-195.22-pkg2.run --extract-only
# cd NVIDIA-Linux-x86_64-195.22-pkg2
# patch -p1 < nvidia-2.6.33.patch.txt
# ./nvidia-installer

rzx 12-20-09 07:43 AM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
Yeah, thanks :)

ALLurGroceries 12-20-09 07:58 AM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
Easier:
Code:

./NVIDIA-Linux-x86_64-195.22-pkg2.run --apply-patch nvidia-2.6.33.patch.txt
./NVIDIA-Linux-x86_64-195.22-pkg0-custom.run -Nqa --ui=none

Thanks for the patch. :)

gun26 12-22-09 08:13 PM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
Hmm - I can't get nvidia to build - currently against 2.6.33-git 0225, which is probably equivalent to -rc1-git3. I've tried Anssi's patch from this thread and pavlinuxx's patch from http://www.nvnews.net/vbulletin/show....php?p=2140046 and I still get:

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1

darco 12-23-09 08:25 PM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
Quote:

Originally Posted by ALLurGroceries (Post 2147349)
Easier:
Code:

./NVIDIA-Linux-x86_64-195.22-pkg2.run --apply-patch nvidia-2.6.33.patch.txt
./NVIDIA-Linux-x86_64-195.22-pkg0-custom.run -Nqa --ui=none

Thanks for the patch. :)

I ended up running sudo sh ./NVIDIA-Linux-x86_64-195.22-pkg2-custom.run w/o the added arguments (-Nqa --ui=none) and it worked fine...what do these arguments suppose to do?

Milos_SD 12-25-09 02:26 AM

Re: 2.6.33-rc1 kernel and 195.22 driver
 
I tryed 195.30 on 2.6.33-rc2 and it didn't worked. But this time it tryed to compile module, but failed. I don't have nvidia-installer.log becouse I installed patched 195.22 version right away. But if I remember correctly, errors were in nv-linux.c (it did show up in log a lot).


All times are GMT -5. The time now is 03:22 AM.

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