PDA

View Full Version : Patch for Nvidia 185.18.14 to build on 2.6.31 kernel


leigh123linux
2009-06-22, 04:17 PM CDT
I have found this patch on nvnews for Nvidia 185.18.14 to build on 2.6.31 kernel

http://www.nvnews.net/vbulletin/showpost.php?p=2033988&postcount=3





http://leigh123linux.fedorapeople.org/pub/patches/nvidia-185.18.14.patch


Use this command to patch the run file ( make sure the run file and patch are in the same directory)





./NVIDIA-Linux-x86_64-185.18.14-pkg2.run --apply-patch nvidia-185.18.14.patch

typerlc
2009-06-22, 11:02 PM CDT
I have found this patch on nvnews for Nvidia 185.18.14 to build on 2.6.31 kernel

http://www.nvnews.net/vbulletin/showpost.php?p=2033988&postcount=3


This patch didn't work for me. Why, I don't know. I'm x86, and you're x64. Perhaps that's a difference.

For reference, my kernel is: 2.6.31-0.17.rc0.git15.fc12.i686.PAE

Here's my patch that works for me. If you pay close attention, you'll see I've just removed the change in the original patch that was done to os-agp.c. Perhaps this change only happens with a newer version of the kernel. But yum update hasn't pulled it in yet.

Oh well, this works for me... YMMV :)


--- usr/src/nv/nv-i2c.c.orig 2009-06-22 16:21:57.000000000 +0200
+++ usr/src/nv/nv-i2c.c 2009-06-22 16:24:12.000000000 +0200
@@ -218,8 +218,6 @@
#if defined(NV_I2C_ADAPTER_HAS_DEC_USE)
.dec_use = nv_i2c_adapter_dec_use,
#endif
- .client_register = nv_i2c_adapter_register_client,
- .client_unregister = nv_i2c_adapter_unregister_client,
.data = NULL,
};

@@ -241,8 +239,6 @@
.owner = THIS_MODULE,
.algo = &nv_i2c_algo,
.algo_data = NULL,
- .client_register = nv_i2c_adapter_register_client,
- .client_unregister = nv_i2c_adapter_unregister_client,
};

#endif // defined(KERNEL_2_4)

leigh123linux
2009-06-23, 03:36 AM CDT
This patch didn't work for me. Why, I don't know. I'm x86, and you're x64. Perhaps that's a difference.

For reference, my kernel is: 2.6.31-0.17.rc0.git15.fc12.i686.PAE

Here's my patch that works for me. If you pay close attention, you'll see I've just removed the change in the original patch that was done to os-agp.c. Perhaps this change only happens with a newer version of the kernel. But yum update hasn't pulled it in yet.

Oh well, this works for me... YMMV :)


--- usr/src/nv/nv-i2c.c.orig 2009-06-22 16:21:57.000000000 +0200
+++ usr/src/nv/nv-i2c.c 2009-06-22 16:24:12.000000000 +0200
@@ -218,8 +218,6 @@
#if defined(NV_I2C_ADAPTER_HAS_DEC_USE)
.dec_use = nv_i2c_adapter_dec_use,
#endif
- .client_register = nv_i2c_adapter_register_client,
- .client_unregister = nv_i2c_adapter_unregister_client,
.data = NULL,
};

@@ -241,8 +239,6 @@
.owner = THIS_MODULE,
.algo = &nv_i2c_algo,
.algo_data = NULL,
- .client_register = nv_i2c_adapter_register_client,
- .client_unregister = nv_i2c_adapter_unregister_client,
};

#endif // defined(KERNEL_2_4)



I tested it on git18 for x86 & x86_64 .


P.S yum hasn't worked here for a couple of days since they incorrectly rsync'ed the x86_64 repo.

typerlc
2009-06-24, 02:54 AM CDT
Just pulled down the later kernel (git18) from yum. As you said, this does require the full patch.