Summary: | UEFI: loading modules installed from ports/packages via loader.conf freezes system | ||
---|---|---|---|
Product: | Base System | Reporter: | O. Hartmann <ohartmann> |
Component: | conf | Assignee: | Mark Linimon <linimon> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | banym, dcbdbis, dima_bsd, gooberferris, kevans, ross |
Priority: | --- | ||
Version: | 10.4-STABLE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
O. Hartmann
2014-09-19 13:15:15 UTC
Maintainers CC'd I have the same problems with FreeBSD-10.1-RC2 (r272978) and nvidia-driver (version 331.67_1) installed from ports. I can kldload it from console but it frezes system if I trying to load it from /boot/loader.conf nVidia GeForce GTX 760 UEFI system I also have the issue, but it goes much deeper than just NVIdia. It affects any 3rd party module you may try to load from /boot/loader.conf. It appears that the loader is ignoring the configured module_path in the /boot/defaults/loader.conf file which includes /boot/modules as a legit search path for other modules.....Loader is ignoring this directive and is only looking at /boot/kernel for it's modules. Thus the loader dies and pukes out a CPU register dump on your screen. The temporary fix is to either load it in the scripts (as mentioned), or copy the module from /boot/modules to /boot/kernel It the module exists in /boot/kernel.....you can continue to load your modules in the loader.conf file normally. FYI, Sincerely and respectfully, Dave I am facing the same issue with 10.1 using UEFI. My workaround is to load the nvidia module later using rc.conf using: kld_list="nvidia" For the record, kld_load="nvidia" did not work for me there. Fix summary and reassign; the problem affects any 3rd party module loaded from /boot/loader.conf. On FreeBSD 10.1-RELEASE-p9 amd64 using x11/nvidia-driver version 346.47 with a GeForce GTX 770M and the UEFI bootloader, I experienced what I believe may be the same issue. With 'nvidia_load="YES"' in /boot/loader.conf, the final lines on the console at boot were: panic: free: guard 1 fail @ 0x9606a4f0 from /usr/src/lib/libstand/close.c:79 --> Press a key on the console to reboot <-- After pressing a key: Rebooting... panic: Load failed I tried the suggested fix of moving the nvidia.ko module as per Comment 3, but that did not work. The workaround of adding 'kld_list="nvidia"' to /etc/rc.conf works fine. Is this still a problem with 12-ALPHA? This is almost certainly fixed in all now-supported releases; [0] and later follow-up allow us to grow the staging area as needed. Please reopen as needed. Thanks! [0] https://cgit.freebsd.org/src/commit/stand/efi/loader/copy.c?id=e6bb174c509e4834f5f276dd18fc81b802b7a0e5 |