DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default FreeBSD NVidia driver installation

I've just downloaded the latest (stable) NVidia blob - 173.14.09.

I've been trying to work out if that is going to fit onto my system (7.0). It makes mention of 6.0 in their documentation, but can anyone give me some shortcut information please (sorry, I know that is not the BSD way..

Anyway - what are the steps for installing this that I should be aware of, apart from what they document there.

While I'm about it - has anyone registered on NVForums? Is the support good?
Reply With Quote
  #2   (View Single Post)  
Old 26th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,064
Thanked 198 Times in 156 Posts
Default

The nvidia drivers works on FreeBSD 7, installation instructions, configuration etc. is all the same on FreeBSD 6 and 7.

The easiest way to install the nvidia driver is through ports:
# cd /usr/ports/x11/nvidia-driver && make clean install clean
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 1st July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

That goes awry in the compilation stage:
Code:
cc -O2 -fno-strict-aliasing -pipe -DNV_VERSION_STRING=\"169.12\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
nv-freebsd.h:76:24: error: pci/agpvar.h: No such file or directory
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-169.12/src.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-169.12.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
admittedly I didn't select the agp option. I've got a PCI-E card.
Reply With Quote
  #4   (View Single Post)  
Old 1st July 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

to compile nvidia-driver AFAIK you need the same source code present
upon which your kernel was compiled (not any earlier or later usually)
might be the problem there.
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #5   (View Single Post)  
Old 1st July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,064
Thanked 198 Times in 156 Posts
Default

You are compiling an old version..?

% cd /ports/x11/nvidia-driver && make -V PORTVERSION
173.14.09


Code:
cc -O2 -fno-strict-aliasing -pipe -DNV_VERSION_STRING=\"169.12\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
nv-freebsd.h:76:24: error: pci/agpvar.h: No such file or directory
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-169.12/src.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-169.12.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #6   (View Single Post)  
Old 2nd July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

GAH! good point. I'll try the later version.
Reply With Quote
  #7   (View Single Post)  
Old 3rd July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

okay, seems I didn't include AGP support or something, how can I sort this out?

Code:
max@/usr/ports/x11/nvidia-driver-71xx: sudo make clean install clean
Password:
===>  Cleaning for nvidia-driver-71.86.04_1
===>  WARNING: Vulnerability database out of date, checking anyway
===>  Found saved configuration for nvidia-driver-169.12
=> NVIDIA-FreeBSD-x86-71.86.04.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://jp.download.nvidia.com/freebsd/71.86.04/.
NVIDIA-FreeBSD-x86-71.86.04.tar.gz            100% of 7833 kB  120 kBps 00m00s
===>  Extracting for nvidia-driver-71.86.04_1
=> MD5 Checksum OK for NVIDIA-FreeBSD-x86-71.86.04.tar.gz.
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86-71.86.04.tar.gz.
===>  Patching for nvidia-driver-71.86.04_1
===>  Applying FreeBSD patches for nvidia-driver-71.86.04_1
===>   nvidia-driver-71.86.04_1 depends on shared library: X11.6 - found
===>   nvidia-driver-71.86.04_1 depends on shared library: m.3 - found
===>   nvidia-driver-71.86.04_1 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-71.86.04_1
===>  Building for nvidia-driver-71.86.04_1
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O2 -fno-strict-aliasing -pipe -DNV_VERSION_STRING=\"71.86.04\" -DNVCPU_X86 -DNV_BSD -DNV_INT64_OK -DNV_UNIX -D__KERNEL__ -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
nv-freebsd.h:74:24: error: pci/agpvar.h: No such file or directory
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver-71xx/work/NVIDIA-FreeBSD-x86-71.86.04/src.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver-71xx/work/NVIDIA-FreeBSD-x86-71.86.04.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver-71xx.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver-71xx.
Reply With Quote
  #8   (View Single Post)  
Old 3rd July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,064
Thanked 198 Times in 156 Posts
Default

Why are you using x11/nvidia-driver-71xx and not x11/nvidia-driver?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #9   (View Single Post)  
Old 4th July 2008
davidgurvich davidgurvich is offline
Fdisk Soldier
 
