xfs
[Top] [All Lists]

Re: nVidia driver incompatible

To: "D. Stimits" <stimits@xxxxxxxxxx>
Subject: Re: nVidia driver incompatible
From: Juha Saarinen <juha@xxxxxxxxxxxx>
Date: Wed, 20 Jun 2001 10:17:21 +1200 (NZST)
Cc: "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <3B2FC7C0.E90FA25D@idcomm.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
It does work, but there's a little more effort required, because you need
to recreate some /dev nodes at boot-up. Here's a script, adapted from the
one in the nVidia src rpm that'll do it:

#!/bin/sh

/sbin/rmmod NVdriver

for d in 0 1 2 3
do
        devfile=/dev/nvidia$d
        rm -f $devfile
        mknod $devfile c 195 $d
        chmod 0666 $devfile
done

devfile=/dev/nvidiactl
rm -f $devfile
mknod $devfile c 195 255
chmod 0666 $devfile

confmod="/etc/conf.modules"
[ -f /etc/modules.conf ] && confmod="/etc/modules.conf"

conftmp=/tmp/conf$$

sed '/^alias.*char-major-.*NVdriver/d' < $confmod > $conftmp
echo "alias char-major-195 NVdriver" >> $conftmp
mv $conftmp $confmod

/sbin/depmod -a
/sbin/modprobe NVdriver

echo
echo NVdriver installed succesfully!
echo

exit 0


Could probably be improved upon, but it works for me.


-- 
Regards,


Juha

PGP fingerprint:
B7E1 CC52 5FCA 9756 B502  10C8 4CD8 B066 12F3 9544

On Tue, 19 Jun 2001, D. Stimits wrote:

> I can confirm that my working version does NOT use devfs.
>
> D. Stimits, stimits@xxxxxxxxxx
>
>


<Prev in Thread] Current Thread [Next in Thread>