How-to Install Nvidia Driver on 2.6.25-2 Debian Kernel

Another big surprise rolled out from the Debian Unstable repository when today I updated my kernel from 2.6.25-1 to 2.6.25-2 - the maintainers have enabled Xen in the non-Xen kernel (linux-image-2.6.25-2-686). The result from this is that Nvidia drivers don’t compile throwing error about Xen enabled kernel.

The solution (if you don’t want to recompile your own kernel) :

As usual backup before executing any of these :)

  1. cd /lib/modules/2.6.25-2-686 (or wherever are your modules)
  2. grep CONFIG_XEN . -Rl | xargs -i sed -i -e ’s/CONFIG_XEN/CONFIG_LUPO/g’ {}
  3. export IGNORE_XEN_PRESENCE=1
  4. sh NVIDIA-Linux-x86-173.08-pkg1.run (or you can use patched 169.12 - http://www.nvnews.net/vbulletin/showthread.php?t=110088 )

Source: linux-image-2.6.25-2-686: nVidia driver fails to compile due to active Xen support

  • Digg
  • Facebook
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Technorati
  • Slashdot
  • Google
  • Furl
  • Reddit
  • SphereIt
  • Spurl
  • YahooMyWeb

Tags: , , ,

<script type="text/javascript"> </script> <script style="display: none;" type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

22 Responses to “How-to Install Nvidia Driver on 2.6.25-2 Debian Kernel (with Xen)”

  1. David Martínez Says:

    Worked for me with AMD-K7, 686 kernel and Beta driver. Many thanks !!

  2. Delirios de un Informático Says:

    Controladores NVIDIA en el kernel 2.6.25 de Debian…

    Desde el lanzamiento de la versión 2.6.25-2 del kernel en Debian, se ha activado Xen por defecto, lo que trae consigo problemas para cierto software propietario como los controladores de NVIDIA o VMWare Player.
    Tras trastear un buen rato y probar v….

  3. ____Jul____ Says:

    Thank you, Peter You are my frickin’ hero :) Although it’s really a dirty hack at least it does what it should do :)

    Oh shall I say worked on Debian Sid with 2.6.25-2-686

  4. Ariel Says:

    You don’t need to do this anymore, as of update 169.12-2 released May 12, 2008.

  5. Peter Says:

    Not installable at this time. Also I prefer latest beta

  6. Gary Says:

    Worked for me using linux-image-2.6.25-2-686-bigmem on a core duo. Card is a 9600GT and I used NVIDIA-Linux-x86-173.08-pkg1.run

    Thanks for the info.

  7. sgfxi Says:

    I implemented this in our debian sid/testing nvidia/fglrx installer script, sgfxi, for the lazy among you.

    Must be run from /usr/local/bin
    cd /usr/local/bin;wget -Nc http://techpatterns.com/sgfxi; chmod +x sgfxi

    sgfxi installs all current nvidia drivers, patches them, detects your card version to install correct driver version, or lets you override it to install some other driver, applies patches if needed, see: sgfxi -h for currently supported drivers.

    It also updates itself automatically every time you run it after you install it.

    sgfxi home page: http://techpatterns.com/forums/about933.html

    To install latest current, just do: sgfxi -c

    Currently the patch is in testing mode, that’s what the -T is for, normally it would all be automatic.

    This is the graphics installer for sidux/smxi

  8. sgfxi Says:

    oh, and it undoes the patch right after the nvidia driver install is done, so your /lib/modules stuff is set back to normal after the nvidia driver is installed.

  9. sgfxi Says:

    ah, sorry, needs: sgfxi -T -c
    to install current latest driver, with composite.

    The -T will probably be not required in a few days after I do some more testing on this.

  10. Cun Zhang Says:

    Thank you for your article!
    I have install nvidia driver.
    I use Nvidia Geforce MX 4000, install NVIDIA-Linux-x86-96.43.05-pkg1.run, patch a diff file from nvnews.com
    and set IGNORE_XEN_PRESENCE=1. Then it is installed successful.

  11. sgfxi Says:

    Everything is debugged now and working fine, no further need for -T option in sgfxi for this issue, just start it with regular arguments now. Thanks for this fix, the method was nicely done, I hadn’t seen that use of grep -Rl before, very useful.

    sgfxi is currently now supporting all current kernels and drivers again, including ati stuff, which won’t be of interest to people in this thread.

  12. Peter Says:

    @sgfxi

    Thanks mate. Why don’t you start a thread on nvnews.net to popularize a bit.

    I will comment there too.

  13. promolic1 Says:

    Hi!!! Where can I find the diff file that you are talking Cun Zhang???
    I have the same problem, and a MX 4000

    Sorry if my English is bad

  14. Peter Says:

    @promolic1
    I presume it is the patch from this page http://www.nvnews.net/vbulletin/showthread.php?t=110088

    @Cun Zhang nvnews.net mate :)

  15. Miguelo Says:

    Thank you!!. Worked for me using debian lenny (testing), linux image 2.6.25-2-686, nvidia 8600GT with NVIDIA-Linux-x86-177.13-pkg1.run, pentium D CPU and intel d945 motherboard.

  16. dan Says:

    thanks sgfxi,
    script works great!

  17. Kiyo Says:

    Ahh sweet accelerated graphics, How I briefly missed you. Thanks a lot:

    Lenny 2.6.25-2-686, nvidia 8600GT, Dell Inspiron 1720

  18. Malpolon.net » Instal·lar driver nvidia al kernel 2.6.25 Says:

    [...] http://blog.creonfx.com/linux/how-to-install-nvidia-driver-on-2625-2-debian-kernel-with-xen (anglès) [...]

  19. ultr Says:

    This patch for 173.14.05 works great for me: http://debian.linux.pl/viewtopic.php?p=62317#62317

    It’s based on a similar idea to your solution, but does not require to rubbish your system.
    You just have to generate a patched version of nVidia installer, and then run it as usual :)

    All bug reports are very welcome - please replay in the above topic (in English or Polish).

  20. Peter Says:

    Well “require to rubbish your system” are strong words after all
    apt-get install –reinstall linux-headers-2.6.25-2-686 fixes reverts back
    and since I have not reviewed your patch I’m sticking with this fix.

    However I suggest posting this patch in nvnews.net and hope it will be merged.

  21. warcry Says:

    This patch is working just fine
    cool mate
    u did it
    :)

  22. NVIDIA no Kernel 2.6.25-2-686 | user@linux:~$ su Says:

    [...] Fonte http://blog.creonfx.com/linux/how-to-install-nvidia-driver-on-2625-2-debian-kernel-with-xen [...]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值