Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-04-07, 05:03 PM   #1
roddierod
Registered User
 
Join Date: Sep 2005
Posts: 12
Default FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

I have 7-Current running xorg modular. I've switched the X11BASE variable to /usr/local/, since in the future this is the plan for the release of xorg 7 with FreeBSD.

I've built and installed the nvidia driver and applies the patch. Now, I did have to move somethings to /usr/local/lib/xorg/modules manually.

Anyway, the NVIDIA spalsh screen starts then it core dumps. I see no errors in the log but here it is....
Attached Files
File Type: log Xorg.log (32.1 KB, 240 views)
roddierod is offline   Reply With Quote
Old 01-04-07, 05:38 PM   #2
clash rocker
Registered User
 
Join Date: Apr 2003
Location: Blue Mtns. Australia
Posts: 12
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Why don't you fix up those warnings (search for WW in your log) relating to those incorrect font paths. Don't know if that will solve the problem thou.
clash rocker is offline   Reply With Quote
Old 01-04-07, 06:51 PM   #3
adamk75
Registered User
 
Join Date: Nov 2006
Posts: 228
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

You say that you've set X11BASE to /usr/local yet your logfile shows the server loading modules from /usr/X11R6/lib/xorg/modules... In fact, nothing is loaded from your /usr/local hierarchy. It seems to me that your xorg is not built the way you think it is :-)

Perhaps deinstalling those ports and reinstalling them (without setting X11BASE), and then reinstalling the nvidia driver, might be your best bet.

FWIW, I'm running the exact same setup (7.2.0 RC3 on -CURRENT), but I'm using 9746 instead of 9631. You could also try upgrading the driver.

Adam
adamk75 is offline   Reply With Quote
Old 01-05-07, 06:39 AM   #4
roddierod
Registered User
 
Join Date: Sep 2005
Posts: 12
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Thanks for the replies.

@adamk75 the only problem with is that /usr/X11R6/lib doesn't is a symlink to /usr/local/lib. I did that because I could get certain things to re-install after changing the X11 base. I have been rebuilding everything since Xmas

I tried the 9746 driver also and got the same results, I switched to 9631 that was the one in the ports.

I'll remove the symlinks latter today and see what happens next...
roddierod is offline   Reply With Quote
Old 01-05-07, 09:40 PM   #5
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Setting your ModulePath (Files section) to /usr/local/lib/xorg/modules will load everything from the correct place. Don't forget to correct the fontpaths too.. The NVidia drivers still install into /usr/local/lib/modules/drivers and /usr/local/lib/modules/extensions though. You can move these by hand or add a ModulePath /usr/local/lib/modules..

Try to get a basic setup working with the Xorg nv driver then switch to the nvidia driver.

Last edited by SirDice; 01-05-07 at 09:53 PM.
SirDice is offline   Reply With Quote
Old 02-07-07, 07:25 PM   #6
roddierod
Registered User
 
Join Date: Sep 2005
Posts: 12
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

OK, I finally got the 9746 version of the driver to work on current with modular xorg. With the patch from Zanders post.

I have to modify a few of the make files to place the extensions and drivers in /usr/local/lib/xorg/modules/drivers and /usr/local/lib/xorg/modules/extensions.

The only problem I have now is the GLX module doesn't seem to load, but I'm not sure what the problem is. According to the log it look to me like if fails but then is loaded, not sure.

The card is an XFX GeForce 7800GTX with two displays using TwinView.
One Display is an LG 20" widescreen and the other is a Viewsonic 19", both LCD screens.

Here is the portion of the xorg.o.log.

Code:
(II) Setting vga for screen 0.
(**) 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 "NvAGP" "2"
(**) NVIDIA(0): Option "RenderAccel" "True"
(**) NVIDIA(0): Option "TwinView" "1"
(**) NVIDIA(0): Option "MetaModes" "CRT: nvidia-auto-select +1680+0, DFP: 1680x1050 +0+0"
(**) NVIDIA(0): Option "AllowGLXWithComposite" "True"
(**) NVIDIA(0): Option "TripleBuffer" "True"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): TwinView enabled
(**) NVIDIA(0): Use of AGPGART requested
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
(EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
(EE) NVIDIA(0):     you continue to encounter problems, Please try
(EE) NVIDIA(0):     reinstalling the NVIDIA driver.
(II) NVIDIA(0): NVIDIA GPU GeForce 7800 GTX at PCI:2:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 262144 kBytes
(--) NVIDIA(0): VideoBIOS: 05.70.02.11.18
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 7800 GTX at PCI:2:0:0:
(--) NVIDIA(0):     ViewSonic VA902b (CRT-0)
(--) NVIDIA(0):     LG L203WTX (DFP-1)
(--) NVIDIA(0): ViewSonic VA902b (CRT-0): 400.0 MHz maximum pixel clock
(--) NVIDIA(0): LG L203WTX (DFP-1): 155.0 MHz maximum pixel clock
(--) NVIDIA(0): LG L203WTX (DFP-1): Internal Single Link TMDS
(II) NVIDIA(0): Display Devices found referenced in MetaMode: CRT-0, DFP-1
(II) NVIDIA(0): Assigned Display Devices: CRT-0, DFP-1
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "CRT:nvidia-auto-select+1680+0,DFP:1680x1050+0+0"
(II) NVIDIA(0): Virtual screen size determined to be 2960 x 1050
(--) NVIDIA(0): DPI set to (85, 86); computed from "UseEdidDpi" X config
(--) NVIDIA(0):     option
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
	[0] 0	0	0xb1000000 - 0xb1ffffff (0x1000000) MX[b]
	[1] 0	0	0xc0000000 - 0xcfffffff (0x10000000) MX[b]
	[2] 0	0	0xb2000000 - 0xb2ffffff (0x1000000) MX[b]
	[3] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
	[4] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[b]
	[5] -1	0	0x000c0000 - 0x000effff (0x30000) MX[b]
	[6] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[b]
	[7] -1	0	0xd0700000 - 0xd07fffff (0x100000) MX[b]E
	[8] -1	0	0xd0300000 - 0xd03fffff (0x100000) MX[b]E
	[9] -1	0	0xd0400000 - 0xd05fffff (0x200000) MX[b]E
	[10] -1	0	0xd0100000 - 0xd01fffff (0x100000) MX[b]E
	[11] -1	0	0xd0200000 - 0xd02fffff (0x100000) MX[b]E
	[12] -1	0	0xd0001000 - 0xd0001fff (0x1000) MX[b]E
	[13] -1	0	0xd0000000 - 0xd0000fff (0x1000) MX[b]E
	[14] -1	0	0xb0100000 - 0xb0103fff (0x4000) MX[b]E
	[15] -1	0	0xb0104000 - 0xb0107fff (0x4000) MX[b]E
	[16] -1	0	0xb0005000 - 0xb0005fff (0x1000) MX[b]E
	[17] -1	0	0xb0004000 - 0xb0004fff (0x1000) MX[b]E
	[18] -1	0	0xb0003000 - 0xb0003fff (0x1000) MX[b]E
	[19] -1	0	0xb0002000 - 0xb0002fff (0x1000) MX[b]E
	[20] -1	0	0xb0001000 - 0xb0001fff (0x1000) MX[b]E
	[21] -1	0	0xb0000000 - 0xb0000fff (0x1000) MX[b]E
	[22] -1	0	0xb1000000 - 0xb1ffffff (0x1000000) MX[b](B)
	[23] -1	0	0xc0000000 - 0xcfffffff (0x10000000) MX[b](B)
	[24] -1	0	0xb2000000 - 0xb2ffffff (0x1000000) MX[b](B)
	[25] 0	0	0x000a0000 - 0x000affff (0x10000) MS[b](OprD)
	[26] 0	0	0x000b0000 - 0x000b7fff (0x8000) MS[b](OprD)
	[27] 0	0	0x000b8000 - 0x000bffff (0x8000) MS[b](OprD)
	[28] 0	0	0x00002000 - 0x0000207f (0x80) IX[b]
	[29] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[b]
	[30] -1	0	0x00000000 - 0x000000ff (0x100) IX[b]
	[31] -1	0	0x00003400 - 0x000034ff (0x100) IX[b]E
	[32] -1	0	0x00003000 - 0x000030ff (0x100) IX[b]E
	[33] -1	0	0x00001c60 - 0x00001c7f (0x20) IX[b]E
	[34] -1	0	0x00001c20 - 0x00001c2f (0x10) IX[b]E
	[35] -1	0	0x00001c48 - 0x00001c4b (0x4) IX[b]E
	[36] -1	0	0x00001c50 - 0x00001c57 (0x8) IX[b]E
	[37] -1	0	0x00001c4c - 0x00001c4f (0x4) IX[b]E
	[38] -1	0	0x00001c58 - 0x00001c5f (0x8) IX[b]E
	[39] -1	0	0x00001c10 - 0x00001c1f (0x10) IX[b]E
	[40] -1	0	0x00001c30 - 0x00001c33 (0x4) IX[b]E
	[41] -1	0	0x00001c38 - 0x00001c3f (0x8) IX[b]E
	[42] -1	0	0x00001c34 - 0x00001c37 (0x4) IX[b]E
	[43] -1	0	0x00001c40 - 0x00001c47 (0x8) IX[b]E
	[44] -1	0	0x00001c00 - 0x00001c0f (0x10) IX[b]E
	[45] -1	0	0x00001400 - 0x000014ff (0x100) IX[b]E
	[46] -1	0	0x00001800 - 0x000018ff (0x100) IX[b]E
	[47] -1	0	0x0000a040 - 0x0000a07f (0x40) IX[b]E
	[48] -1	0	0x0000a000 - 0x0000a03f (0x40) IX[b]E
	[49] -1	0	0x00008c00 - 0x00008cff (0x100) IX[b]E
	[50] -1	0	0x00002000 - 0x0000207f (0x80) IX[b](B)
	[51] 0	0	0x000003b0 - 0x000003bb (0xc) IS[b](OprU)
	[52] 0	0	0x000003c0 - 0x000003df (0x20) IS[b](OprU)
(II) NVIDIA(0): Setting mode
(II) NVIDIA(0):     "CRT:nvidia-auto-select+1680+0,DFP:1680x1050+0+0"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) Option "dpms"
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(WW) NVIDIA(0): Option "AddRGBGLXVisuals" is not used
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension XAccessControlExtension
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Loading local sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/local/lib/xorg/modules/extensions//libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
	compiled for 7.2.0, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.3
