Gentoo Kernel Panic

I installed Gentoo many times on VirtualBox with NVMe disk simulation. Yesterday I decided to install it on my hardware. I rebooted system and… Kernel Panic. I tried to edit fstab, grub.cfg etc. In kernel config all needed options is compiled in (I compiled kernel, btw). I tried solve problem with ChatGPT, Copilot, Gemini and nothing worked. I don’t use initramfs and I don’t wanna. I have got of course OpenRC on it.

Sorry for dirty screen!

Seems like it lacks nvme support, or whatever your MB is using.

I compiled in these options:

My menuentry in grub.cfg:

I’m not gonna walk you through kernel config.
This kind of thing is trial by fire - if you want to do it, better learn fast.
Also, hadn’t compiled any kernels since 2.4.x

One hint: no initrd means no support for <M> during boot.

1 Like

Then I should try do the 's on <*>?

M’s*

Is the module “nvme” set as builtin?
what is the partition layout of the device in question?
never seen two initrd images like that before.

You compiled the NVMe drivers as modules, but modules only become available after mounting the rootfs. Compile them in statically, using the <*> options.

1 Like

I compiled and it didn’t work.

Module nvme is set as compiled now, nvme0n1p1 - efi, nvme0n1p2 - root, nvme0n1p3 - home, I don’t know why I have got 2 initrd images.

1 Like

try specifying root= via partuuid instead of block path.

OK, I am gonna try this.

No, it didn’t work.

1 Like

i now suspect hardware failure of the device.

Others OSes worked, for example Arch, Windows.

But I have Intel’s disk, of course Intels’ disks isn’t very very good.

1 Like

i have several intel nvme devices. they all work fine.
does gentoo kernel have a functioning defconfig you can compare to?

1 Like

No, I suspect one thing: Gentoo’s handbook’s kernel config was did for initramfs and i think some blocks was set on module, but without initramfs they have to be compiled

1 Like

you already are using 2 initrd images according to your grub config. why not also use the recommended one for now just to identify what components you need?

1 Like

Grub automaticly created these two initrd images, I don’t have any other.