Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: NVIDIA Driver Installation

  1. #1
    Member registered user
    Join Date
    May 2005
    Posts
    30

    NVIDIA Driver Installation

    Hello everyone.

    I have a Knoppix HD installation. Newest CD with 2.6.11 kernel.

    I tried following many how-to-install-NVIDIA-drivers but failed. I tried following this ftp://download.nvidia.com/XFree86/Li...174/README.txt and http://www.linuxforums.org/tutorials...ial-44103.html and this http://www.knoppix.net/forum/viewtop...947&highlight= tutorial. All of them seem to explain everything in different ways yet I think I'm missing something.

    Let's do it the NVIDIA way.

    I do su in the terminal and then init 3 to get out of x and have a shell. AIght. Then I go to the directory where my NVIDIA driver is. cd /usr/src. I do sh NVIDIA--File--Name--Here. Then I wait and I see a welcome EULA screen. I say yes. Then it prompts me if it should go look for the kernel source online (nvidia.com). I say yes. It prompts me that it didn't find anything and it will use my exsisting kernel, or something like that. I say yes. Then I way 10 seconds or so and the installation menu pops up. It goes up to 40%-90% and then gives me an error message.

    ERROR: Unable to build the NVIDIA kernel module.
    ERROR: Installation has failed. Please see the file
    '/var/log/nvidia-installer.log' for details. You may find suggestions
    on fixing installation problems in the README available on the Linux
    driver download page at www.nvidia.com.
    I say ok. I then go to /var/log to check out what it says.

    Here's the full text.

    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Mon May 30 22:00:28 2005

    option status:
    license pre-accepted : false
    update : false
    force update : false
    expert : false
    uninstall : false
    driver info : false
    no precompiled interface: false
    no ncurses color : false
    query latest driver ver : false
    OpenGL header files : false
    no questions : false
    silent : false
    no backup : false
    kernel module only : false
    sanity : false
    add this kernel : false
    no runlevel check : false
    no network : false
    no ABI note : false
    no RPMs : false
    force tls : (not specified)
    force compat32 tls : (not specified)
    X install prefix : /usr/X11R6
    OpenGL install prefix : /usr
    compat32 install prefix : (not specified)
    installer install prefix: /usr
    utility install prefix : /usr
    kernel name : (not specified)
    kernel include path : (not specified)
    kernel source path : (not specified)
    kernel output path : (not specified)
    kernel install path : (not specified)
    proc mount point : /proc
    ui : (not specified)
    tmpdir : /tmp
    ftp mirror : ftp://download.nvidia.com
    RPM file list : (not specified)

    Using: nvidia-installer ncurses user interface
    -> License accepted.
    -> No precompiled kernel interface was found to match your kernel; would you li
    ke the installer to attempt to download a kernel interface for your kernel f
    rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
    -> No precompiled kernel interface was found to match your kernel; this means
    that the installer will need to compile a new kernel interface.
    -> Kernel source path: '/lib/modules/2.6.11/source'
    -> Performing CC test with CC="cc".
    -> Performing rivafb check.
    -> Cleaning kernel module build directory.
    executing: 'cd ./usr/src/nv; make clean'...
    rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
    agp.o os-interface.o os-registry.o nvidia.mod.o
    rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
    rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
    rm -f -rf .tmp_versions
    -> Building kernel module:
    executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.11/source S
    YSOUT=/lib/modules/2.6.11/build'...

    NVIDIA: calling KBUILD...
    make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.11/build KBUILD_VERBOSE=1 -C /lib/
    modules/2.6.11/source SUBDIRS=/tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg
    1/usr/src/nv modules
    make -C /lib/modules/2.6.11/build \
    KBUILD_SRC=/usr/src/linux-2.6.11 KBUILD_VERBOSE=1 \
    KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1
    /usr/src/nv" \
    -f /usr/src/linux-2.6.11/Makefile modules
    mkdir -p /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_ver
    sions
    make -f /usr/src/linux-2.6.11/scripts/Makefile.build obj=/tmp/selfgz12400/NV
    IDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv
    echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz12400/NV
    IDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv_compiler.h
    cc -Wp,-MD,/tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv.
    o.d -nostdinc -isystem /usr/lib/gcc-lib/i486-linux/3.3.5/include -D__KERNEL_
    _ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.11/include -I/tmp/selfgz12400/N
    VIDIA-Linux-x86-1.0-7174-pkg1/us
    r/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-
    common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferre
    d-stack-boundary=2 -march=i386 -I/usr/src/linux-2.6.11/include/asm-i386/mach
    -default -Iinclude/asm-i386/mach-default -I/tmp/selfgz12400/NVIDIA-Linux-x8
    6-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
    -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -f
    no-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES
    -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL_
    _ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -D
    NV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_
    SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESEN
    T -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_
    GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -DKBUILD_BASENAME=nv -DKBUILD
    _MODNAME=nvidia -c -o /tmp/selfgz12
    400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o /tmp/selfgz12400/NVIDIA-L
    inux-x86-1.0-7174-pkg1/usr/src/nv/nv.c
    In file included from include/linux/list.h:7,
    from include/linux/wait.h:23,
    from include/asm/semaphore.h:41,
    from include/linux/sched.h:19,
    from include/linux/module.h:10,
    from /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
    c/nv/nv-linux.h:46,
    from /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
    c/nv/nv.c:14:
    include/linux/prefetch.h: In function `prefetch_range':
    include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
    metic
    In file included from include/linux/dmapool.h:14,
    from include/linux/pci.h:863,
    from /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
    c/nv/nv-linux.h:69,
    from /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
    c/nv/nv.c:14:
    include/asm/io.h: In function `check_signature':
    include/asm/io.h:242: warning: wrong type argument to increment
    /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
    `nvidia_init_module':
    /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:970: warning
    : `pm_register' is deprecated (declared at include/linux/pm.h:106)
    /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1036: warnin
    g: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
    /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
    `nvidia_exit_module':
    /tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1119: warnin
    g: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
    /bin/sh: scripts/basic/fixdep: No such file or directory
    make[4]: *** [/tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.
    o] Error 1
    make[3]: *** [_module_/tmp/selfgz12400/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
    c/nv] Error 2
    make[2]: *** [modules] Error 2
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [module] Error 1
    make: *** [module] Error 2
    -> Error.
    I also tried downloading a 2.6.11 kernel and putting it into /usr/src/linux-2.6.11/ (but first extracting it). No luck. Any ideas? Yes, I am a Linux noob. Had it only for a couple of days. All I'm trying to do is to get the most out of my NVIDIA 6800.

    Thanks, Matt W.

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    You might want to try to compile a kernel first and boot with it. Here's a howto for it:
    http://newbiedoc.sourceforge.net/tut...ernel-pkg.html
    Basically you do:
    - download full source from kernel.org
    - tar xvjf kernel-source-version.tar.bz2
    - ln -s /usr/src/linux-versionname /usr/src/linux
    - cp /boot/config-2.6.x-some-name /usr/src/linux/.config (check the /boot/filename)
    - cd linux
    - make oldconfig (to read in the Knoppix config, you can also start with defconfig to get a default conf)
    - make menuconfig (clean out unneeded stuff from the kernel)
    - make-kpkg clean
    - make-kpkg --append-to-version=-310505 kernel_image (use any date or name)
    - cd..
    - dpkg -i kernel-image-your_version_name.deb
    - check /etc/lilo.conf to add a section for the new kernel. You can copy the previous one and just change the wmlinuz name according to the new on in /boot/
    - leave the previous kernel in lilo so that you have one that boots
    - lilo -v (to make sure it updated, then reboot and hope it boots)

    When you get the kernel working you can run the nvidia script and add "nv" instead of "nvidia" as driver to /etc/X11/XF86Config-4.

  3. #3
    Member registered user
    Join Date
    May 2005
    Posts
    30
    Wouldn't this be (basically) apt-get install kernel-source-(version here?)

    I'll try doing the above later. Anyways, if I do apt-get install kernel-source-2.6.11 now (the newest version) I get a message saying:

    Reading Package Lists... Done
    Building Dependency Tree... Done
    kernel-source-2.6.11 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 236 not upgraded.

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Well, I haven't tried this on knoppix but I the problem might be that the kernel source isn't for your running kernel unless you apt-got the kernel image as well. Knoppix has several patches to the kernel, which is why I suggested compiling a kernel first and then worrying about nvidia.
    Have you also checked that you have the symlink /usr/src/linux pointing to the kernel source:
    lrwxrwxrwx 1 root src 15 May 31 12:31 linux -> linux-2.6.11.10
    drwxr-xr-x 20 root src 4096 May 31 13:12 linux-2.6.11.10

  5. #5
    Member registered user
    Join Date
    May 2005
    Posts
    30
    Yes, if by symlink you mean a shortcut (the windows way ) then, yes, I have one pointing to the source.


    I was following the above and on the "make oldconfig" I got an error saying:

    HOSTCC scripts/basic/fixdep
    In file included from /usr/include/sys/socket.h:35,
    from /usr/include/netinet/in.h:24,
    from /usr/include/arpa/inet.h:23,
    from scripts/basic/fixdep.c:115:
    /usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
    make[1]: *** [scripts/basic/fixdep] Error 1
    make: *** [scripts_basic] Error 2
    When I extracted the .bz2 file which I got from http://kernel.org/ I got no errors.

    Any ideas? Thanks!

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Do you have linux-kernel-headers installed?
    If no, apt-get it. If yes, try changing line 305 of /usr/include/bits/socket.h from
    "#include <asm/socket.h>"
    to
    "#include </usr/src/linux/include/asm-i386/socket.h>

    IIRC the asm problem isn't new with knoppix so a search on this site will probably yield some results.

  7. #7
    Member registered user
    Join Date
    May 2005
    Posts
    30
    Don't know. I apt-got it...

    # apt-get install linux-kernel-headers

    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following packages will be REMOVED:
    linux-kernel-headers-knoppix
    The following NEW packages will be installed:
    linux-kernel-headers
    0 upgraded, 1 newly installed, 1 to remove and 236 not upgraded.
    Need to get 1377kB of archives.
    After unpacking 7336kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://http.us.debian.org testing/main linux-kernel-headers 2.5.999-test7-bk-17 [1377kB]
    Fetched 1377kB in 9s (147kB/s)
    dpkg: linux-kernel-headers-knoppix: dependency problems, but removing anyway as you request:
    libc6-dev depends on linux-kernel-headers; however:
    Package linux-kernel-headers is not installed.
    Package linux-kernel-headers-knoppix which provides linux-kernel-headers is to be removed.
    (Reading database ... 107388 files and directories currently installed.)
    Removing linux-kernel-headers-knoppix ...
    Selecting previously deselected package linux-kernel-headers.
    (Reading database ... 107330 files and directories currently installed.)
    Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.5.999-test7-bk-17_i386.deb) ...
    Setting up linux-kernel-headers (2.5.999-test7-bk-17) ...
    I'll reboot and see if it changed anything.

    Thanks again!

  8. #8
    Member registered user
    Join Date
    May 2005
    Posts
    30
    apt-get install linux-kernel headers did the job.

    I did the

    # make-kpkg --append-to-version=-310505 kernel_image

    And then got an error. I tried doing it again and about half and hour later it finished doing it. (no errors this time though a lot of warnings)

    I did the

    # dpkg -i kernel-image-your_version_name.deb

    No errors. Went to see what's in the grub config file and it seems like Knoppix added bunch of lines on its own. Here's the file now:

    title Debian GNU/Linux, kernel 2.6.11 Default
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/sda2 ro ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet vga=791
    initrd /boot/initrd.img
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.11.11-310505
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.11.11-310505 root=/dev/sda2 ro ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet vga=791
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.11
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.11 root=/dev/sda2 ro ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet vga=791
    initrd /boot/initrd.img-2.6.11
    savedefault
    boot

    ### END DEBIAN AUTOMAGIC KERNELS LIST
    title Windows 2K/XP/2003 (sda1)
    chainloader (hd0,0)+1
    The first one's the old one that I always used. The second one is the new one.The third ones a backup (I guess) and the fourth entry is Windows.

    Reboot.

    Grub menu comes up. I select and boot from Debian GNU/Linux, kernel 2.6.11.11-310505.

    error message [kernel panic]

    audit (somenumbershere) initialized
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (8,2)


    Reboot.

    I select the 'old' entry and boot from that. Works. Guess what though? Instead of waiting for knoppix to load for 30 seconds, like I always do, it booted in 10-15.

    What did just happened?

    Back to the real problem though: installing the nvidia drivers. I'll try doing it now... Maybe it will work? Who knows...

  9. #9
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    For making a new kernel boot:
    1) Make sure you compiled filesystem support (probably ext3) in the kernel, not as a module
    2) Try making an initrd: mkinitrd -o /boot/initrd-2.6.11.11-310505.img and add it to menu.lst
    3) Don't know what errors you had when compiling, but the safest way is now to remove the source, untar it again, make oldconfig and compile anew.

    I would wait with nvidia until you have a working, running kernel with a matching source.
    The nice part with all this is that when you manage to get a kernel compiled for your computer, future kernels will be easy and fast to compile by using the same config.

  10. #10
    Member registered user
    Join Date
    May 2005
    Posts
    30
    I'm pretty sure my Knoppix Linux is on raiserfs (which is also a default during the Knoppix installer). On default, if you do make menuconfig, does it check support for raiserfs?

    I tried doing
    # mkinitrd -o /boot/initrd-2.6.11.11-310505.img

    but I got an error saying:

    /usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed
    FATAL: Module sd_mod not found.
    WARNING: This failure MAY indicate that your kernel will not boot!
    but it can also be triggered by needed modules being compiled into
    the kernel.
    I noticed that I get the same error (FATAL: Module sd_mod not found.) while booting with my default kernel. It's not fatal though, it still manages to load the whole linux (there are some more errors but it does it so fast I could never write it down.)

    Thanks. I'll keep trying to do it. I'll post back if I can get anything to work or if I have a question or two.

    One more thing: what is a .deb kernel source file? (If I search for "debian kernel source download 2.6.11" on google, it will give me a link to http://packages.debian.org/unstable/...-source-2.6.11) Why am I asking? Knoppix is based off of Debian, right? Is this a source code that I could compile? Does it matter which one I choose?

    Does it matter if I extract the code in the kde with some program or should I always do it in shell with the tar?

    Thanks again.

Page 1 of 3 123 LastLast

Similar Threads

  1. NVidia driver installation
    By zuki2000 in forum Hardware & Booting
    Replies: 2
    Last Post: 12-25-2009, 02:16 AM
  2. nVidia driver installation
    By SnidelyWhiplash in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 06-14-2006, 06:41 PM
  3. Nvidia Installation
    By Rink in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 07-02-2004, 08:54 PM
  4. nvidia driver ?
    By nIght in forum General Support
    Replies: 3
    Last Post: 10-03-2003, 09:28 PM
  5. Nvidia driver in hdd...
    By aryakori in forum Hardware & Booting
    Replies: 1
    Last Post: 07-26-2003, 06:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


WD Green SATA HDD - 3TB picture

WD Green SATA HDD - 3TB

$59.99



Seagate Barracuda ST10000DM005 10TB 256MB SATA 6Gb/s 3.5

Seagate Barracuda ST10000DM005 10TB 256MB SATA 6Gb/s 3.5" Internal Hard Drive

$153.99



WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN picture

WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN

$49.99



WD 1TB Elements SE, Portable External Hard Drive - WDBEPK0010BBK-WESN picture

WD 1TB Elements SE, Portable External Hard Drive - WDBEPK0010BBK-WESN

$44.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$79.99



Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5

Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive

$93.88



Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5

Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5" Enterprise Hard Drive

$99.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST 0F27352 10TB 3.5

HGST 0F27352 10TB 3.5" SAS 7200 RPM 12Gb/s Hard Drive 100% #73 v

$65.00



Western Digital WD10JUCT 1TB 2.5

Western Digital WD10JUCT 1TB 2.5" SATA 3Gb/s 5400 RPM 16MB Laptop Hard Drive

$17.98