Bug 234074 - Modules aren't loaded at boot time
Summary: Modules aren't loaded at boot time
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-16 20:22 UTC by frank.ebert
Modified: 2019-04-03 07:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description frank.ebert 2018-12-16 20:22:10 UTC
Since upgrading from FreeBSD 11.2/amd64-RELEASE to 12.0/amd64-RELEASE (UEFI) I have the problem, that, when booting, different modules that where configured in /boot/loader.conf, weren’t loaded.

Sometimes it happens that zfs.ko was not loaded with the result, that the computer keeps hanging on "mountroot>“. Even then when I enter "zfs:zroot/ROOT/default“ nothing happens, as expected.

I had to boot several times, since the zfs.ko is loaded. But even then either vmm.ko or nvidia-modeset.ko is missing.

This special problem never occurred in FreeBSD 11.2.

Here is the way I upgraded my machine:

freebsd-update upgrade -r 12.0-RELEASE
freebsd-update install
shutdown -r now
freebsd-update install
pkg-static install -f pkg
pkg upgrade
freebsd-update install
shutdown -r now

At this point the problem occurred. After that, I upgraded the zfs pools with zpool upgrade and wrote the new boot code for the UEFI. But the problem still exists.

AMD Ryzen Threadripper 1950X on ASUS ROG Strix X399-E, Nvidia GeForce GTX 1050 Ti

/boot/loader.conf:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
vfs.zfs.min_auto_ashift=12
zfs_load="YES"
amdtemp_load="YES"
nvidia-modeset_load="YES"
vmm_load="YES"
vfs.zfs.arc_max="8G"
Comment 1 frank.ebert 2018-12-24 06:22:33 UTC
Sounds like https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201679

Some bootmessages:

/boot/kernel/amdsmn.ko size 0x2268 at 0x3f67000
/boot/kernel/vmm.ko \
elf64_obj_loadimage: read failed

/boot/kernel/vmm.ko |
elf64_obj_loadimage: read failed

can't load file '/boot/kernel/vmm.ko': input/output error
/boot/entropy size=0x1000
.../boot/kernel/amdsmn.ko size 0x2268 at 0x3f67000
/boot/kernel/vmm.ko \
elf64_obj_loadimage: read failed

/boot/kernel/vmm.ko |
elf64_obj_loadimage: read failed

can't load file '/boot/kernel/vmm.ko': input/output error
/boot/entropy size=0x1000
...
Comment 2 frank.ebert 2019-04-03 07:47:06 UTC
Update: The system boots fine, when loading the modules in /etc/rc.conf and not /boot/loader.conf.

/etc/rc.conf: "kld_list=nvidia-modeset nvidia"