nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   freebsd6.1/i386 & 8762 driver (http://www.nvnews.net/vbulletin/showthread.php?t=74212)

rko15 07-30-06 06:59 AM

freebsd6.1/i386 & 8762 driver
5 Attachment(s)
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

Ilkorin 07-31-06 01:35 AM

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.

rko15 07-31-06 04:11 PM

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?

All times are GMT -5. The time now is 02:37 AM.

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