LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   nVidia TNT2 Driver Error (https://www.linuxquestions.org/questions/slackware-14/nvidia-tnt2-driver-error-772296/)

mkoco 11-29-2009 02:27 PM

nVidia TNT2 Driver Error
 
2 Attachment(s)
Hi all, trying to get 3d support on this old box with a TNT2 video card:
lspci:

01:00.0 VGA compatible controller: nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro] (rev 11)

I downloaded the appropriate drivers from www.nvidia.com, and then ran their installer binary.

Then I edited the xorg.conf to change "nv" > "nvidia".

Everything seems find but "startx" produces:
Code:

dlopen: /usr/lib/xorg/modules/drivers//nvidia_drv.so: undefined symbol: AllocateScreenPrivateIndex
(EE) Failed to load /usr/lib/xorg/modules/drivers//nvidia_drv.so
(EE) Failed to load module "nvidia" (loader failed, 7)
(EE) No drivers available.

I've attached the full xorg log, and the log the nvidia installer produced.

Thanks!

H_TeXMeX_H 11-29-2009 02:31 PM

What version of the driver are you trying to install ? Also, after installing, did you restart the system ?

mkoco 11-29-2009 02:41 PM

The installer filename is - NVIDIA-Linux-x86-71.86.11-pkg1.run

so it looks like 71.86.11 ?. I did not restart, did "modprobe nvidia" though. Will restart now, see if it helps.

mkoco 11-29-2009 03:03 PM

Rebooted machine-- same error.

