Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux5.15: boot process _seems_ stuck at "loading initramfs ..." #34035

Closed
leahneukirchen opened this issue Nov 11, 2021 · 13 comments
Closed

linux5.15: boot process _seems_ stuck at "loading initramfs ..." #34035

leahneukirchen opened this issue Nov 11, 2021 · 13 comments

Comments

@leahneukirchen
Copy link
Member

With 5.15, my boot process seems stuck at "loading initramfs ...", although if I input the encryption password, then it proceeds as usual.
By reading https://bbs.archlinux.org/viewtopic.php?pid=2001959 , I wonder whether this is caused by SYSFB_SIMPLEFB.

Originally posted by @dkwo in #33857 (comment)

@leahneukirchen
Copy link
Member Author

Note that we have the modules mentioned in https://bugs.archlinux.org/task/72645 already...

@dkwo
Copy link
Contributor

dkwo commented Nov 12, 2021

Indeed.
If it matters, I'm using booster initramfs generator (it's currently a pr in void), but from the forum post, it seems at least also mkinitcpio also has it, not sure about dracut.
I wonder if this new config option triggers some previously hidden kernel bug or race condition..
Would it be possible to disable it just for 5.15.2, to see if this is the culprit, without me recompiling void's kernel :) ?

@leahneukirchen
Copy link
Member Author

The thread suggests you need to add your fb drivers to the initrd. Please post which hardware you use.

@leahneukirchen
Copy link
Member Author

@dkwo try https://vuxu.org/~leah/tmp/linux5.15-5.15.1_1.x86_64.xbps which is built with CONFIG_SYSFB_SIMPLEFB=n, else same config.

@ghost
Copy link

ghost commented Nov 12, 2021

I might be experiencing the same problem (booting 5.15.1 hangs at "loading initial ramdisk"). I'm running on an intel cpu with the proprietary microcode from the intel-ucode package and an nvidia gpu with the proprietary drivers from the nvidia package. I do not have this problem on my thinkpad x200, which boots with no issues under linux 5.15.1 although it did seem to take a little longer than normal before advancing past "loading initial ramdisk" (this could just be my imagination)

@leahneukirchen
Copy link
Member Author

Feel free to try the kernel package linked above to check if it's SIMPLEFB.

Alternatively, try adding nvidia nvidia_modeset nvidia_uvm nvidia_drm as modules to your initramfs.

@dkwo
Copy link
Contributor

dkwo commented Nov 12, 2021

@leahneukirchen Could you build the musl version? sorry I forgot to mention

$ xuname
Void 5.15.1_1 x86_64-musl GenuineIntel uptodate rrnFFFFFF

My hardware is a thinkpad T460s, with intel cpu and integrated graphics.
Do you know what I should add to the initramfs?

@leahneukirchen
Copy link
Member Author

I think you can install it on musl just as well, or just extract ./boot/vmlinuz-5.15.1_1

For intel you need i915 afaiu.

@dkwo
Copy link
Contributor

dkwo commented Nov 12, 2021

Thank you, adding the i915 module to initram works.

$ xdowngrade linux5.15-5.15.1_1.x86_64.xbps
index: ignoring linux5.15-5.15.1_1, unmatched arch (x86_64)
index: 0 packages registered.
/bin/xdowngrade: failed to register all 1 packages.

So let me try extract it, just for the sake of science. :)

@dkwo
Copy link
Contributor

dkwo commented Nov 12, 2021

If I just extract and move to boot the file vmlinuz, then the boot process goes past "loading initram...", but then it drops a shell later on, presumably due to being non-musl. Thus I think the config option SYSFB_SIMPLEFB is responsible for that, and adding a module to initram as you suggested fixes the issue.
Thanks.

@leahneukirchen
Copy link
Member Author

The kernel certainly doesn't care which libc you use. ;)

But ok, we have a workaround now for intel, but not yet confirmed for Nvidia nor AMD.

I still think a plain old kernel should just display anything, so maybe reverting SYSFB_SIMPLEFB is the better way. Opinions?

@zdykstra
Copy link
Contributor

Requiring video modules to be in the initramfs will for sure break some people using ZFSBootMenu. In particular, some cards don't soft-reinit after a new kernel has been launched via kexec. We are forced to blacklist amdgpu, i915, nvidia and radeon in the 'stage 1' kernel/initramfs, so that the video card can be cleanly initialized by the final kernel.

I'd like to see the same behavior as all previous kernels retained, as that does seem to be a safer default.

@newbluemoon
Copy link
Contributor

newbluemoon commented Nov 12, 2021

My i686 box with nvidia390 and 5.15.2 is also stuck. Rebuilding the kernel with CONFIG_SYSFB_SIMPLEFB=n solved it and everything works as it should. No modules need to be added to the initramfs.

No problems with CONFIG_SYSFB_SIMPLEFB=y on i686-musl and nouveau as well as i686 (radeon) and x86_64-musl (amdgpu) with AMD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants