nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   NVIDIA drivers and linux-2.5.31 (http://www.nvnews.net/vbulletin/showthread.php?t=685)

eltarvag 08-13-02 09:37 AM

NVIDIA drivers and linux-2.5.31
 
Hello!

When compiling the kernel modules I get an error saying that these NVIDIA drivers does not support 'Development' versions of the kernel.

I tried to edit nv-linux.h which seemed to check what kernel that I use - no sucess.

My question is: Is there any way to get the NVIDIA drivers to work with my development kernel ( 2.5.31 ) and if so; how?

regards

Thunderbird 08-13-02 09:46 AM

The 2.5x tree is the development tree. The kernel has changed a lot. In the past it was very similar to 2.4.x but internally a lot of stuff changed. Using a lot of patches it might be possible to run the module again but it is not recommended to use 2.5.x. For normal users it is useless. Only developers should use the dev kernels. Major changes (new drivers ..) most of the time get backports. Also the new kernel won't include that much changes for normal desktop users but more for servers to let linux scale better.

There are some old patches here you can try: http://thuis.zwanebloem.nl/nvidia.

And again don't use it if you aren't a developer. (developers can create the needed patch themself ..)

eltarvag 08-13-02 09:59 AM

Thanks for the url.

Yes, I know that development kernels is for development people.

BruceCadieux 08-13-02 06:19 PM

Dowload the source RPMs.

then rpm -rebuild NVIDIA_kernel******.rpm

it will build a new rpm for your kernel, and put it in /usr/src/linux/******

The Nvidia readme has very easy instructions on how to do this, I have a couple differnet kernels and it has worked with all of them.

eltarvag 08-13-02 07:42 PM

Quote:

Originally posted by BruceCadieux
Dowload the source RPMs.

then rpm -rebuild NVIDIA_kernel******.rpm

it will build a new rpm for your kernel, and put it in /usr/src/linux/******

The Nvidia readme has very easy instructions on how to do this, I have a couple differnet kernels and it has worked with all of them.

I think you misunderstood a bit - The kernel I refered to is the latest beta kernel - not a stable one. The second thing is that I don't run a distro that uses RPMs at all :) So even if the RPMs could work, it wouldn't help. Thanks for the reply anyway.

rol 08-14-02 02:47 PM

Hello,

I've spent some time trying to get this running...
#error is a problem, and I did two things :
- apply the mentionned patch,
but this still leas to error @ insmod :
- cli,
- save_flags
- restore_flags
are no more present in Linux-2.5.30.

So, I did another correction :
1 - I've added :
#include <linux/spinlock.h>

static spinlock_t NV_lock = SPIN_LOCK_UNLOCKED;
after all the #include, and I changed :
unsigned int
osCli(unsigned int flags)
{
/* save_flags(flags);
cli(); */
spin_lock_irqsave(&NV_lock, flags);
return flags;
}

unsigned int
osSti(unsigned int flags)
{
/* restore_flags(flags); */
spin_unlock_irqrestore(&NV_lock, flags);
return flags;
}

This is now compiling and insmod'ing, but when starting X,
the screen goes black and the machine freezes...

