View previous topic :: View next topic |
Author |
Message |
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 266
|
Posted: Sun Nov 17, 2024 10:29 am Post subject: Kernel doesn't load on Lenovo X1 Carbon 12th Gen (no output) |
|
|
I have a Lenovo X1 Carbon 12th Gen and the Linux kernel directly crashes immediately after loading. I probably missed some important kernel config, but I don't have any clue which one.
Configuration
Boot manager: refind (refind does load)
Kernel: 6.11.8 with EFI stub support
Partition layout: nvme0n1p1 (EFI System), ..., nvme01p4 (Linux Swap), nvme01p5 (Linux Root), nvme01p6 (Linux Home)
Output on console after invoking Gentoo from refind
Code: | Starting vmlinuz-6.11.8-gentoo.efi
Using load options 'udev.log_priority=5 emergency initrd=\EFI\Gentoo\initramfs-6.11.8.img'
EFI stub: Loaded initrd from command line option | After that: nothing (no disk activity, no flashing keyboard lights, nada, ...)
he kernel does not use any modules, everything is built-in statically. The initramfs does not contain anything critical but only contains the firmware for the Bluetooth adapter, wifi adapter and intel microcode. Some (not all) potentially relevant kernel settings Code: | CONFIG_FB=y
CONFIG_FB_EFI=y
CONFIG_FB_SIMPLE=y
CONFIG_DRM=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_I915=y
CONFIG_X86_VERBOSE_BOOTUP=y
CONFIG_EARLY_PRINTK=y
CONFIG_BLK_DEV_NVME=y
CONFIG_NVME_MULTIPATH=y
CONFIG_NVME_HWMON=y | Link to complete kernel config: https://pastebin.com/L7XDLUVf
Note, the recent Gentoo Minimal Install Image does actually boot in UEFI mode, so it is probably something wrong with my kernel. What am I missing?[/bug] |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5115 Location: Bavaria
|
Posted: Sun Nov 17, 2024 11:02 am Post subject: |
|
|
I can see from your kernel configuration that you have some experience with it. Everything is configured for the console and also for accessing the hard disk. But it could be that you have a special PCI controller. Boot again with the MinimalCD and do a “lspci -nnk” and check if you need the kernel module “vmd” (which is very often used in Intel machines). If so, this is exactly what is missing (# CONFIG_VMD is not set). (See also: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Accessing_the_Root_Partition )
Also missing:
Code: | # CONFIG_FB_EFI is not set
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_X86_INTEL_LPSS is not set |
without this module these module (you have already enabled) will never work:
Code: | CONFIG_MFD_INTEL_LPSS=y
CONFIG_MFD_INTEL_LPSS_PCI=y |
Maybe you need also (depends on your machine):
Code: | # CONFIG_EFI_HANDOVER_PROTOCOL is not set |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 266
|
Posted: Sun Nov 17, 2024 11:13 am Post subject: |
|
|
I assume I do not need the kernel module "vmd". lspci from the installation media does not list it. Here ist the pastebin for lspci: https://pastebin.com/Y0JuUngQ |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5115 Location: Bavaria
|
Posted: Sun Nov 17, 2024 11:23 am Post subject: |
|
|
Uii ... a brand new MeteorLake ... please check with "dmesg | grep firmware" - after booting with our LIVECD (not the minimalCD; because of graphics driver) - needed firmware files, and put it into CONFIG_EXTRA_FIRMWARE. Does this help (together with my already mentioned changes)? _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5115 Location: Bavaria
|
|
Back to top |
|
|
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 266
|
Posted: Sun Nov 17, 2024 11:44 am Post subject: |
|
|
I enabled CONFIG_VMD and CONFIG_EFI_HANDOVER_PROTOCOL to give it a try. No luck with that. (But I did expect that.)
I will try the Live Image. I am downloading ... However, please note that the Minimal Installation CD is able to boot and uses i915. So I doubt it is a firmware problem, but I will try anyway.
The minimal installation CD loaded the following FW files:- regulatory.db
- regulatory.db.p7s
- iwlwifi-ma-b0-gf-a0-83.ucode
- iwlwifi-ma-b0-gf-a0.pnvm
- iwl-debug-yoyo.bin
- intel/ibt-0180-0041.sfi
- intel/ibt-0180-0041.ddc
- intel/sof-ipc4/mtl/sof-mtl.ri
I already have put those FW into my initramfs except for iwl-debug-yoyo.bin, because I wasn't able to find out which Gentoo Package provides that one. Note that the minimal installation CD is able to use FB on i915 without any graphics FW. Hence, I expect the Live Image to show nothing else. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5115 Location: Bavaria
|
Posted: Sun Nov 17, 2024 12:08 pm Post subject: |
|
|
nagmat84 wrote: | [...] Note that the minimal installation CD is able to use FB on i915 without any graphics FW. Hence, I expect the Live Image to show nothing else. |
Yes ... but you have enabled your i915 statically into the kernel (and then you need the firmware files also already in your kernel; your initramfs would be too late). The LiveCD has i915 as module and therefore can load the firmware files from /lib/firmware (because all modules which are NOT statically configured will be loaded/initialized AFTER the kernel has access to the root partition).
P.S.: The module CONFIG_X86_INTEL_LPSS is most important (because it initializes some chipsets). _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 266
|
Posted: Sun Nov 17, 2024 1:43 pm Post subject: |
|
|
I tried to other things, both without success:
I compiled my kernel with i915 as a module in case this had been the culprit and loaded to early. There is no difference, the kernel hangs directly after loading the initramfs.
I booted from the Live CD. The module intel_vpu of Live CD tried to load some additional firmware "vpu_37xx.bin, "mtl_vpu.bin" and "intel/vpu/vpu_37xx_v0.0.bin". However this failed as the FW was not available. But this does not seem to be related to graphics. |
|
Back to top |
|
|
|