edit: From what I gather from my reading (http://ubuntuforums.org/showthread.p...61#post8389461) this current xserver is not comptabile with the legacy drivers: 71.86.11.

Oh well..
What would it take to downgrade my xserver? I've never attempted something like that, anyone give a little push in the right direction?

Or any experiencing using "nouveau" drivers with Slackware?

Ilgar 11-29-2009 03:31 PM

AFAIK those cards are not supported anymore, the drivers don't work with the recent kernels (one gets the error you posted). On my old comupter my Pardus 2009 system uses the Nouveau driver for TNT2 and it seemed to work OK. I didn't test the 3D support thoroughly, but at least glxgears was working.

mkoco 11-29-2009 03:54 PM

Thanks Ilgar. I'm trying to compile the nouveau drivers from source, but I'm in way over my head.

Any chance you can help out a little? I've downloaded this package here: http://people.freedesktop.org/~pq/nouveau-drm/

I run make but I'm getting some strange compiler errors.. I probably don't have right dependencies.

This file is included:
Code:

The dependencies for drm.ko, ttm.ko and nouveau.ko can be checked from the
file drivers/gpu/drm/Kconfig. All "depends" and "select" features must be
enabled. If you make e.g. nouveau.ko built-in, all the dependencies must
be built-in, too.

Here is a list of the usual options you might be missing:

DRM depends on
        I2C
        I2C_ALGOBIT

NOUVEAU depends on
        FB
        FRAMEBUFFER_CONSOLE
        BACKLIGHT_LCD_SUPPORT
        BACKLIGHT_CLASS_DEVICE
        FB_CFB_FILLRECT
        FB_CFB_COPYAREA
        FB_CFB_IMAGEBLIT

For Nouveau, the last three may be a problem, since there is no menuconfig
entry to enable them. You can get them by enabling another driver, that
depends on (selects) them, e.g. CONFIG_FB_SAVAGE. It is recommended to
build FB and FRAMEBUFFER_CONSOLE into the kernel if you plan on using KMS.

But I'm not sure what that is. Are those items in CAPS kernel options which must be enabled to compile?

EDIT: Ok, well I think all those kernel options are enabled by looking at the /boot/config file.

But the compiler error still persists..

Ilgar 11-30-2009 03:09 AM

Since you haven't posted the errors I can't tell what the problem is. But it's very much likely to be kernel version incompatibility. Did you follow the guide here? You can try upgrading to a recent kernel or grabbing a Nouveau package with an older date.

the3dfxdude 11-30-2009 08:03 AM

Noveau now requires KMS, so you'll have to recompile your kernel.

mkoco 11-30-2009 09:56 AM

Hey folks..
Precisely, compiling a new kernel.

KMS you say, thought I had enable that in the menuconfig.

But I tried compiling and got the following errors:

Code:

  CC [M]  drivers/gpu/drm/i915/i915_suspend.o
  CC [M]  drivers/gpu/drm/i915/i915_gem.o
  CC [M]  drivers/gpu/drm/i915/i915_gem_debug.o
  CC [M]  drivers/gpu/drm/i915/i915_gem_tiling.o
drivers/gpu/drm/i915/i915_gem_tiling.c: In function 'intel_alloc_mchbar_resource':
drivers/gpu/drm/i915/i915_gem_tiling.c:111: error: implicit declaration of function 'pnp_range_reserved'
make[4]: *** [drivers/gpu/drm/i915/i915_gem_tiling.o] Error 1
make[3]: *** [drivers/gpu/drm/i915] Error 2
make[2]: *** [drivers/gpu/drm] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2

I'll bang around and see if I can find KMS in menuconfig...

My problem with the guide here is down at this portion:

Quote:

If you want KMS support and a fancy framebuffer console, enable

Device drivers -> Graphics support ->
Support for framebuffer devices (CONFIG_FB)
Console display driver support ->
Framebuffer Console support (CONFIG_FRAMEBUFFER_CONSOLE)
In my menuconfig I have no "Console display driver support ->" under "Support for framebugger devices", which is where KMS support is apparently enabled.

Could be the problem? Am I missing some drivers/modules from my kernel source? I made the suggested edits to my kernel source using the "nouveau/linux 2.6/" tree, so that should be fine.

Ilgar 11-30-2009 11:59 AM

Which kernel are you trying to compile? In 2.6.31.5 the help for CONFIG_FRAMEBUFFER_CONSOLE says

Code:

Depends on: HAS_IOMEM && VT && FB
Selected by: DRM_RADEON && HAS_IOMEM && DRM && PCI && !EMBEDDED || DRM_I915 && <choice> && AGP_INTEL && !EMBEDDED

So if you enable DRM_I915 it should be there.

mkoco 11-30-2009 12:33 PM

No, that's not the problem after all.

Code:

Symbol: FRAMEBUFFER_CONSOLE [=y]
 ...
  Selected by: DRM_KMS_HELPER && HAS_IOMEM && DRM && !EMBEDDED || DRM_NOUVEAU && HAS_IOMEM && DRM && !EMBEDDED

And yet the compiler errors persist. Maybe the nouveau tree is just unstable right now..


Btw I'm compiling 2.6.29.6-smp. Maybe I'll try a more recent kernel?

Ilgar 11-30-2009 12:55 PM

I'd strongly suggest a recent one. Even if you manage to compile it with 2.6.29, DRM was just introduced back then. The current kernel code should be more stable.

aocab 11-30-2009 03:44 PM

Quote:

Originally Posted by enkoan (Post 3773564)
Rebooted machine-- same error.

edit: From what I gather from my reading (snip) this current xserver is not comptabile with the legacy drivers: 71.86.11.

Oh well..
What would it take to downgrade my xserver? I've never attempted something like that, anyone give a little push in the right direction?

Or any experiencing using "nouveau" drivers with Slackware?

As far as I know, downgrading is not recommended/supported and the driver is no longer supported with the newer xorg. It can be done however, but no telling how long such a setup will work before something breaks.

HTH

aocab 11-30-2009 03:46 PM

Quote:

Originally Posted by aocab (Post 3774838)
It can be done however,...

see post (6 and 10):
http://forums.scotsnewsletter.com/in...ded&pid=272388

screenshot:
http://forums.scotsnewsletter.com/in...dpost&p=279209

HTH

mkoco 12-02-2009 02:07 AM

Nouvou
 
Well, finally compiled a working kernel (2.6.31.6) with support from nouveau tree. Edited Xorg to "nouveau" instead of "nv", and ran startx.

Code:

(**) |-->Screen "Screen0" (0)
(**) |  |-->Monitor "Monitor0"
(**) |  |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/local" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/CID" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/local" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/CID" does not exist.
        Entry deleted from font path.
(**) FontPath set to:
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic,
        built-ins
(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x1de0
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 5.0
        X.Org XInput driver : 4.0
        X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 7

(--) PCI:*(0:1:0:0) 10de:0028:1092:5a02 rev 17, Mem @ 0xf5000000/16777216, 0xfc000000/33554432
(II) Open ACPI successful (/var/run/acpid.socket)
(II) System resource ranges:
        [0] -1        0        0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1        0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1        0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1        0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1        0        0x0000ffff - 0x0000ffff (0x1) IX[B]
        [5] -1        0        0x00000000 - 0x00000000 (0x1) IX[B]
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: XFree86 Server Extension
        ABI class: XFree86 Server Extension, version 0.1
(II) NVIDIA GLX Module  71.86.11  Thu Jun 25 18:39:46 PDT 2009
(II) Loading extension GLX
(II) LoadModule: "nouveau"
(WW) Warning, couldn't open module nouveau
(II) UnloadModule: "nouveau"
(EE) Failed to load module "nouveau" (module does not exist, 0)
(EE) No drivers available.

Hm, nouveau does not exist.

And yet, lsmod:
Code:

Module                  Size  Used by
nouveau              559008  1
ttm                    32900  1 nouveau
drm_kms_helper        22180  1 nouveau
parport_pc            22276  0
intel_agp              23724  1
3c59x                  32988  0
parport                28200  1 parport_pc
drm                  133580  3 nouveau,ttm,drm_kms_helper
i2c_algo_bit            4672  1 nouveau
ide_cd_mod            24124  0
agpgart                26564  3 ttm,intel_agp,drm

stumped for now, any ideas?


All times are GMT -5. The time now is 04:00 AM.