Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-23-10, 04:16 PM   #1
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregister_ha

I have been unable to kldload the nvidia module on my FreeBSD 8.0-STABLE (x86) system for the past 2 months. The module fails to load with the error
Code:
[erin@minotaur] ~> sudo kldload nvidia
kldload: can't load nvidia: No such file or directory
When I look at /var/log/messages, I see
Code:
Mar 23 16:18:33 minotaur sudo:     erin : TTY=pts/3 ; PWD=/home/erin/NVIDIA-FreeBSD-x86-195.36.15 ; USER=root ; COMMAND=/sbin/kldload nvidia
Mar 23 16:18:33 minotaur kernel: link_elf: symbol linux_ioctl_unregister_handler undefined
I began having the error with the driver in ports, NVIDIA-FreeBSD-x86-195.22, but I see the same behavior with the legacy drivers, and just now when I installed the most recent release linked here: http://www.nvnews.net/vbulletin/showthread.php?t=148959

I have tried setting noschg on /usr/src and deleting it, then running cvsup again to fetch a clean src distribution, based on info I found when searching for the linux_ioctl_unregister_handler error, which indicated it could be caused by a corrupt src. I rebuilt and reinstalled world and kernel, then removed and reinstalled the nvidia-driver and linux compatibility ports, to no effect.

I CAN get the module to load if I build without linux compatibility, but X dies on startup with the linux-free module.

I was able to use the nVidia driver on FreeBSD 8 for at least a month, but I do not recall the exact date it stopped working after I ran a portupgrade.

The fact that this is occurring for all versions of the driver definitely points to a system configuration issue, but I have not been able to find enough info on the error to try further troubleshooting.

I've attached the nvidia-bug-report.log file. I am currently running my display with the nv driver.
Attached Files
File Type: gz nvidia-bug-report.log.gz (32.4 KB, 138 views)
eeconn is offline   Reply With Quote
Old 03-24-10, 05:30 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

What does your kernel configuration file look like?
zander is offline   Reply With Quote
Old 03-24-10, 10:32 PM   #3
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

It's just the GENERIC kernel, no modifications.
Attached Files
File Type: txt GENERIC.txt (12.8 KB, 210 views)
eeconn is offline   Reply With Quote
Old 03-25-10, 10:11 AM   #4
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

When you say X dies on start-up without Linux compatibility, what's the exact behavior you're referring to? Does it hang or crash?
zander is offline   Reply With Quote
Old 03-25-10, 10:12 AM   #5
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

It crashes with the message "X server died on startup"
eeconn is offline   Reply With Quote
Old 03-25-10, 12:25 PM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

Can you capture/attach an nvidia-bug-report.log file after reproducing that problem on your system?
zander is offline   Reply With Quote
Old 03-25-10, 05:40 PM   #7
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

Attached log after X crash without linux compatibility.
Attached Files
File Type: gz nvidia-bug-report.log(nolinux).gz (28.4 KB, 156 views)
eeconn is offline   Reply With Quote
Old 03-25-10, 07:07 PM   #8
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

I see that the X log suggests checking the kernel log file. My system wasn't generating a kernel.log; so I edited /etc/syslog.conf and restarted syslogd. Nothing was getting written to the file when I kldloaded or unloaded nvidia or tried to start X. After a reboot:
Code:
[erin@minotaur] ~> sudo grep -i nvidia /var/log/kernel.log 
Mar 25 20:00:40 minotaur kernel: ohci0: <nVidia nForce MCP61 USB Controller> mem 0xdbfff000-0xdbffffff irq 21 at device 2.0 on pci0
Mar 25 20:00:40 minotaur kernel: usbus0: <nVidia nForce MCP61 USB Controller> on ohci0
Mar 25 20:00:40 minotaur kernel: ehci0: <NVIDIA nForce MCP61 USB 2.0 controller> mem 0xdbffec00-0xdbffecff irq 22 at device 2.1 on pci0
Mar 25 20:00:40 minotaur kernel: usbus1: <NVIDIA nForce MCP61 USB 2.0 controller> on ehci0
Mar 25 20:00:40 minotaur kernel: hdac0: <NVidia MCP61 High Definition Audio Controller> mem 0xdbff8000-0xdbffbfff irq 23 at device 5.0 on pci0
Mar 25 20:00:40 minotaur kernel: atapci0: <nVidia nForce MCP61 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 6.0 on pci0
Mar 25 20:00:40 minotaur kernel: nfe0: <NVIDIA nForce MCP61 Networking Adapter> port 0xd480-0xd487 mem 0xdbffd000-0xdbffdfff irq 20 at device 7.0 on pci0
Mar 25 20:00:40 minotaur kernel: atapci1: <nVidia nForce MCP61 SATA300 controller> port 0xd400-0xd407,0xd080-0xd083,0xd000-0xd007,0xcc00-0xcc03,0xc880-0xc88f mem 0xdbffc000-0xdbffcfff irq 21 at device 8.0 on pci0
Mar 25 20:00:40 minotaur kernel: ugen0.1: <nVidia> at usbus0
Mar 25 20:00:40 minotaur kernel: uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Mar 25 20:00:40 minotaur kernel: ugen1.1: <nVidia> at usbus1
Mar 25 20:00:40 minotaur kernel: uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
[erin@minotaur] ~>
This all looks like it was written at boot time.
eeconn is offline   Reply With Quote

Old 03-26-10, 06:14 AM   #9
arundel
Registered User
 
Join Date: May 2008
Posts: 36
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

i had the same issue at some point. for me removing /usr/src completely and getting a fresh snapshot of it solved the problem though.

i don't think the problem is within the nvidia driver, because i also experienced problems with other 3rd party kernel modules at that point (virtualbox e.g.).

i posted my problem in september 2009 on the freebsd-current@ mailinglist (topic was "problems with r197427 (i386) and nvidia driver ").

cheers.
alex
arundel is offline   Reply With Quote
Old 03-26-10, 09:17 AM   #10
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

arundel, your mailing list post may well have been the one I was following when I tried removing and re-fetching src.
eeconn is offline   Reply With Quote
Old 04-07-10, 11:45 AM   #11
eeconn
Registered User
 
Join Date: Mar 2010
Posts: 7
Default Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste

I gave up and decided to do a complete reinstall of FreeBSD 8 on my machine. I'd been wanting to do it anyway, since when I originally installed it there wasn't a functioning version of the nvidia driver for amd64 so I installed 32-bit (i386) FreeBSD. It seems to be working (at least kldloading) after a complete reinstallation, even with the change to amd64. I haven't tested X yet though, still getting some more basic things reinstalled first.
eeconn is offline   Reply With Quote
Reply


Thread Tools

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


All times are GMT -5. The time now is 11:47 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.