柏崎@北海道です。

# nvidia-driver を入れている人がどれだけ居るのか未知数ですが…。

OpenGLぐりぐりの screensaverを滑らかに見たいとかそういうどうでも
良い理由から x11/nvidia-driverを、FreeBSD 4.9 に入れてみました。
作業手順としては以下の通り

# portinstall x11/nvidia-driver
# cd /etc/X11
# cp XF86Config XF86Config.org
# vi XF86Config
# diff -u XF86Config.org XF86Config
--- XF86Config.org  Tue Mar 16 14:13:10 2004
+++ XF86Config      Tue Mar 16 14:13:57 2004
@@ -63,7 +63,8 @@
         #Option     "FPDither"                 # [<bool>]
         #Option     "CrtcNumber"               # <i>
        Identifier  "Card0"
-       Driver      "nv"
+       #Driver      "nv"
+       Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV18GL [Quadro4 380 XGL]"
        BusID       "PCI:1:0:0"

あと5.*系ではないので、USER_LDT, SYSVSHMを有効にしてカーネルを
再構築しました。再構築後、再起動をかけて xinit すると

# xinit
XFree86 Version 4.3.0
   :
((snip...))
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.4365
        Module class: XFree86 Server Extension
        ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
   :
((snip...))
   :
(II) LoadModule: "nvidia"
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.o
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.4365
        Module class: XFree86 Video Driver
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
        compiled for 4.3.0, module version = 1.0.0
        Module class: XFree86 XInput Driver
        ABI class: XFree86 XInput driver, version 0.4
(II) NVIDIA XFree86 Driver  1.0-4365  Wed May 28 09:23:41 PDT 2003
(II) NVIDIA Unified Driver for all NVIDIA GPUs
(II) Primary Device is: PCI 01:00:0
(--) Chipset NVIDIA GPU found
(II) resource ranges after xf86ClaimFixedResources() call:
        [0] -1  0       0xffe00000 - 0xffffffff (0x200000) MX[B](B)
   :
((snip...))
   :
        [34] 0  0       0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
        compiled for 4.3.0, module version = 0.1.0
        ABI class: XFree86 Video Driver, version 0.6
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(--) NVIDIA(0): Linear framebuffer at 0xF0000000
(--) NVIDIA(0): MMIO registers at 0xF9000000
(==) NVIDIA(0): Write-combining range (0xf9601000,0x1000) was already clear
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.
 
Fatal server error:
no screens found
 
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.
 
と、失敗してしまいます。ちなみに今まで、nVIDIA Quadro4 380, 
nVIDIA GeForce4Ti 4800, nVIDIA GeForceFX 5900 全てで同様の
結果の陥っています。

nvidia-driverを使ってXの起動に漕ぎ付けたいのですが、どなたか
助言を頂ければ幸いです。

-- 
柏崎 礼生 (Hiroki Kashiwazaki)@HUIIC
Ph.D candidate in the Division of Electronics & Information
Engineering, Hokkaido University
mailto:reo@cc.hokudai.ac.jp
Tel:+81-11-706-2998