Can't boot with nvidia driver loaded reddit / freebsd ---------------------------------------------------------------------- pascil · 2021-05-02 20:50 I don't know what is wrong but with the last FreeBSD versions before 13.0 the driver worked fine. As recommended by RoboNuggie I installed the latest nvidia-driver and added to the rc.conf:kld\_list="linux nvidia nvidia-modeset" and to the loader.conf:linux\_load="YES"nvidia\_load="YES"nvidia\_name ="nvidia"nvidia\_modeset\_load="YES"nvidia\_modeset\_name="nvidia- modeset" After I reboot I get this at booting: https://preview.redd.it/tpa6ump3qrw61.jpg?width=2604&format=pjpg&auto= webp&s=5d79252d19eb3edc4111185a1c5d336f66e64b52 I also used the installation guide, but I get the same result. It just loads until the last line and stands there forever. I haven't found anything on the internet so far that could solve this issue. Is there a way to boot into the system and unload the driver? ---------------------------------------------------------------------- novafire99 · 2021-05-02 21:34 Boot into single use mode, mount the file system writable and go edit the configuration file. Then reboot back to normal. ---------------------------------------------------------------------- Louth_Mouth · 2021-05-02 22:10 If you upgraded from 12, you should have ran "pkg update" , to get the latest nvidia driver ---------------------------------------------------------------------- edthesmokebeard · 2021-05-02 22:16 This is the Unix Way. ---------------------------------------------------------------------- DotaOnFreeBSD · 2021-05-02 23:16 Bug involving UEFI try legacy if possible ---------------------------------------------------------------------- grahamperrin · 2021-05-03 01:04 Good idea. Also … ---- >> … before 13.0 … /u/pascil from which version, *exactly*, did you upgrade? Does the system use ZFS and if so, do you have a boot environment from before the upgrade? I'm very familiar with part of what's in your screenshot. What make and model is the computer? HP, maybe? Please download an installer from https://www.freebsd.org/releases/13.0R/announce/#_download then add (to your opening post) photographs of attempts to boot *the installer* in UEFI and legacy modes. Thanks ### Postscript Given https://old.reddit.com/r/freebsd/comments/n3fmtg/-/gwqy898/ you should probably ignore this comment, instead try https://old.reddit.com/r/freebsd/comments/n3fmtg/-/gwqtn08/ first ---------------------------------------------------------------------- grahamperrin · 2021-05-03 01:06 `pkg upgrade` … although given the photograph, it seems that the bug is not driver- related. ---------------------------------------------------------------------- grahamperrin · 2021-05-03 01:08 A good idea, however what's in the photograph does not indicate a configuration issue. ---------------------------------------------------------------------- novafire99 · 2021-05-03 01:18 Probably is the video driver causing issues. Going to single user mode and disabling the driver and if it's booting to a desktop, temporary disable the gui so you go straight to the text login. Reboot, login and update the system and all packages from the command line. Would be probably a good idea to check the logs before updating to see if there are any errors on startup that didn't get displayed on the screen. ---------------------------------------------------------------------- gb_away_ · 2021-05-03 01:25 Do you really need the driver loaded so early? If not, then just keep the linux_load at the loader and nvidia-modeset at the rc (assuming you’re using drivers that allow mode setting - else just use nvidia) ---------------------------------------------------------------------- bakulsh · 2021-05-03 03:56 You don't need anything nvidia or linux related in /boot/loader.conf. This is all you need: rc.conf:`kld_list="linux nvidia-modeset"` To remove the loader.conf variables, option 2 (Boot single user) won't work as the loader will load everything specified in loader.conf and hang! Select option 3 (Escape to loader prompt), then to its prompt type the following. load boot/kernel/kernel include boot/device.hints boot -s This boots into single user mode without reading loader.conf. Hit return to get to shell prompt, then `mount -u /` to make the root FS writable. Then edit /boot/loader.conf to remove linux and nvidia related options. Now reboot. This has likely nothing to do with UEFI either. I am booting on a UEFI system. ---------------------------------------------------------------------- msh_03 · 2021-05-03 04:49 This is 100% caused by loading the nvidia module in loader.conf. I had this problem last week. Remove any nvidia lines and you’ll be good to go. Load the nvidia module in rc.conf The nvidia kernel modules are large, and it seems that they overflow whatever EFI space is reserved at boot (handwave handwave). ---------------------------------------------------------------------- grahamperrin · 2021-05-03 05:35 (Interesting, I should probably remove my earlier comments – thanks …) ---------------------------------------------------------------------- pascil · 2021-05-03 07:26 Thanks. I guess the FreeBSD docs and tutorials are out of date. ---------------------------------------------------------------------- grahamperrin · 2021-05-03 11:48 Outdated documentation is often found in search engines and elsewhere. I always begin at the FreeBSD home page to minimise the risk of finding outdated stuff. ---------------------------------------------------------------------- grahamperrin · 2021-05-05 02:31 Did this resolve the problem? ---------------------------------------------------------------------- Pollu_X · 2021-07-20 20:54 You sir are a legend, thank you. I also think that this is the same issue that has been patched recently: https://reviews.freebsd.org/D31121