Nvidia Logo

How to compile Nvidia kernel modules on 2.6.20+ with paravirt_ops enabled

May 2, 2007 · 0 comments

in Linux

If you try to compile the nvidia kernel module on 2.6.20 or higher kernels that have paravirt_ops enabled (like the Debian kernels), you will run into a problem – it’ll complain that a non-GPL compatible license is using the GPL-only code paravirt_ops. I finally found a workaround (other than building the kernel without paravirt ops) – thanks to this page, you can just modify your kbuild source to get things to work. Here’s a quote from that site:

Delete the following two lines (1197-1198) in file modpost.c:

if (!mod->gpl_compatible)
check_for_gpl_usage(exp->export, basename, exp->name);

I rebuilt the 2.6.21 linux-kbuild package for Debian with the above changes, and lo and behold, it works! Thanks!

Possibly related posts (auto-generated):

  1. Debian Lenny on Nehalem-based systems
  2. debian on an inspiron 6000
  3. DRBD accepted to mainline kernel for 2.6.33!
  4. new debian i386 libc6 packages for xen
  5. full suspend/resume *finally* working on my inspiron 6000

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: