nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   Nvidia drivers Problem (http://www.nvnews.net/vbulletin/showthread.php?t=64104)

ntamp 01-30-06 10:56 AM

Nvidia drivers Problem
I use FreeBSD 6.0 Release, with XORG 6.9.0
compat5x package is installed.
I successfully re-builded nvidia settings.
But, when i try to make install 1.0-8178 drivers, i have this error.

bash-2.05b# pwd
bash-2.05b# make install
===> src (install)
cc -O2 -fno-strict-aliasing -pipe -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8178 -D__KERNEL__ -DNTRM -DNVRM -DDYNAMIC_SLI -UDEBUG -U_DEBUG -DNDEBUG -O -fno-common -fno-unit-at-a-time -minline-all-stringops -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
./nv-freebsd.h:25:2: #error This driver does not support FreeBSD 7.x/-CURRENT!
*** Error code 1

Stop in /root/NVIDIA-FreeBSD-x86-1.0-8178/src.
*** Error code 1

Stop in /root/NVIDIA-FreeBSD-x86-1.0-8178.

What is going wrong?
Thank you,

zander 01-30-06 05:48 PM

Re: Nvidia drivers Problem
The error message suggests that the kernel source tree you're building against is for a 7.x-CURRENT kernel, rather than the 6.0-RELEASE kernel; what is the __FreeBSD_version of the source tree you're building against?

ntamp 01-30-06 07:45 PM

Re: Nvidia drivers Problem
Thank you very much for your fast reply.
Problem solved.
Under /usr/src/sys, i had the 7.x-CURRENT kernel.
Then i installed 6.0 Release kernel source and everything is OK now!

ntamp 01-30-06 08:25 PM

Re: Nvidia drivers Problem
One more question,
After installing nvidia drivers, i see, the fonts used by some programs, changed.
For example with nvidia drivers, the gimp is like that and with the default drivers, like that.
Why is that?
Can i use the fonts settings, i see with default driver, when i use nvidia driver?
Thank` s in advance..

costra 02-05-06 05:37 AM

Re: Nvidia drivers Problem
I got it working with 7.0-CURRENT as well. You have two posibilities. Either to use NVidia AGP (it is really not stable), or you use it with FreeBSD AGP. There is a problem in 7.0-CURRENT, that some structure agp_info has changed, and you get some complains about ai_aperture_va when compiling with FreeBSD's AGP.
Some investigation in 6.0 sources showed, that ai_aperture_va was initialised the same way as ai_aperture_base. I changed in nvidia_subr.c ai_aperture_va to ai_aperture_base, and it got compiled. Until now it looks working with no problems with 3D acceleration etc. Someone who understands FreeBSD's AGP and NVidia driver should verify this.

zander 02-05-06 06:35 AM

Re: Nvidia drivers Problem
@ntamp: the computed DPI value likely differs, please see http://download.nvidia.com/freebsd/1...ppendix-x.html.

@costra: which chipset are you using? Most users' experience has been the opposite, i.e. that NvAGP is stable, whereas FreeBSD's AGPGART was not. Note that if you use NvAGP, you need to be sure to disable FreeBSD's AGP GART driver. With respect to the struct agp_info change, ai_aperture_va is expected to be the address of a kernel mapping of the AGP aperture, not its physical start address, ai_aperture_base. The 1.0-8178 driver's resource manager does not use this mapping, however, it can be set to 0. For older driver releases, a single-page kernel mapping is sufficient.

costra 02-06-06 10:28 AM

Re: Nvidia drivers Problem
I'm using NVidia GeForce4 Titanium:

nvidia0: <GeForce4 Ti 4200 with AGP8X> mem 0xe0000000-0xe0ffffff,0xd8000000-0xdf
ffffff irq 16 at device 0.0 on pci1

Really, with NvAGP I got errors like this in system console:
NVRM: Xid: 6, PE0000 0804 0004a800 0000fdb0 000749fc 0004a800
NVRM: Xid: 6, PE0000 0804 001c0c06 00006ea4 00000000 001c0c06
NVRM: Xid: 6, PE0000 11a8 ff75b1a8 00000004 ff76b1a8 ff4d5c61

But with FreeBSD's AGP I don't get them anymore. But some time ago (maybe with 5.3 or 5.4) a got them with FreeBSD's AGP as well. Now while running 7.0-CURRENT without NvAGP it's OK.

I really don't know the right purpose of ai_aperture_va, I just went through the FreeBSD 6.0's AGP sources, and found, that it's initialized with the same value as ai_aperture_base. That's called to verify it. I expect some semantically cleaner solution :)

All times are GMT -5. The time now is 07:53 AM.

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