Ctrl-Alt-Sup is the way back to normality :-(

If someone has some other clue, U'r welcome !

Paul

rol 08-14-02 03:19 PM

BTW, I wanted to give the traces, and I forgot them.... Here they are (of course, to get that, I crashed my machine :-(

NVIDIA_GLX-1.0-2960# startx -- -verbose 9 -logverbose 9


XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Build Operating System: Linux 2.4.8 i686 [ELF]
Module Loader present
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Aug 14 21:13:44 2002
(==) Using config file: "/etc/X11/XF86Config"
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
...

(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x00000000, mode1Res1 = 0x80000000
...

(II) PCI: End of PCI scan
(II) LoadModule: "scanpci"
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
(II) UnloadModule: "scanpci"
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(II) Host-to-PCI bridge:
(II) PCI-to-ISA bridge:
(II) Host-to-PCI bridge:
(II) PCI-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (-1,0,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus 0 I/O range:
[0] -1 0x00000000 - 0x0000ffff (0x10000) IX[b]
(II) Bus 0 non-prefetchable memory range:
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
(II) Bus 0 prefetchable memory range:
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
(II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x0c (VGA_EN is set)
(II) Bus 1 I/O range:
(II) Bus 1 non-prefetchable memory range:
[0] -1 0xd0000000 - 0xd1ffffff (0x2000000) MX[b]
(II) Bus 1 prefetchable memory range:
[0] -1 0xd2000000 - 0xd3ffffff (0x2000000) MX[b]
(II) Bus -1: bridge is at (0:7:0), (0,-1,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus -1 I/O range:
(II) Bus -1 non-prefetchable memory range:
(II) Bus -1 prefetchable memory range:
(II) Bus -1: bridge is at (0:0:0), (-1,-1,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus -1 I/O range:
[0] -1 0x00000000 - 0x0000ffff (0x10000) IX[b]
(II) Bus -1 non-prefetchable memory range:
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
(II) Bus -1 prefetchable memory range:
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
(--) PCI:*(1:0:0) NVidia Riva Ultra 64 rev 21, Mem @ 0xd0000000/24, 0xd2000000/25

....

(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1

....

(II) resource ranges after probing:
[0] -1 0xffe00000 - 0xffffffff (0x200000) MX[b](B)
[1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[2] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[3] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[4] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[5] -1 0xd5001000 - 0xd5001fff (0x1000) MX[b]
[6] -1 0xc0000000 - 0xcfffffff (0x10000000) MX[b]
[7] -1 0xd2000000 - 0xd3ffffff (0x2000000) MX[b](B)
[8] -1 0xd0000000 - 0xd0ffffff (0x1000000) MX[b](B)
[9] 0 0x000a0000 - 0x000affff (0x10000) MS[b]
[10] 0 0x000b0000 - 0x000b7fff (0x8000) MS[b]
[11] 0 0x000b8000 - 0x000bffff (0x8000) MS[b]
[12] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[13] -1 0x00000000 - 0x000000ff (0x100) IX[b]
[14] -1 0x0000e800 - 0x0000e8ff (0x100) IX[b]
[15] -1 0x0000e400 - 0x0000e4ff (0x100) IX[b]
[16] -1 0x0000e000 - 0x0000e007 (0x8) IX[b]
[17] -1 0x0000dc00 - 0x0000dc1f (0x20) IX[b]
[18] -1 0x0000d800 - 0x0000d83f (0x40) IX[b]
[19] -1 0x0000d400 - 0x0000d41f (0x20) IX[b]
[20] -1 0x0000d000 - 0x0000d00f (0x10) IX[b]
[21] 0 0x000003b0 - 0x000003bb (0xc) IS[b]
[22] 0 0x000003c0 - 0x000003df (0x20) IS[b]
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "on"
(==) NVIDIA(0): Using HW cursor
(==) NVIDIA(0): video key set to default value of 0x101fe
(--) NVIDIA(0): Chipset : "RIVA TNT2 Model 64"
(--) NVIDIA(0): ChipID : 0x10de002d
(--) NVIDIA(0): ChipRev : 0x15
(--) NVIDIA(0): Linear framebuffer at 0xD2000000
(--) NVIDIA(0): MMIO registers at 0xD0000000
(--) NVIDIA(0): Found 1 CRTC on board
(--) NVIDIA(0): VideoRAM: 32768 kBytes
(--) NVIDIA(0): Display 0: maximum pixel clock at 8 bpp: 250 MHz
(--) NVIDIA(0): Display 0: maximum pixel clock at 16 bpp: 250 MHz
(--) NVIDIA(0): Display 0: maximum pixel clock at 32 bpp: 215 MHz
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.4
(II) NVIDIA(0): --- EDID Information for Display 0 ---
(II) NVIDIA(0): Manufacturer: HEI Model: 770 Serial#: 191
(II) NVIDIA(0): Year: 1999 Week: 35
(II) NVIDIA(0): EDID Version: 1.1
(II) NVIDIA(0): Analog Display Input, Input Voltage Level: 0.700/0.300 V
(II) NVIDIA(0): Sync: Separate Composite
(II) NVIDIA(0): Max H-Image Size [cm]: horiz.: 32 vert.: 24
(II) NVIDIA(0): Gamma: 2.00
(II) NVIDIA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
....

(**) NVIDIA(0): Validated modes for Display Device 0:
(**) NVIDIA(0): Default mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0 Hz
(**) NVIDIA(0): Default mode "1024x768": 94.5 MHz, 68.7 kHz, 85.0 Hz
(**) NVIDIA(0): Default mode "800x600": 56.3 MHz, 53.7 kHz, 85.1 Hz
(**) NVIDIA(0): Default mode "640x480": 36.0 MHz, 43.3 kHz, 85.0 Hz
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
(--) NVIDIA(0): Display dimensions: (32, 24) cm
(--) NVIDIA(0): DPI set to (101, 108)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 ANSI C Emulation, version 0.1
(II) NVIDIA(0): Enabling RENDER extension
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/X11R6/lib/modules/libxaa.a
(II) Module xaa: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC? No, I don't.
(II) resource ranges after preInit:
[0] 0 0xd2000000 - 0xd3ffffff (0x2000000) MX[b]
[1] 0 0xd0000000 - 0xd0ffffff (0x1000000) MX[b]
[2] -1 0xffe00000 - 0xffffffff (0x200000) MX[b](B)
[3] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[4] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[5] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[6] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[7] -1 0xd5001000 - 0xd5001fff (0x1000) MX[b]
[8] -1 0xc0000000 - 0xcfffffff (0x10000000) MX[b]
[9] -1 0xd2000000 - 0xd3ffffff (0x2000000) MX[b](B)
[10] -1 0xd0000000 - 0xd0ffffff (0x1000000) MX[b](B)
[11] 0 0x000a0000 - 0x000affff (0x10000) MS[b](OprD)
[12] 0 0x000b0000 - 0x000b7fff (0x8000) MS[b](OprD)
[13] 0 0x000b8000 - 0x000bffff (0x8000) MS[b](OprD)
[14] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[15] -1 0x00000000 - 0x000000ff (0x100) IX[b]
[16] -1 0x0000e800 - 0x0000e8ff (0x100) IX[b]
[17] -1 0x0000e400 - 0x0000e4ff (0x100) IX[b]
[18] -1 0x0000e000 - 0x0000e007 (0x8) IX[b]
[19] -1 0x0000dc00 - 0x0000dc1f (0x20) IX[b]
[20] -1 0x0000d800 - 0x0000d83f (0x40) IX[b]
[21] -1 0x0000d400 - 0x0000d41f (0x20) IX[b]
[22] -1 0x0000d000 - 0x0000d00f (0x10) IX[b]
[23] 0 0x000003b0 - 0x000003bb (0xc) IS[b](OprU)
[24] 0 0x000003c0 - 0x000003df (0x20) IS[b](OprU)
(II) NVIDIA(0): Memory and vga registers mapped


All times are GMT -5. The time now is 01:08 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.