efi_check_space: Unable to expand staging area

riesebie

New Member

Reaction score: 3
Messages: 19

Hi all,
after installing FreeBSD 13 everything went fine. Once I put nvidia_load="YES" into /boot/loader.conf I get efi_check_space: Unable to expand staging area and the machine stops booting (frozen). Any help would be much aprreciated.
Thanks in advance
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,592
Messages: 37,913

Put that NVidia kernel mode in kld_list in rc.conf. You should really only add modules to loader.conf if they're required for booting the machine (the NVidia module isn't). And with a modern NVidia card you likely need to load nvidia-modeset instead.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,592
Messages: 37,913

Is this a ZFS or UFS install? Either way, you should be able to boot from the install media, choose the "Shell" option, then import and/or mount the filesystem from the machine so you can modify it.
 
OP
R

riesebie

New Member

Reaction score: 3
Messages: 19

It is a ZFS install. I booted the "Shell" option and got a ro filesystem. I tried to import my zpool via zpool import -R /mnt zroot but can't edit nor find /boot/loader.conf:(
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,592
Messages: 37,913

When you import a pool none of its filesystem will be mounted. Look for zroot/ROOT/default, that contains the 'root' filesystem (which includes /boot). Mount that, zfs mount zroot/ROOT/default. Then you should be able to access /mnt/boot/loader.conf.
 

Profighost

Member

Reaction score: 4
Messages: 33

I had the exact same problem. Thanks for clearing that up.
Point is, while make install the NVIDIA-driver writes the stuff in the /boot/loader.conf by itself:
Code:
nvidia_load="YES"
nvidia_name="nvidia"
nvidia_modeset_load="YES"
nvidia_modeset_name="nvidia-modeset"
hence the issue of this thread.

Also helpful to anyone else landing here having the same problem maybe another thread of this forum:
rc.conf kld_list delimiter
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,592
Messages: 37,913

while make install the NVIDIA-driver writes the stuff in the /boot/loader.conf by itself:
Only if you use the driver from the NVidia website itself. Which you shouldn't be using, use x11/nvidia-driver (it's the exact same driver but installs in a FreeBSD proper way). The "problem" with the NVidia driver installer is that it also replaces/overwrites a couple of X11 libraries and does a few other unwanted things. Besides that, if you install the port/package then you can more easily keep track of it (updates).
 

Profighost

Member

Reaction score: 4
Messages: 33

That's what I did: The driver from NVIDIA's website - you always shall use the most current driver available...*sigh*
...I'll keep that in mind... especially this "unwanted things" stuff...
Thanks for your valuable tipps
 

jb_fvwm2

Daemon

Reaction score: 204
Messages: 1,812

A line loading nvidia-modeset.ko in a v12 > v13 upgrade was a showstopper here. Glad to find this thread right away. I also had a v13 nvidia.ko to copy into the frozen-boot system to even get that
far, since the installworld left the v12 one in place.
.................
I'll have the line-removed-from loader.conf fix tested within a few hours from now on the otherwise-fully upgraded [ except for etcupdate -B system.
...............
BTW Re: etcupdate. I found the manual unclear, or maybe just me:
DESCRIPTION: ambiguous
DEFAULT MODE: half-ambiguous
except the last paragraph
BUILD MODE : ambiguous
DIFF MODE: unclear
RESOLVE MODE: I think this could have used paragraphs rather
than sentences for each item listed herein.
Posting here cause I don't think I'll ever become learned enough to
rewrite it, lack of time and expertise both.
 
Top