The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Installing Nvidia on Freebsd
Author: Freedevil 
Date:   26-04-03 03:59

*** Installing Nvidia Drivers on FreeBsd ***

I assume you can do the following :
a) Rebuild your kernel
b) You are familair with UNIX

Lets start by downloading the drivers from Nvidia http://www.nvidia.com/view.asp?IO=freebsd_1.0-3203

Note: the default drivers "nv" work with X but are extremely slow and crash often as compared to the drivers released by nvidia. Hence, for better perfomance and support you should under all cost obtain them.

Firstly if you are installing on Freebsd 4.8 you need to enable options USER_LDT in ur kernel. On Freebsd 5.0-RELEASE it is enabled in the GENRIC kernel by default.

After you rebuild your new kernel and boot up....we will extract the download drivers

You can choose and dir you like it doesnt matter
freedevil/tmp# tar xzvf /path/NVIDIA_FreeBSD-1.0-3203.tar.gz
freedevil/tmp# cd NVIDIA_FreeBSD-1.0-3203
freedevil/tmp/NVIDIA_FreeBSD-1.0-3203# make setup

The command make setup will create the nvidia and linux laod module...for furthur info check the README on the nvidia site.

Edit your /etc/X11/XF86Config

# This loads the Type1 and FreeType font modules
Load "extmod"
Load "type1"
Load "speedo"
Load "freetype"
# Load "xtt"

# This loads the GLX module
Load "glx" # u need this
# This loads the DRI module
Load "dri"

EndSection

Section "Device"
Identifier "Nvidia Geforce 4"
Driver "nvidia"
#VideoRam 262144
# Insert Clocks lines here if appropriate
EndSection

Often the module is not loaded right away type kldstat to check and see if it is. Else load it by urself or reboot. But before you do anything else we want to use the AGP driver it accelerates and speeds up X. I use the Freebsd AGP driver and find it excellent. Edit /boot/loader.conf and add a line agp_load="YES"
now we need to make devices for it...
freedevil# cd /dev
freedevil/dev# sh MAKEDEV agpgart

After u reboot or load them manually type kldstat to see that all the moduels have loaded correctly...

Id Refs Address Size Name
1 5 0xc0100000 33e9a8 kernel
2 1 0xc043f000 18a48 linux.ko
3 1 0xc0458000 ac8c agp.ko
4 1 0xc0463000 149f44 nvidia.ko


Now simply startx and enjoy your new nvidia drivers.

If you have any comments or feedbacks pls email me.

Reply To This Message
 
 Re: Installing Nvidia on Freebsd
Author: The deamon 
Date:   02-02-04 23:09

A) nv driver is xyz times more stable than nvidia's one
B) nv driver in most cases is faster in 2D graphics
C) on nvidia driver some apps may have synchronization problems (eg tv apps)

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org