PDA

View Full Version : Having trouble with Nvidia driver... [SOLVED]


maagimies
07-31-2006, 02:37 AM
Couple of hours ago I installed PC-BSD for the first time, and I'm really liking it.
The only thing giving me a hard time is the Nvidia driver.
I installed this (http://www.pbidir.com/packages.php?code=297) pbi package, and rebooted.
And X didn't start.
<I'm going to skip an hour of tinkering, swearing and googling>
Then, I loaded the Nvidia module by kldload nvidia, and... it worked! I was able to start X and have 3d acceleration without any trouble.
But this is quite a troublesome thing to do at every boot, so I'm wondering that why doesn't the nvidia module load at boot although I have set nvidia_load="YES" in /boot/loader.conf?
Here's the diagnose txt:
PC-BSD 1.2 Diagnostic Sheet
Generated: Mon Jul 31 05:24:43 PDT 2006

-----------------Dmesg Output-------------------------

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.1-RELEASE-p2 #1: Thu Jul 6 11:31:02 PDT 2006
root@PCBSD.localhost:/usr/obj/usr/src/sys/PCBSDv1.2
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(TM) XP1900+ (1611.66-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x662 Stepping = 2
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MC A,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0480800<SYSCALL,MP,MMX+,3DNow+,3DNow>
real memory = 536788992 (511 MB)
avail memory = 514867200 (491 MB)
kbd1 at kbdmux0
acpi0: <ASUS A7V266-E> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcm0: <Creative EMU10K1> port 0xd800-0xd81f at device 14.0 on pci0
pcm0: <SigmaTel STAC9708/11 AC97 Codec>
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xd000-0xd07f mem 0xe9800000-0xe980007f irq 5 at device 15.0 on pci0
miibus0: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:04:75:7f:11:50
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8233 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xb800-0xb80f at device 17.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 6 at device 17.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xb000-0xb01f irq 6 at device 17.3 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xa800-0xa81f irq 6 at device 17.4 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcb7ff,0xcc000-0xcffff,0xd0000-0xd07ff on isa0
fdc0: No FDOUT register!
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: Logitech USB RECEIVER, rev 1.10/25.10, addr 2, iclass 3/1
ums0: 16 buttons and Z dir.
uhub3: vendor 0x05e3 USB Hub, class 9/0, rev 1.10/3.04, addr 2
uhub3: 4 ports with 4 removable, self powered
Timecounter "TSC" frequency 1611664614 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 95396MB <WDC WD1000BB-00CAA0 16.06V16> at ata0-master UDMA100
ad1: 190782MB <WDC WD2000JB-00KFA0 08.05J08> at ata0-slave UDMA100
acd0: DVDROM <DVSKOREADVD-ROM DSR1600H 020401a0/db20> at ata1-master UDMA33
acd1: CDRW <HL-DT-ST GCE-8520B/1.00> at ata1-slave UDMA33
Trying to mount root from ufs:/dev/ad0s2a
cd0 at ata1 bus 0 target 1 lun 0
cd0: <HL-DT-ST CD-RW GCE-8520B 1.00> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
cd1 at ata1 bus 0 target 0 lun 0
cd1: <DVSKOREA DVD-ROM DSR1600H db20> Removable CD-ROM SCSI-0 device
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
nvidia0: <GeForce3> mem 0xea000000-0xeaffffff,0xec000000-0xefffffff,0xeb800000-0xeb87ffff irq 11 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]

-----------------Messages Output----------------------

Jul 31 05:11:18 ed-209 kernel: cd0: 33.000MB/s transfers
Jul 31 05:11:18 ed-209 kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Jul 31 05:11:18 ed-209 kernel: cd1 at ata1 bus 0 target 0 lun 0
Jul 31 05:11:18 ed-209 kernel: cd1: <DVSKOREA DVD-ROM DSR1600H db20> Removable CD-ROM SCSI-0 device
Jul 31 05:11:18 ed-209 kernel: cd1: 33.000MB/s transfers
Jul 31 05:11:18 ed-209 kernel: cd1: Attempt to query device size failed: NOT READY, Medium not present
Jul 31 05:11:21 ed-209 dhclient: New IP Address (xl0): 192.168.0.2
Jul 31 05:11:21 ed-209 dhclient: New Subnet Mask (xl0): 255.255.255.0
Jul 31 05:11:21 ed-209 dhclient: New Broadcast Address (xl0): 192.168.0.255
Jul 31 05:11:21 ed-209 dhclient: New Routers (xl0): 192.168.0.1
Jul 31 05:11:48 ed-209 kdm-bin[1015]: X server for display :0 terminated unexpectedly
Jul 31 05:11:48 ed-209 kdm-bin[1015]: Unable to fire up local display :0; disabling.
Jul 31 05:11:59 ed-209 login: ROOT LOGIN (root) ON ttyv0
Jul 31 05:12:04 ed-209 kernel: nvidia0: <GeForce3> mem 0xea000000-0xeaffffff,0xec000000-0xefffffff,0xeb800000-0xeb87ffff irq 11 at device 0.0 on pci1
Jul 31 05:12:04 ed-209 kernel: nvidia0: [GIANT-LOCKED]
Jul 31 05:13:57 ed-209 su: maagimies to root on /dev/ttyp2
Jul 31 05:13:57 ed-209 su: maagimies to root on /dev/ttyp2
Jul 31 05:14:30 ed-209 su: maagimies to root on /dev/ttyp1
Jul 31 05:21:53 ed-209 su: maagimies to root on /dev/ttyp2
Jul 31 05:21:54 ed-209 su: maagimies to root on /dev/ttyp2

------------------RC File-----------------------------

background_dhclient="YES"
hostname="ed-209"
compat5x_enable="YES"

NIC="de em ixgb txp vx bfe bge dc fxp lge nge pcn re rl sf sis sk ste ti tl tx vge vr wb xl cs ed ex ep fe ie lnc sn xe an awi wi nve"

for i in $NIC; do
eval ifconfig_${i}0="DHCP"
eval ifconfig_${i}1="DHCP"
done

blanktime="180"
saver="logo"
sshd_enable="YES"
usbd_enable="YES"
moused_type="auto"
moused_enable="YES"
devd_enable="YES"
devfs_system_ruleset="devfsrules_common"

#Enable samba server
samba_enable="YES"

# Disable LPD
lpd_enable="NO"

# Enable CUPS
cupsd_enable="YES"
enable_linux="YES"

# FSCK Enhancements
fsck_y_enable="YES"
background_fsck="NO"

# Console Resolution
allscreens_flags="-c destructive -g 100x37 VESA_800x600"

# tmpmfs Flags
tmpmfs="YES"
tmpsize="800m"
tmpmfs_flags="-S"

# Denyhosts Startup
denyhosts_enable="YES"

------------------Loader File-------------------------

splash_pcx_load="YES"
bitmap_load="YES"
bitmap_name="/boot/loading-screen.pcx"
linux_load="YES"
hw.pci.allow_unsupported_io_range="1"
hw.ata.atapi_dma="1"
autoboot_delay="2"
snd_emu10k1_load="YES"
nvidia_load="YES"

------------------Free Space--------------------------

Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/ad0s2a 193 145 32 82% /
devfs 0 0 0 100% /dev
/dev/ad0s2e 2901 77 2592 3% /var
/dev/ad0s2f 44339 1561 39231 4% /usr
/dev/md0 771 0 709 0% /tmp
linprocfs 0 0 0 100% /usr/compat/linux/proc

------------------System Processes--------------------

last pid: 3132; load averages: 0.28, 0.39, 0.28 up 0+00:14:00 05:24:43
100 processes: 1 running, 99 sleeping

Mem: 177M Active, 165M Inact, 77M Wired, 3572K Cache, 60M Buf, 69M Free
Swap: 1024M Total, 1024M Free


PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
1218 root 1 76 0 42844K 33596K select 0:23 0.00% Xorg
1386 maagimies 1 76 0 56212K 45220K select 0:19 0.00% kdeinit
646 root 1 76 0 41196K 40004K select 0:15 0.00% cupsd
1356 maagimies 3 20 0 26348K 22636K kserel 0:12 0.00% artsd
1392 maagimies 1 76 0 40220K 35960K select 0:09 0.00% kdeinit
1360 maagimies 1 76 0 30000K 26092K select 0:06 0.00% kdeinit
1341 maagimies 1 76 0 30512K 26492K select 0:05 0.00% kdeinit
1353 maagimies 1 76 0 27688K 24264K select 0:03 0.00% kdeinit
1377 maagimies 1 76 0 25024K 19968K select 0:02 0.00% dbsd-nettray
1349 maagimies 1 76 0 25368K 20652K select 0:02 0.00% kdeinit
1351 maagimies 1 76 0 31068K 24512K select 0:02 0.00% kdeinit
1855 maagimies 3 20 0 27268K 20400K kserel 0:02 0.00% kdeinit
1816 maagimies 1 76 0 25688K 21432K select 0:02 0.00% kdeinit
3019 root 1 76 0 35680K 25608K select 0:01 0.00% kcmshell
1893 maagimies 1 76 0 23616K 18176K select 0:01 0.00% kdeinit
392 root 1 76 0 1260K 768K select 0:01 0.00% moused
1328 maagimies 1 76 0 22684K 16632K select 0:01 0.00% kdeinit
1960 maagimies 1 76 0 34024K 28396K select 0:01 0.00% kdeinit

Kronos
07-31-2006, 03:47 PM
I've got the same problem.

antik
07-31-2006, 06:38 PM
I've got the same problem.


# sysctl vfs.ufs.dirhash_docheck=1

and then install Nvidia PBI.

to store config premanently add:

/etc/sysctl.conf
vfs.ufs.dirhash_docheck=1

maagimies
08-01-2006, 05:20 AM
antik, that didn't work.
I noticed that while booting and loading the modules, it says something like "readin failed" on the nvidia one.
I'm going to try compiling the driver from ports.

antik
08-01-2006, 07:43 AM
antik, that didn't work.
I noticed that while booting and loading the modules, it says something like "readin failed" on the nvidia one.
I'm going to try compiling the driver from ports.

I said install nvidia driver again after this command:

# sysctl vfs.ufs.dirhash_docheck=1

DragnLord
08-01-2006, 02:56 PM
I highly recommend installing the nvidia driver from ports, I've had a lot of problems with the PBI.

restore /etc/X11/XF86Config to the initial setup, then:
portinstall nvidia-driver

maagimies
08-01-2006, 07:15 PM
antik, that didn't work.
I noticed that while booting and loading the modules, it says something like "readin failed" on the nvidia one.
I'm going to try compiling the driver from ports.

I said install nvidia driver again after this command:

# sysctl vfs.ufs.dirhash_docheck=1
And I did that, and after that didn't work either, I reinstalled pc-bsd, did that as the first thing, booted and then installed nvidia driver. And it didn't autoload even then.
And the nvidia-driver port didn't work as espected either, X works if I kldload nvidia and killall kdm-bin, and I get full 3d acceleration that way, the module just won't autoload on boot as it should do.
In boot it does try to load it but just says readin failed.
And I have tried both agp_load="YES" and "NO" in /boot/loader.conf, but the module just won't load on boot.
edit:
And before anyone asks, yes, I have nvidia_load="YES" in /boot/loader.conf, I do read the fine manual.

antik
08-01-2006, 07:18 PM
antik, that didn't work.
I noticed that while booting and loading the modules, it says something like "readin failed" on the nvidia one.
I'm going to try compiling the driver from ports.

I said install nvidia driver again after this command:

# sysctl vfs.ufs.dirhash_docheck=1
And I did that, and after that didn't work either, I reinstalled pc-bsd, did that as the first thing, booted and then installed nvidia driver. And it didn't autoload even then.
And the nvidia-driver port didn't work as espected either, X works if I kldload nvidia and killall kdm-bin, and I get full 3d acceleration that way, the module just won't autoload on boot as it should do.
In boot it does try to load it but just says readin failed.
And I have tried both agp_load="YES" and "NO" in /boot/loader.conf, but the module just won't load on boot.

Try to install nvidia driver from ports.

maagimies
08-01-2006, 07:32 PM
Try to install nvidia driver from ports.
Well... thanks for helping, but I already tried it:
And the nvidia-driver port didn't work as espected either
Although I haven't yet experimented with the few compiling flags the nvidia-driver port gave me. I'll try to build it without the linux-compatibility flag, and after that I'll experiment with the "use freebsd agp driver" flag as well.
It's just weird that Nvidia drivers in FreeBsd seem to work for everyone else but not me. :(

antik
08-01-2006, 07:52 PM
Try to install nvidia driver from ports.
Well... thanks for helping, but I already tried it:
And the nvidia-driver port didn't work as espected either
Although I haven't yet experimented with the few compiling flags the nvidia-driver port gave me. I'll try to build it without the linux-compatibility flag, and after that I'll experiment with the "use freebsd agp driver" flag as well.
It's just weird that Nvidia drivers in FreeBsd seem to work for everyone else but not me. :(

Post your /boot/loader.conf content and md5 sum from nvidia pbi. 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.

Read more here (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47).

maagimies
08-01-2006, 08:10 PM
Heh, it seems I have pinpointed the problem, and it had nothing to do with FreeBsd nor PC-BSD :D
As I researched for solution, I thought I should look at BIOS options.
My BIOS had the "Memory hole at 15-16 Mt" option on, and I have no idea why, because I don't even use any ISA cards that this option is useful for, so I switched it off, and booted PC-BSD... And saw the nvidia module autoloaded!!!
I should have known :x
Well, everything works now, thanks for all the help antik :)