(II) GLX: Initialized MESA-PROXY GL provider for screen 0
(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Option "Protocol" "standard"
(**) Keyboard0: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard0: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) Keyboard0: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) Keyboard0: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(**) Option "Protocol" "auto"
(**) Mouse0: Device: "/dev/sysmouse"
(**) Mouse0: Protocol: "auto"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/sysmouse"
(**) Option "Emulate3Buttons" "no"
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 9
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0
(II) Mouse0: SetupAuto: protocol is SysMouse
roddierod is offline   Reply With Quote
Old 02-08-07, 03:39 AM   #7
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

It's loading the wrong GLcore:
Quote:
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 7.2.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.3
FWIW my system runs Xorg-7.2r3_4 with X11BASE set to /usr/local/

Didn't change anything in the makefiles.. Xorg 7 should install into $X11BASE/lib/xorg/modules/.
The nvidia-driver installs in $X11BASE/lib/modules to solve that I have 2 modulepaths in the files section..

Quote:
ModulePath "/usr/local/lib/xorg/modules"
ModulePath "/usr/local/lib/modules"
My modules section looks like this:
Quote:
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
SirDice is offline   Reply With Quote
Old 02-08-07, 08:36 AM   #8
roddierod
Registered User
 
Join Date: Sep 2005
Posts: 12
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Quote:
Originally Posted by SirDice
It's loading the wrong GLcore:
Ok, I agree with that but how do I get it to load nividia's my Module section is exactly like yours.

