DragonFly BSD
DragonFly bugs List (threaded) for 2004-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: dfports nvidia-driver doesn't compile/install


From: Joe Love <joe@xxxxxxxxxxxxxxxx>
Date: Fri, 03 Sep 2004 01:43:40 -0500

Unfortunately for me, that does break all the wonderful linux-based games that I'd like to play.. course, it's not like they run right now anyway, as some of them complain about not being able to find libX11.so.6.

Maybe I'll give that a try just to say that *something* is working. :)

-Joe

Andrew Atrens wrote:
Joe Love wrote:

make: don't know how to make vnode_if.h. Stop
*** Error code 2

Stop in /usr/dfports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-6113.
*** Error code 1

Stop in /usr/dfports/x11/nvidia-driver.
#

If anyone knows how to get through this, the help would be appreciated.


Try disabling linux support (a #define in nv-dragonflybsd.h) ... I'm not
100% sure that this will fix the newer version 6 of the driver, but it did
allow me to compile version 4 of the driver.

Btw, if you have an nvidia motherboard, you might also want to tweak the
probe code in nvidia_pci.c to only try attaching _your_ video card - in
my experience the driver is too aggressive in attempting to attach nvidia
pci devices other than graphics card.

You'll want to do something like -

=== root@atrens-boistault (/dev/ttypa) /usr/home/atrens
1 -> pciconf -lv
...
nvidia0@pci3:0:0:       class=0x030000 card=0x87021462 chip=0x025310de
rev=0xa3 hdr=0x00
    vendor   = 'NVIDIA Corporation'
    device   = 'GeForce4 Ti 4200 [NV25.4]'
    class    = display
    subclass = VGA


From this, my 'card id' is 0x0253.


in nvidia_pci.c you'll want to change -

   if (vendor != NVIDIA_VENDORID || device < 0x0020)
        return ENXIO;

to

   if (vendor != NVIDIA_VENDORID || device != 0x0253)
        return ENXIO;


Admittedly this is a hack, but I haven't come up with anything better just yet :) :) ...

Andrew.




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]