FreeBSD 15.1 kernel crashes on ThinkPad T470

Hello!

I just upgraded my T470 laptop from FreeBSD 15 patch level 10 to the brand new 15.1-RELEASE. I did:

freebsd-update upgrade -r 15.1-RELEASE
freebsd-update install
shutdown -r now
Waiting for the system to come up, I realized it is in a loop, kernel crashing on boot.

Attached is core text. Just guessing, but this crash may have something to do with the display driver.
I have the crash dump from /var/crash, but this forum does now allow uploading it gzipped.

Can anyone help? Thanks

EDIT: I can boot with the old kernel just fine, using "boot kernel.old". I did that and
commented out:

fbsd15:~ $ grep 915 /etc/rc.conf
#kld_list="i915kms"

After that, the new 15.1-RELEASE kernel boots.

EDIT 2: I was able to fix this crash by running:

pkg update
pkg upgrade
 

Attachments

I had the same on an AMD system with KDE. The system crashes because of an ABI-change in the i915kms kernel module. Disable old kernel modules or remove them first (in my case drm-latest-kmod and realtek-re-kmod). Also disable a possible autostarting DM (sddm on my side). I show you what I did. Please change the lines according to your needs:

Code:
doas freebsd-update upgrade -r 15.1-RELEASE
doas freebsd-update install
doas pkg remove drm-latest-kmod realtek-re-kmod
doas sysrc sddm_enable=NO
doas shutdown -r now

I was without any NIC! I had to connect a Eth2USB dongle (ue0) to get network again.
Code:
ifconfig -a
doas dhclient ue0

After that continue install:
Code:
doas freebsd-update install
doas freebsd-update install
doas pkg install realtek-re-kmod drm-latest-kmod
doas pkg upgrade
doas sysrc sddm_enable=YES

Don't forget to update your Bootloader. I used
Code:
doas pkg install loaders-update
doas loaders-update show-me
doas loaders-update shoot-me
doas shutdown -r now
 
The system crashes because of an ABI-change in the i915kms kernel module.
No, the ABI didn't change (that's a userspace thing). The kernel's LinuxKPI compatibility changed, and the Intel/AMD/NVidia DRM drivers depend on those LinuxKPI kernel features. A DRM kernel driver module built for 15.0 will absolutely crash the entire system when you try to load it in a 15.1 kernel.
 
Back
Top