Quote:
Originally Posted by SirDice
FWIW my system runs Xorg-7.2r3_4 with X11BASE set to /usr/local/

Didn't change anything in the makefiles.. Xorg 7 should install into $X11BASE/lib/xorg/modules/.

The nvidia-driver installs in $X11BASE/lib/modules to solve that I have 2 modulepaths in the files section..
I also have had the two module line. But that has no effect on the building of the nvidia-driver only the loading of the modules after they are built and installed.

So, to get the nvidia-driver to install nividia_drv.so into /usr/local/lib/xorg/modules/drivers I had to edit the Makefile found in the /Nvidia-FreeBSD-x86-1.0-9746/x11/driver. I had to change the line

DRIVERDIR= ${X11BASE}/lib/modules/drivers

to

DRIVERDIR= ${x11BASE}/lib/xorg/modules/drivers


to get the nvidia driver to build and install otherwise it just errored on the install.

/usr/local/lib/modules/drivers is not a directory with my Xorg build it's some type of library. Same for /usr/local/lib/modules/extensions.
roddierod is offline   Reply With Quote

Old 02-08-07, 09:43 AM   #9
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Quote:
Originally Posted by roddierod
So, to get the nvidia-driver to install nividia_drv.so into /usr/local/lib/xorg/modules/drivers I had to edit the Makefile found in the /Nvidia-FreeBSD-x86-1.0-9746/x11/driver. I had to change the line

DRIVERDIR= ${X11BASE}/lib/modules/drivers

to

DRIVERDIR= ${x11BASE}/lib/xorg/modules/drivers


to get the nvidia driver to build and install otherwise it just errored on the install.
mkdir -p /usr/lib/modules/drivers fixes the error. It shouldn't matter where the drivers get installed. As long as the modulepaths are set correctly.

Deinstall the driver.. Make sure there are no XXX-* and nvidia related files left behind in $X11BASE/lib/modules/* and/or $X11BASE/lib/xorg/modules/*.
Add X11BASE=/usr/local to /etc/make.conf (this is to make sure all applications that use X11BASE will install in /usr/local). Use the freebsd port.. cd /usr/ports/x11/nvidia-driver && make all install clean Make sure your portstree is up2date though..
SirDice is offline   Reply With Quote
Old 02-08-07, 12:24 PM   #10
roddierod
Registered User
 
Join Date: Sep 2005
Posts: 12
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

so in other words - for some reason on my system:

/usr/local/lib/modules/drivers is a file with a size of 1561700
/usr/local/lib/modules/extensions is a file with the size of 732876

Your saying that they should not be there. Although, it seems to me they have something to do with the actual file that are in /usr/local/lib/xorg/modules/drivers and /usr/local/lib/xorg/modules/extensions which are directories.

I just want to be sure of this, because every else seems to be the same with our setups, except that somehow I'm get those two files.
roddierod is offline   Reply With Quote
Old 02-08-07, 02:01 PM   #11
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Quote:
Originally Posted by roddierod
/usr/local/lib/modules/drivers is a file with a size of 1561700
/usr/local/lib/modules/extensions is a file with the size of 732876
These shouldn't be files but directories. Because the directories don't exist it'll copy it as a file

Here's my layout:
Code:
/usr/local/lib/modules/
                              libnvidia-wfb.so.1
                              libwfb.so.1
                              drivers/
                                        nvidia_drv.so
                              extensions/
                                        XXX-libglx.so.1.%%.orig-20070201 
                                        libglx.so
                                        libglx.so.1
SirDice is offline   Reply With Quote
Old 02-10-07, 12:26 PM   #12
roddierod
Registered User
 
Join Date: Sep 2005
Posts: 12
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

I did everything you suggest SirDice and it's still loading the GLcore from XORG....
roddierod is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:51 AM.


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