antik
08-01-2006, 08:13 PM
Well, everything works now, thanks for all the help antik :)

Huh, that's nice, I thought that PBI is broken or something :)

Kronos
08-04-2006, 07:03 PM
My driver for nVidia didint working =((( I tried all what find.

PCBSD# make install clean
===> Vulnerability check disabled, database not found
===> Found saved configuration for nvidia-driver-1.0.8762
=> NVIDIA-FreeBSD-x86-1.0-8762.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://download.nvidia.com/freebsd/1.0-8762/.
NVIDIA-FreeBSD-x86-1.0-8762.tar.gz 100% of 9216 kB 14 kBps 00m00s
===> Extracting for nvidia-driver-1.0.8762
=> MD5 Checksum OK for NVIDIA-FreeBSD-x86-1.0-8762.tar.gz.
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86-1.0-8762.tar.gz.
===> Patching for nvidia-driver-1.0.8762
===> Applying extra patch /usr/ports/nvidia/nvidia-driver/files/7667-patch-lib::Makefile
===> Applying extra patch /usr/ports/nvidia/nvidia-driver/files/7667-patch-scripts::setup.sh
===> Applying FreeBSD patches for nvidia-driver-1.0.8762
===> nvidia-driver-1.0.8762 depends on shared library: m.3 - found
===> nvidia-driver-1.0.8762 depends on shared library: X11.6 - found
===> Configuring for nvidia-driver-1.0.8762
===> Building for nvidia-driver-1.0.8762
===> src (all)
"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
*** Error code 1

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

Stop in /usr/ports/nvidia/nvidia-driver.


PCBSD# make install
===> Building for nvidia-driver-1.0.8762
===> src (all)
"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
*** Error code 1

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

Stop in /usr/ports/nvidia/nvidia-driver.