NVidia 그래픽 드라이버 패치하는 법 - kernel 2.6.x

andysheep의 이미지

오늘 2.6로 커널 빌드하고 XFree86 4.3.0 설치하는 도중 NVidia 드라이버 설치에서 막혔습니다. N*.run 파일 실행시키면 modversions.h 파일이 없다는 에러를 내면서 빌드 중단이 되더군요.

2.4.23 소스와 2.6의 모듈관련한 소스 구조가 많이 바뀌었습니다.

제가 사용하는 그래픽 카드는 NVidia GeForce2 입니다.

X에 설정 프로그램에서 제공하는 NVidia 드라이버를 선택하니 다행히 X가 동작을 합니다. GeForce가 드라이머 리스트에 나와있더군요.

아래는 참고로 그래픽 드라이버 패치한 후에 설치하는 방법을 붙였습니다.

NVidia graphics driver:
Note: This HowTo was made with 4496 driver version, there is 4620 beta drivers aviable, they can be found here
Important note!: "Review the NVIDIA Software License and documentation. You will need to accept this license prior to downloading any files." you can find the license here and the ReadMe for 4496 here

1. Make backups of important data!
Backup all your X configuration files and other important data

2. Download the drivers and the patches.
Download the package from NVidia website and the patches from minion.de
# wget http://download.nvidia.com/XFree86/Linux-x86/1.0-4496/NVIDIA-Linux-x86-1.0-4496-pkg2.run
...
# wget http://minion.de/files/NVIDIA_kernel-1.0-4496-2.6.diff
...
# wget http://minion.de/files/NVIDIA-Linux-x86-1.0-4496-pkg%23.tar.gz

3. Unpack the driver package.
Now, you can unpack the driver package, you probably need to do a chmod change first:
# chmod 755 NVIDIA-Linux-x86-1.0-4496-pkg2.run
# ./NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only

4. Apply patches.
Now you need to apply patches:
# cd NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv/
# cat ../../../../NVIDIA_kernel-1.0-4496-2.6.diff | patch -p1

5. Select Makefile.
Now, you have two choises, you can select the NVidia Makefile or the kbuild Makefile. I selected the kbuild Makefile:
# ln -s Makefile.kbuild Makefile

6. Install new nvidia-installer.
Now you need to untar NVIDIA-Linux-x86-1.0-4496-pkg#.tar.gz in NVIDIA-Linux-x86-1.0-4496-pkg2/ :
# cd ../../../
# tar xzvf ../NVIDIA-Linux-x86-1.0-4496-pkg#.tar.gz

7. It's still not too late..
It's still not too late to backup all your important data.

8. Install the driver.
Now you must become root to install the drivers.
You have two ways of installing the drivers: With the nvidia installer
# su root
...
# ./nvidia-installer
with 'make install':
# make install
Note: You need to close your X session if you are upgrading from older NVidia drivers.
I will not describe the installation process because it's pretty easy.
If you have never installed the driver before you can read installation help from the readme

Forums: 
wowcode의 이미지

위에서 적힌대로 빌드하고 설치하니 X가 떴습니다.

그런데 shutdown 하고 reboot하면 /dev/nvidiactl 을 open 할 수 없다고 나오네요..

그후 다시 make install 하면 또 X 뜨구요..

혹시 다른 분들은 정상으로 동작하나요?

youlsa의 이미지

chmod 666 /dev/nvidia0
chmod 666 /dev/nvidiactl

이렇게 해결했습니다.

=-=-=-=-=-=-=-=-=
http://youlsa.com

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.