Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Thread Tools
Old 07-30-06, 06:59 AM   #1
Registered User
Join Date: Feb 2006
Posts: 3
Default freebsd6.1/i386 & 8762 driver

I have installed freebsd6.1/i386 on the following computer:

motherboard: asus a8n-sli deluxe
processor: athlon 64 4000+ san diego 90nm
video card: pci express/GeForce 6600 GT
BIOS setting: PCIPnP: Plug&Play O/S [No]

And I'm having trouble installing NVIDIA-FreeBSD-x86-1.0-8762 driver.

The driver installation part of the script below produces the error message:

nvidia0: <GeForce 6600 GT> mem 0xc8000000-0xcbffffff, 0xc0000000-0xc7ffffff, 0xcc000000-ccffffff irq 18 at device 0.0 on pci1
nvidia0: NVRM: NVIDIA IRQ resource alloc failed.
nvidia0: NVRM: NVIDIA driver alloc failed.
device_attach: nvidia0 attach returned 6

I suspect that the nontraditional irq 18 may be the problem, although being a freebsd newbie I am not at all sure, and I would much appreciate an opinion from a freebsd/nvidia expert.

I have gentoo linux 2005.1/i386 with the gentoo i386 "nvidia" (not "nv") driver on another partition of the hard disk of the same machine working perfectly. Also, under freebsd, if I use the "nv" driver (by giving the command 'cp /nv/xorg.conf.nv /etc/X11/xorg.conf', and then the command 'startx'), the kde gui comes up perfectly without error.

Attached are the 5 most pertinent files in the script (.txt added to xorg.conf.nvidia to have a valid attachment extension).


# The directory /nv contains:
# localedata-5.4.tbz
# compat5x-i386-
# NVIDIA-FreeBSD-x86-1.0-8762
# nvidia-settings-1.0
# xorg.conf.nvidia
# xorg.conf.nv
# compat5x-i386- and its dependency localedata-5.4.tbz (which do
# not appear on the freebsd6.1 distribution disks) were downloaded from:
# ftp://ftp.freebsd.org/pub/FreeBSD/re.../packages/All/
# NVIDIA-FreeBSD-x86-1.0-8762 and nvidia-settings-1.0 are the directories
# obtained by extracting:
# ftp://download.nvidia.com/XFree86/nv...ngs-1.0.tar.gz
# ftp://download.nvidia.com/freebsd/1.....0-8762.tar.gz
# xorg.conf.nvidia and xorg.conf.nv are the xorg configuration files for the
# respective drivers, the former being obtained from the latter by deleting
# the line 'Load "dri"' from the "Module" section, and changing "nv" to
# "nvidia" in the "Device" section.

cd /nv
mkdir nvdata

pkg_add localedata-5.4.tbz >& nvdata/lcd.txt
pkg_add compat5x-i386- >& nvdata/c5x.txt
echo 'compat5x_enable="YES"' >> /etc/rc.conf

cd NVIDIA-FreeBSD-x86-1.0-8762
make install >& ../nvdata/nvd.txt

cd ../nvidia-settings-1.0
gmake >& ../nvdata/nvsgm.txt
install nvidia-settings /usr/X11R6/bin/ >& ../nvdata/nvsin.txt

cd ..
cp xorg.conf.nvidia /etc/X11/xorg.conf

echo 'exec startkde' > /root/.xinitrc

startx >& nvdata/stx.txt

cp /var/log/Xorg.0.log nvdata

dmesg > nvdata/dmesg.txt

# end of script
Attached Files
File Type: txt nvd.txt (7.8 KB, 158 views)
File Type: txt xorg.conf.nvidia.txt (1.5 KB, 199 views)
File Type: txt stx.txt (2.4 KB, 301 views)
File Type: log Xorg.0.log (20.8 KB, 170 views)
File Type: txt dmesg.txt (7.0 KB, 174 views)
rko15 is offline   Reply With Quote
Old 07-31-06, 01:35 AM   #2
Registered User
Join Date: Jul 2004
Posts: 8
Default Re: freebsd6.1/i386 & 8762 driver

have you installed the linux_base_fc4 package?
and enabled either COMPAT_LINUX in your kernel or have linux_load="YES" in /boot/loader.conf since the nvidia freebsd driver requires these.
Ilkorin is offline   Reply With Quote
Old 07-31-06, 04:11 PM   #3
Registered User
Join Date: Feb 2006
Posts: 3
Default Re: freebsd6.1/i386 & 8762 driver

I just reinstalled freebsd-6.1-RELEASE-i386, making sure that in response to the prompt "Would you like to establish linux binary compatibility?" I chose "YES", and the package linux_base-8.8.0_14.tbz was installed. (I believe that I chose "YES" in the previous installation, but I reinstalled just to make sure.)

After rebooting, I gave the commands kldstat and cat /etc/rc.conf, obtaining the following output:

# kldstat
Id Refs Address Size Name
1 10 0xc0400000 691928 kernel
2 2 0xc0a92000 1aff0 linux.ko
3 1 0xc0aad000 4a43d0 nvidia.ko
4 1 0xc0f52000 58554 acpi.ko

# cat /etc/rc.conf
# -- sysinstall generated deltas -- # Mon Jul 31 04:36:50 2006
# Created: Mon Jul 31 04:36:50 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.

Doesn't this mean that linux binary compatibility is established when the system boots?

In other words, isn't linux_base-8.8.0_14.tbz an appropriate substitute for linux_base-fc4 (I think your second underscore should be a hyphen), and doesn't linux_enable="YES" in /etc/rc.conf have the same effect as linux_load="YES" in /boot/loader.conf?

(There is no option COMPAT_LINUX in the kernel configuration file /usr/src/sys/i386/conf/GENERIC, which presumably was used to compile the kerenel produced by the installation program.)

I then ran the script of my previous post, and got exactly the same unsatisfactory result as before.

Before I try something else, I would like to see a reply to this post, and also a comment on the following error message resulting from the startx command:

NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory).

Is this why the nvidia kernel module could not be initialized? Are there any other nvidia device files?
rko15 is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat 8.0 NVIDIA works - INSTRUCTIONS STEEL1 NVIDIA Linux 267 04-15-03 06:48 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
failing to initialize NV driver PsyShook NVIDIA Linux 10 09-19-02 12:41 PM
Nvidia Driver causes crash on Standby/Suspend dasher NVIDIA Linux 5 09-16-02 05:57 PM
new nforce driver!! 1.12!! frenchy2k1 CPUs, Motherboards And Memory 9 08-27-02 01:09 AM

All times are GMT -5. The time now is 05:31 AM.

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