Join Date: May 2008
Location: NYC
Posts: 57
Thanked 3 Times in 3 Posts
Default

Is the compat6x package still needed for the nvidia-driver?
Reply With Quote
Old 4th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,064
Thanked 198 Times in 156 Posts
Default

AFAIK it was never needed for nvidia-driver...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 4th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Carpetsmoker View Post
Why are you using x11/nvidia-driver-71xx and not x11/nvidia-driver?
thought that the 7 series was the latest, sorry

I'll try the other tonight.

Dank u
Reply With Quote
Old 4th July 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Make sure you have the kernel source installed.

Adam
Reply With Quote
Old 6th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

I have the kernel source, however I get this:

Code:
max@/usr/ports/x11/nvidia-driver: sudo make clean install clean
Password:
===>  Cleaning for nvidia-driver-173.14.09
===>  WARNING: Vulnerability database out of date, checking anyway
===>  Found saved configuration for nvidia-driver-169.12
===>  Extracting for nvidia-driver-173.14.09
=> MD5 Checksum OK for NVIDIA-FreeBSD-x86-173.14.09.tar.gz.
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86-173.14.09.tar.gz.
===>  Patching for nvidia-driver-173.14.09
===>  Applying FreeBSD patches for nvidia-driver-173.14.09
===>   nvidia-driver-173.14.09 depends on shared library: X11.6 - found
===>   nvidia-driver-173.14.09 depends on shared library: m.3 - found
===>   nvidia-driver-173.14.09 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-173.14.09
===>  Building for nvidia-driver-173.14.09
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O2 -fno-strict-aliasing -pipe -DNV_VERSION_STRING=\"173.14.09\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
nv-freebsd.h:80:24: error: pci/agpvar.h: No such file or directory
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.09/src.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.09.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
Do I need to include the kernel source somehow during the install?
Reply With Quote
Old 6th July 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Hmmm... Try changing nv-freebsd.h so that it includes 'agp/agpvar.h' instead of 'pci/agpvar.h'

Adam
Reply With Quote
Old 6th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by adamk View Post
Hmmm... Try changing nv-freebsd.h so that it includes 'agp/agpvar.h' instead of 'pci/agpvar.h'

Adam
I edit that using a sudo session, try the make again, it fails then I go into the file and see it has changed back to pci
Reply With Quote
Old 6th July 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

What version of FreeBSD, post full output of uname -a.

btw, dev/agp/agpvar.h exist only on FreeBSD 8.
Reply With Quote
Old 6th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Could you also give us the contents of /var/db/ports/nvidia-driver/options
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 7th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by richardpl View Post
What version of FreeBSD, post full output of uname -a.

btw, dev/agp/agpvar.h exist only on FreeBSD 8.
As mentioned above it is 7 release, but I'll run uname tonight.
Reply With Quote
Old 8th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Thanked 1 Time in 1 Post
Default

Code:
FreeBSD ironteeth.home 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
is my generic 7 release uname result.

More interestingly I'm seeing this from the var/db/ports entry for the driver:
Code:
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for nvidia-driver-169.12
_OPTIONS_READ=nvidia-driver-169.12
WITHOUT_FREEBSD_AGP=true
WITHOUT_VM86_INT10CALL=true
WITH_ACPI=true
WITH_LINUX=true
However, I carried out a ports update a while ago and this should be the later driver? Or am I missing something...
Reply With Quote
Old 8th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

OK. It's interesting: the old version ports are slave ports - don't bother if you don't understand what that means - so their options will appear here. Everything should work, but don't be afraid to delete that file if it worries you: if you do, all that happens is that the options screen will show when you next attempt to build that port.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Reply

Tags
nvidia

Thread Tools
Display Modes

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
Is nVidia driver stable? rex FreeBSD General 14 31st October 2008 06:40 PM
NVIDIA driver fails to load, freebsd 7.0 mc_i2020 FreeBSD General 18 18th July 2008 01:12 PM
Image artifacts with nvidia-driver KernelPanic FreeBSD Ports and Packages 1 10th July 2008 09:56 PM
problems with nvidia-driver-169.12 greencross FreeBSD General 8 21st May 2008 01:41 PM


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick