nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   7-current. is it possible to compile? (http://www.nvnews.net/vbulletin/showthread.php?t=93343)

edhunterbg 06-16-07 03:13 AM

7-current. is it possible to compile?
 
I have problems with my 7900gs, and i am trying to install newest driver 100.14.09, but i get an error message:
This driver does not support FreeBSD 7.x/-CURRENT!

i tried the latest legacy driver 1.0-9639 i got the same error too.

I really have 7.0-current (sources and kernel updated about 15.6.2007). Is there any way to run this driver on 7.0.

10x in advance

zander 06-16-07 05:13 AM

Re: 7-current. is it possible to compile?
 
Although FreeBSD 7.0-CURRENT is not supported, the driver is expected to build against and work with this version of FreeBSD if you comment out the #error in ../src/nv-freebsd.h.

edhunterbg 06-16-07 06:13 AM

Re: 7-current. is it possible to compile?
 
Quote:

Originally Posted by zander
Although FreeBSD 7.0-CURRENT is not supported, the driver is expected to build against and work with this version of FreeBSD if you comment out the #error in ../src/nv-freebsd.h.

i think already tried this. still didnt go ... but later i'll post the error because now i am using windows. i'll reboot and see the exact problem, and post again.

edhunterbg 06-16-07 06:52 AM

Re: 7-current. is it possible to compile?
 
here it is the last part of installing
...
...
===> lib/compat/libGLcore (install)
===> x11 (install)
===> x11/driver (install)
install: /usr/X11R6/lib/modules/drivers: No such file or directory
*** Error code 71

Stop in /usr/nvidiatemp/NVIDIA-FreeBSD-x86-100.14.09/x11/driver.
*** Error code 1

Stop in /usr/nvidiatemp/NVIDIA-FreeBSD-x86-100.14.09/x11.
*** Error code 1

Stop in /usr/nvidiatemp/NVIDIA-FreeBSD-x86-100.14.09.
root@geo:/usr/nvidiatemp/NVIDIA-FreeBSD-x86-100.14.09 on ttyv1


I am usign xorg 7.2, may be it is related to the error..

edit... it is ok now, changed some things in Makefiles

zander 06-16-07 11:21 AM

Re: 7-current. is it possible to compile?
 
Right, the current Makefiles don't handle the new ports very well. This will be fixed in future NVIDIA FreeBSD graphics driver releases.

Ravna 06-16-07 03:16 PM

Re: 7-current. is it possible to compile?
 
This might not be the proper solution, but I just changed the line :
#if __FreeBSD_version >= 700000
in ../src/nv-freebsd.h
to: #if __FreeBSD_version >= 800000
(a version that can't obviously be found at present)
and it compiled on a 7-Current - build a few hours ago - without a hitch.

My advice is to not upgrade by using any port-managment tools.
I deleted the whole /usr/X11R6 directory, and nuked any /var/db/pkg X-related entries.
(a dirty method - but we're talking pre-alpha, the whole thing might as well go titsup after the next buildworld)

But that's not the real reason for this post . . .

The reason I tried the new driver is that since June 12 07 I'm not able to shut down the X-server.
I can't even kill it with alt-ctrl-backspace.
The whole system freezes and reboots after a few seconds.
It doesn't matter which Nvidia driver is used - tried all of them - the result is the same.
The problem is reported more than once at the 7-current mailing list, so I dare say it's not my installation.
Maybe you'd get more useful information than mine by reading those posts.

This clearly isn't your fault, the drivers worked fine before 12.06.07.
It seems the FreeBSD committers messed something up.
I compared the pre-after 11.06.-sources for hours and couldn't find anything,
but then again . . . my C knowledge is even worse than my english :cool:
May I dare to ask you to have a look at the sources and tell them what's wrong ?
The xorg nv-driver is so slow, I'd rather use Linux. (shiver)

edhunterbg 06-16-07 06:25 PM

Re: 7-current. is it possible to compile?
 
i have sources from yesterday and running 100.14.09 and everything is ok. before that i also got problems with x.
try to csup your sources, rebuild your kernel and install nvidia's 100.14.09.

Ravna 06-17-07 11:55 AM

Re: 7-current. is it possible to compile?
 
I rebuild world daily, my sources are always fresh.
The drivers work, but the box feezes when I try to shutdown X.
As said above, this is discussed on the current mailing list and not a single occurance.

zander 06-17-07 05:31 PM

Re: 7-current. is it possible to compile?
 
@Ravna: I hadn't been aware of this problem before, thanks for the heads-up; unfortunately, there isn't much to go on in the email thread on freebsd-current (I think you were referring to the 'recent nvidia-driver trouble' thread), other than that it seems to be a panic at device teardown time.

Do you have a serial console setup that you could use to capture the panic? If not, does `cat /dev/nvidia0` (at the console, before starting X) reproduce the problem?

zander 06-18-07 12:25 PM

Re: 7-current. is it possible to compile?
 
@Ravna: also, have you tried the 100.14.09 graphics driver release?

Ravna 06-18-07 12:27 PM

Re: 7-current. is it possible to compile?
 
@Zander
At present I'm on 100.14.09
I did a buildworld with the lastest sources a few minutes ago,
and cat /dev/nvidia0 almost reproduces the problem
The box freezes, it only doesn't reboot anymore.
The output is :

Fatal trap 12: page fault while in Kernel mode
cpuid = 1 ; apic id = 01
fault virtual address = 0x26
fault code = supervisor read, page not found
instruction pointer = 0x20:0xc4b9c70c
stack pointer = 0x28:0xe744aa8c
frame pointer = 0x28:0xe744aaa0
code segment = base 0x0, limit 0xfffff,type 0x1b
= DPL 0, pres 1, def 32, gran 1
processor eflags = interrupt enabled, resume, IOPL=0

Then it tries to dump core and freezes cold - all you can do is pull the plug.

I browsed the forum and it seems whe had that before.

zander 06-18-07 01:20 PM

Re: 7-current. is it possible to compile?
 
Could you get a backtrace using ddb?


All times are GMT -5. The time now is 10:15 AM.

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