- 论坛徽章:
- 0
|
Pentium D 2.8G Dual-Core
nvidia GeForce 7300 GT ( 256M 128bits )
已经安装完毕 FreeBSD 6.2 amd64 版本,已更新了 src tree 和 ports tree,重编译了内核
在安装显卡驱动的时候碰到了难题
FreeBSD 6.2 所带的 xorg-server 是 xorg-server-6.9.0_5,其中的nv驱动(nv_drv.so)貌似不支持7300GT
在 /usr/ports/x11/nvidia-driver 下面 make 报如下错误
- ===> nvidia-driver-1.0.9746 is only for i386, and you are running amd64..
- *** Error code 1
- Stop in /opt/ports/x11/nvidia-driver.
复制代码
查了2天文章,几乎一无所获,仅找到一篇极为含糊的文章说编译驱动并启动 X 成功,于是按照文中描述多次尝试,终于编译成功,但是启动 X 失败,过程如下:
1、下载 X11R6.9.0-src.tar.bz2 并解包
2、下载了xf86-video-nv-1.2.2.1.tar.bz2,解包,并将其src目录下的 nv_* 复制到了 xc/programs/Xserver/hw/xfree86/drivers/nv
3、在 xc 下用 make World 创建了所有必须的 Makefile 和软连接、头文件等
4、进入 xc/programs/Xserver/hw/xfree86/drivers/nv
5、操作如下
- -su-2.05b# pwd
- /opt/nvdrv/xc/programs/Xserver/hw/xfree86/drivers/nv
- 修改 Makefile,加上
- -DUSE_LIBC_WRAPPER
- 修改 nv_driver.c,加上
- #define PACKAGE_VERSION_MAJOR 1
- #define PACKAGE_VERSION_MINOR 2
- #define PACKAGE_VERSION_PATCHLEVEL 2
- make
- -su-2.05b# ls -al nv_drv.so
- -rwxr-xr-x 1 root 800 116198 Jan 25 14:24 nv_drv.so
- -su-2.05b# file nv_drv.so
- nv_drv.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), not stripped
- -su-2.05b# cp nv_drv.so /usr/X11R6/lib/modules/drivers/
- -su-2.05b#
复制代码
运行 Xorg -configure 创建了 /root/xorg.conf.new
用 X -config /root/xorg.conf.new 检查配置文件
- -su-2.05b# clear
- -su-2.05b# X -config /root/xorg.conf.new
- _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
- _XSERVTransOpen: transport open failed for inet6/bsd64.Neil.Xian:0
- _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
- X Window System Version 6.9.0
- Release Date: 21 December 2005
- X Protocol Version 11, Revision 0, Release 6.9
- Build Operating System: FreeBSD 6.2 amd64 [ELF]
- Current Operating System: FreeBSD bsd64.Neil.Xian 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Tue Jan 23 03:50:03 CST 2007 root@bsd64.Neil.Xian:/usr/src/sys/amd64/compile/Neil amd64
- Build Date: 16 October 2006
- Before reporting problems, check http://wiki.X.Org
- to make sure that you have the latest version.
- Module Loader present
- Markers: (--) probed, (**) from config file, (==) default setting,
- (++) from command line, (!!) notice, (II) informational,
- (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
- (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 25 14:33:40 2007
- (++) Using config file: "/root/xorg.conf.new"
- (WW) ****INVALID MEM ALLOCATION**** b: 0x51000000 e: 0x51ffffff correcting
- (WW) ****INVALID MEM ALLOCATION**** b: 0x40000000 e: 0x4fffffff correcting
- (WW) ****INVALID MEM ALLOCATION**** b: 0x50000000 e: 0x50ffffff correcting
- (EE) sparse io range (base: 0x6ff640 mask: 0x6ff680)doesn't satisfy (base & mask = mask)
- (EE) NV(0): No valid modes found
- (EE) Screen(s) found, but none have a usable configuration.
- Fatal server error:
- no screens found
- Please consult the The X.Org Foundation support
- at http://wiki.X.Org
- for help.
- Please also check the log file at "/var/log/Xorg.0.log" for additional information.
- -su-2.05b#
复制代码
log文件的主要内容如下
- -su-2.05b# cat /var/log/Xorg.0.log
- _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
- _XSERVTransOpen: transport open failed for inet6/bsd64.Neil.Xian:0
- _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
- X Window System Version 6.9.0
- ...
- ...
- ==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 25 14:33:40 2007
- (++) Using config file: "/root/xorg.conf.new"
- (==) ServerLayout "X.org Configured"
- (**) |-->Screen "Screen0" (0)
- (**) | |-->Monitor "Monitor0"
- (**) | |-->Device "Card0"
- (**) |-->Input Device "Mouse0"
- (**) |-->Input Device "Keyboard0"
- (WW) The directory "/usr/X11R6/lib/X11/fonts/CID/" does not exist.
- Entry deleted from font path.
- (**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
- (**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
- (**) ModulePath set to "/usr/X11R6/lib/modules"
- (II) Module ABI versions:
- X.Org ANSI C Emulation: 0.2
- X.Org Video Driver: 0.8
- X.Org XInput driver : 0.5
- X.Org Server Extension : 0.2
- X.Org Font Renderer : 0.4
- (II) Loader running on freebsd
- (II) LoadModule: "bitmap"
- (II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.so
- (II) Module bitmap: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.0.0
- Module class: X.Org Font Renderer
- ABI class: X.Org Font Renderer, version 0.4
- (II) Loading font Bitmap
- (II) LoadModule: "pcidata"
- (II) Loading /usr/X11R6/lib/modules/libpcidata.so
- (II) Module pcidata: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.0.0
- ABI class: X.Org Video Driver, version 0.8
- (--) Using syscons driver with X support (version 549739036674.0)
- (--) using VT number 9
- (II) PCI: PCI scan (all values are in hex)
- ...
- ...
- (II) LoadModule: "glx"
- (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
- (II) Module glx: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.0.0
- ABI class: X.Org Server Extension, version 0.2
- (II) Loading sub module "GLcore"
- (II) LoadModule: "GLcore"
- (II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.so
- (II) Module GLcore: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.0.0
- ABI class: X.Org Server Extension, version 0.2
- (II) Loading extension GLX
- ...
- ...
- (II) Loading font CID
- (II) LoadModule: "nv"
- (II) Loading /usr/X11R6/lib/modules/drivers/nv_drv.so
- (II) Module nv: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.2.2
- Module class: X.Org Video Driver
- ABI class: X.Org Video Driver, version 0.8
- (II) LoadModule: "mouse"
- ...
- ...
- (II) NV: driver for NVIDIA chipsets: RIVA 128, RIVA TNT, RIVA TNT2,
- ...
- ...
- GeForce 7600 GS, GeForce 7300 GT, GeForce 7600 LE, GeForce 7300 GT,
- ...
- ...
- (II) Primary Device is: PCI 01:00:0
- (--) Chipset GeForce 7300 GT found
- (II) resource ranges after xf86ClaimFixedResources() call:
- ...
- ...
- (WW) ****INVALID MEM ALLOCATION**** b: 0x51000000 e: 0x51ffffff correcting
- ...
- (WW) ****INVALID MEM ALLOCATION**** b: 0x40000000 e: 0x4fffffff correcting
- ...
- (WW) ****INVALID MEM ALLOCATION**** b: 0x50000000 e: 0x50ffffff correcting
- ...
- (EE) sparse io range (base: 0x6ff640 mask: 0x6ff680)doesn't satisfy (base & mask = mask)
- ...
- ...
- II) Setting vga for screen 0.
- (II) Loading sub module "int10"
- (II) LoadModule: "int10"
- (II) Loading /usr/X11R6/lib/modules/libint10.so
- (II) Module int10: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.0.0
- ABI class: X.Org Video Driver, version 0.8
- (II) NV(0): Initializing int10
- (==) NV(0): Write-combining range (0xa0000,0x20000) was already clear
- (==) NV(0): Write-combining range (0xc0000,0x40000) was already clear
- (II) NV(0): Primary V_BIOS segment is: 0xc000
- (==) NV(0): Write-combining range (0x0,0x1000) was already clear
- (--) NV(0): Chipset: "GeForce 7300 GT"
- (==) NV(0): Depth 16, (==) framebuffer bpp 16
- (==) NV(0): RGB weight 565
- (==) NV(0): Default visual is TrueColor
- (II) Loading sub module "vgahw"
- (II) LoadModule: "vgahw"
- (II) Loading /usr/X11R6/lib/modules/libvgahw.so
- (II) Module vgahw: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 0.1.0
- ABI class: X.Org Video Driver, version 0.8
- (==) NV(0): Using HW cursor
- (--) NV(0): Linear framebuffer at 0x0
- (--) NV(0): MMIO registers at 0x1000000
- (==) NV(0): Write-combining range (0x1000000,0x1000000) was already clear
- (II) Loading sub module "i2c"
- (II) LoadModule: "i2c"
- (II) Loading /usr/X11R6/lib/modules/libi2c.so
- (II) Module i2c: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.2.0
- ABI class: X.Org Video Driver, version 0.8
- (II) Loading sub module "ddc"
- (II) LoadModule: "ddc"
- (II) Loading /usr/X11R6/lib/modules/libddc.so
- (II) Module ddc: vendor="X.Org Foundation"
- compiled for 6.9.0, module version = 1.0.0
- ABI class: X.Org Video Driver, version 0.8
- (II) NV(0): I2C bus "DDC" initialized.
- (II) NV(0): Probing for analog device on output A...
- (--) NV(0): ...can't find one
- (II) NV(0): Probing for analog device on output B...
- (--) NV(0): ...found one
- (II) NV(0): Probing for EDID on I2C bus A...
- (II) NV(0): I2C device "DDC:ddc2" registered at address 0xA0.
- (II) NV(0): I2C device "DDC:ddc2" removed.
- (II) NV(0): ... none found
- (II) NV(0): Probing for EDID on I2C bus B...
- (II) NV(0): I2C device "DDC:ddc2" registered at address 0xA0.
- (II) NV(0): I2C device "DDC:ddc2" removed.
- (II) NV(0): ... none found
- (--) NV(0): CRTC 1 appears to have a CRT attached
- (II) NV(0): Using CRT on CRTC 1
- (--) NV(0): VideoRAM: 0 kBytes
- (==) NV(0): Using gamma correction (1.0, 1.0, 1.0)
- (II) NV(0): Monitor0: Using hsync range of 30.00-83.00 kHz
- (II) NV(0): Monitor0: Using vrefresh range of 56.00-76.00 Hz
- (II) NV(0): Clock range: 12.00 to 400.00 MHz
- ...
- ...
- (II) NV(0): Not using default mode "640x350" (insufficient memory for mode)
- ...
- ...
- (WW) NV(0): Mode pool is empty
- (EE) NV(0): No valid modes found
- (==) NV(0): Write-combining range (0x0,0x1000) was already clear
- (II) UnloadModule: "nv"
- (II) UnloadModule: "ddc"
- (II) Unloading /usr/X11R6/lib/modules/libddc.so
- (II) UnloadModule: "i2c"
- (II) Unloading /usr/X11R6/lib/modules/libi2c.so
- (II) UnloadModule: "vgahw"
- (II) Unloading /usr/X11R6/lib/modules/libvgahw.so
- (II) UnloadModule: "int10"
- (II) Unloading /usr/X11R6/lib/modules/libint10.so
- (EE) Screen(s) found, but none have a usable configuration.
- Fatal server error:
- no screens found
复制代码
因为以前一直在 console 下,X用得极少,这个错误以前没有碰到过,多方找资料无果,来此求助,望各位协助,谢谢。 |
|