nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregister_ha (http://www.nvnews.net/vbulletin/showthread.php?t=149253)

eeconn 03-23-10 05:16 PM

Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregister_ha
 
1 Attachment(s)
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.

zander 03-24-10 06:30 PM

Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste
 
What does your kernel configuration file look like?

eeconn 03-24-10 11:32 PM

Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste
 
1 Attachment(s)
It's just the GENERIC kernel, no modifications.

zander 03-25-10 11:11 AM

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?

eeconn 03-25-10 11:12 AM

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"

zander 03-25-10 01:25 PM

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?

eeconn 03-25-10 06:40 PM

Re: Unable to load nvidia module on FreeBSD 8: link_elf: symbol linux_ioctl_unregiste
 
1 Attachment(s)
Attached log after X crash without linux compatibility.

eeconn 03-25-10 08:07 PM

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.

arundel 03-26-10 07:14 AM

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

eeconn 03-26-10 10:17 AM

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 04-07-10 12:45 PM

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.


All times are GMT -5. The time now is 02:34 AM.

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