Compilation of nvidia-kernel-source with kernel 3.11.0-rc5 amd64
Josep Lladonosa
jlladono at gmail.com
Wed Aug 14 17:34:04 UTC 2013
Hello,
I have a machine with an intel (HDA 4000, in CPU) GPU and a nvidia GPU
GTX675MX.
Default installation runs under intel GPU. I am trying to setup the system
to use the nvidia (it detects intel by default).
I got it running for X, with modeset=0 for the i915 driver (otherwise I
only got a black screen with cursor in the top left corner) and following
the instructions in Debian Wiki.
To compile driver I also needed to add the following patch in
/usr/src/modules/nvidia-kernel/debian/patches:
------------------------------------------------------------------------------------------------------
--- a/nv-linux.h
+++ b/nv-linux.h
@@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
#endif
#if !defined(NV_VMWARE)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
+#define NV_NUM_PHYSPAGES get_num_physpages()
+#else
#define NV_NUM_PHYSPAGES num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS() current->tgid
#define NV_IN_ATOMIC() in_atomic()
#define NV_LOCAL_BH_DISABLE() local_bh_disable()
---------------------------------------------------------------------------------------------------------
and add a reference to it in
/usr/src/modules/nvidia-kernel/debian/patches/series
(in fact I did not know it if was this way, but I tried and worked)
What happens now is that logging out from X to get the lightdm again, or my
try to switch to text console is not successful (blank -bright- screen).
--
--
Salutacions...Josep
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20130814/05a79fe1/attachment.html>
More information about the pkg-nvidia-devel
mailing list