[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

HOWTO:2.6.20-1-k7 + nvidia


If you get this message with a nvidia closed driver install:

FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘paravirt_ops’

and you are running Sid's latest Debian stock kernel, then there is a workaround that was published in the nvidia linux forum:

I have reworked the solution for Debian based upon another forum thread:

1. Rebuild the linux-kbuild-2.6.20 .deb:
   a. apt-get update
   b. apt-get build-dep linux-kbuild-2.6.20
      As user:
   c. mkdir linux-kbuild-2.6.20-build
   d. cd linux-kbuild-2.6.20-build
   e. apt-get source linux-kbuild-2.6.20
The linux-kbuild-2.6.20 sources will be downloaded and unpacked into a folder.
      Cd to that folder, then:
f. change linux-kbuild-2.6.20-build/linux-kbuild-2.6-2.6.20/scripts/mod/mod.c and delete lines 1197+1198.
   g. dpkg-buildpackage -uc -us -rfakeroot (the .deb is created)

2. Install the rebuilt linux-kbuild-2.6.20_2.6.20-1_i386.deb
3. apt-get install linux-image-2.6.20-1-<version>
4. apt-get install linux-headers-2.6.20-1-<version>
5. reboot into that kernel.
6. unpack nvidia-driver (using ”-x”)
7. run ./nvidia-installer -K (This will end with an unknown symbol error!)
8. In the /NVIDIA-Linux-x86-1.0-<version>-pkg1/usr/src/nv dir. run:
PARAVIRT_OPS=`grep “D paravirt_ops” /boot/System.map-2.6.20-1-k7 | colrm 9`
9. ld -m elf_i386 —defsym paravirt_ops=0x$PARAVIRT_OPS -r -o nvidia.ko nvidia.o nvidia.mod.o 10. Install nvidia.ko (by copying the module over into /lib/modules/2.6.20-1-<version>/kernel/dricers/video)
11. depmod -a

It looks like this issue will be around for awhile ;-)


Reply to: