Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Xwin Problem in rh7.2 (nvidia)

  • 27-02-2002 9:58am
    #1
    Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭


    i decided to trying to play q3 in linux the other day,
    i was informed that i need a nvidia kernel and GLX rpm installed.
    i went and got them - and installed them
    reconfiged XF86config-4
    restarted x

    but i get no X

    problems like

    [root@twister sbin]# up2date-nox -i
    Gdk-ERROR **: X connection to twister:10.0 broken (explicit kill or server shutdown).


Comments

  • Closed Accounts Posts: 1,295 ✭✭✭Meh


    (EE) NVIDIA(0): Failed to initialize the NVdriver kernel module!
    You do have the kernel module loaded, right? What does lsmod say?


  • Closed Accounts Posts: 5,563 ✭✭✭Typedef


    MiCR0
    from the errorlog supplied
    (EE) NVIDIA(0): Failed to initialize the NVdriver kernel module!

    (EE) NVIDIA(0): *** Aborting ***

    (II) UnloadModule: "nvidia"

    (II) UnloadModule: "vgahw"

    (II) Unloading /usr/X11R6/lib/modules/libvgahw.a

    (EE) Screen(s) found, but none have a usable configuration.

    Fatal server error:
    no screens found

    When reporting a problem related to a server crash, please send
    the full server output, not just the last messages.
    This can be found in the log file "/var/log/XFree86.0.log".
    Please report problems to xfree86@xfree86.org.

    This is your error, make sure the nvkernel.o(if that is what it is called) is in your modules path, start red hat in cli mode and as root modprobe for this module.
    /or something\


  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    [root@twister sbin]# /sbin/modprobe NVdriver
    modprobe: Can't locate module NVdriver


  • Closed Accounts Posts: 1,295 ✭✭✭Meh


    Originally posted by MiCr0
    [root@twister sbin]# /sbin/modprobe NVdriver
    modprobe: Can't locate module NVdriver
    find /lib/modules -name NVdriver.o
    find /lib/modules -name NVdriver.o.gz
    If it's not in the /lib/modules, you'll need to copy it over there.


  • Closed Accounts Posts: 5,563 ✭✭✭Typedef


    cd /usr/lib/modules/your_kernel_version

    grep -l -r -s NVkernel *

    if not then there must be some spurious location in your filesystem that the module is located

    possibly

    cd /usr/src/rpms

    grep -l -r -s NVkernel *
    else
    start looking in likely places for said module

    locate NVkernel.o might find it too?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    [root@twister i686]# locate NVkernel.o
    [root@twister i686]#


    i don't think its being installed by the rpms


  • Closed Accounts Posts: 1,295 ✭✭✭Meh


    The filename is NVdriver.o (or possible NVdriver.o.gz).
    What does "rpm -ql <name of kernel driver rpm>" say?


  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    [root@twister rpms]# rpm -ivh NVIDIA_kernel-1.0-2313.rh72up.athlon.rpm

    Preparing... ########################################### [100%]
    1:NVIDIA_kernel ########################################### [100%]
    modprobe: Can't locate module NVdriver

    NVdriver installed successfully

    [root@twister rpms]# rpm -ivh NVIDIA_kernel-1.0-2313.rh72up.athlon.rpm
    Preparing... ########################################### [100%]
    1:NVIDIA_kernel ########################################### [100%]
    modprobe: Can't locate module NVdriver

    NVdriver installed successfully

    [root@twister rpms]# rpm -ivh NVIDIA_GLX-1.0-2313.i386.rpm
    Preparing... ########################################### [100%]
    --- WARNING!!
    libglx.a
    libGLcore.a
    libGL.a
    libGL.so.1.2.030402
    --- The above file(s) possibly belong to a conflicting MESA rpm.
    --- They have been renamed to xxx.<originalFile>.RPMSAVE to
    --- avoid conflicting with the files contained within this
    --- package.
    --- Please see /usr/share/doc/NVIDIA_GLX-1.0/README, section
    --- "(sec-05) FREQUENTLY ASKED QUESTIONS" for more details.
    1:NVIDIA_GLX ########################################### [100%]


    [root@twister rpms]# rpm -ql NVIDIA_kernel-1.0-2313.rh72up
    /lib/modules/2.4.7-10/kernel/drivers/video/NVdriver


  • Closed Accounts Posts: 1,295 ✭✭✭Meh


    Right...seems that the module is there all right, just doesn't have the ".o" extension. Try renaming it to "NVdriver.o" and then "modprobe NVdriver".

    Also double-check that you are running kernel 2.4.7-10 -- use "uname -a".


  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    Linux twister 2.4.9-21 #1 Thu Jan 17 13:35:37 EST 2002 i686 unknown

    i tried downloading a later verion of the rpm
    [we'll check when i get home ;) ]


  • Advertisement
  • Closed Accounts Posts: 1,026 ✭✭✭sisob


    don't rename the driver - if it's gonna work at all it needs to be called NVdriver.

    Try rebooting the computer after install (worked for me).

    do a locate NVdriver. to make sure that it's there

    modprobe NVdriver will return "not found" if the kernel and the driver are incompatible.


  • Closed Accounts Posts: 296 ✭✭moist


    Originally posted by MiCr0
    [root@twister i686]# locate NVkernel.o
    [root@twister i686]#


    locate will only work after updatedb had been run,
    which is usually nightly/weekly from cron/periodic.


  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    hmm
    went to the src.rpms files
    tried to install them

    got

    [root@twister NVIDIA_kernel-1.0-2314]# make install
    rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h NVdriver
    cc -c -Wall -Wno-unknown-pragmas -Wno-multichar -O -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86_=1 -Di386=1 -DUNIX -DLINUX
    -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHL
    EVEL=2314 -I. -I/usr/src/linux/include nv.c
    In file included from nv.c:22:
    /usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
    /usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
    /usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
    /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
    /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
    make: *** [nv.o] Error 1
    [root@twister NVIDIA_kernel-1.0-2314]#

    currently using latest kernel -31

    any ideas what i need to change?


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel
    

    Just a quick question for ya dave, are the source for your current kernel on your system? i think that the kernel module may need .h files from your current config to compile properly.

    check that before you do anything else :)

    Regards,

    paul


  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    might be a good spot to start
    thanks paul

    //david


Advertisement