Nvidia driver In Debian linux-2.6.21 Kernel

Source: Internet
Author: User
In Debian linux-2.6.21 kernel download nvidia driver-Linux Release Technology-Debian information, below is read details. First, modify linux-kbuild-2.6.21:

# Apt-get build-dep linux-kbuild-2.6.21
$ Mkdir linux-kbuild-2.6.21-build
$ Linux-kbuild-2.6.21-build cd
$ Apt-get source linux-kbuild-2.6.21

At this point, the relevant files of the linux-kbuild-2.6.21 will appear in the linux-kbuild-2.6.21-build directory, and there is a decompressed linux-kbuild-2.6-2.6.21 directory, modify the linux-kbuild-2.6-2.6.21/scripts/mod/modpost. c. Find the fatal function before and after about 1177 rows, comment out the fatal function and save the file.

Generate the modified linux-kbuild and install

$ Dpkg-buildpackage-uc-us-rfakeroot
# Apt-get install linux-kbuild-2.6.21

Second, install the corresponding package:

# Apt-get install nvidia-kernel-common nvidia-kernel-legacy-71xx-source linux-headers-2.6.21-1-k7

To install these two packages, you should also automatically install the packages related to debhelper. If you find that the package is missing after compilation, complete the package by yourself. After the nvidia-kernel-legacy-71xx-source is installed, a nvidia-kernel-legacy-71xx-source.tar.gz will appear in/usr/src, and be decompressed to any place. Go to the parsed modules/nvidia-kernel-legacy-71xx/nv directory, modify Makefile. kbuild, in

EXTRA_CFLAGS + =-Wall-Wimplicit-Wreturn-type... Add later

PARAVIRT_OPS: = $ (shell grep "D paravirt_ops"/boot/System. map-$ (shell uname-r) | colrm 9)
EXTRA_LDFLAGS: =-defsym paravirt_ops = 0x $ (PARAVIRT_OPS)

Then, install the README. Debian method to generate the deb package.

Go to modules/nvidia-kernel-legacy-71xx

# KSRC =/usr/src/linux-headers-2.6.21-1-k7 KVERS = 2.6.21-1-k7 debian/rules binary_modules
# Dpkg-I nvidia-kernel-legacy-71xx-2.6.21-1-k7_i386.deb

Finally, install nvidia-glx
# Apt-get install nvidia-glx-legacy-71xx

Modify/etc/X11/xorg. conf, or dpkg-reconfigure xserver-xorg. Use the nvidia driver instead.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.