|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
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? |
|
|||
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. |
|
|||
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.
__________________
FreeBSD 13-STABLE |
|
||||
You are compiling an old version..?
% cd /ports/x11/nvidia-driver && make -V PORTVERSION 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. |
|
|||
GAH! good point. I'll try the later version.
|
|
|||
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. |
|
||||
Why are you using x11/nvidia-driver-71xx and not x11/nvidia-driver?
|
|
|||
Is the compat6x package still needed for the nvidia-driver?
|
|
|||
Quote:
I'll try the other tonight. Dank u |
|
|||
Make sure you have the kernel source installed.
Adam |
|
|||
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. |
|
|||
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
|
|
|||
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.
|
|
|||
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 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 |
|
||||
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. |
Tags |
nvidia |
Thread Tools | |
Display Modes | |
|
|
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 |