View previous topic :: View next topic |
Author |
Message |
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Wed May 08, 2024 10:20 pm Post subject: Kernel panic (unable to mount rootfs on unknown block 0,0) |
|
|
Hi! I recently tried to manually setup a kernel following the handbook and I have been having some issues.
When I start the system from the manually setup kernel, it boots and then it says "Loading Linux (VERSION)" and Caps Lock starts blinking.
I have already found multiple forums posts here and on Reddit which have all mostly suggested setting CONFIG_FB, CONFIG_FB_EFI, CONFIG_FB_VGA etc.. which I have done.
I also have set the options to enable the I915 framebuffer drivers.
I thought the issue was with me not setting the required option for my EMMC storage on the laptop. I set that and the same Caps Lock blinking issue occurred.
Also I followed all the steps in the Handbook section "Configuring the kernel", the Intel article, Gentoo Kernel Configuration Guide, and the Framebuffer article.
I do not know what the issue is at this point, right now I am using a distribution kernel which I don't mind using but I would like to be able to get a manually configured kernel working.
I used make menuconfig to select the options.
This is my kernel config: https://hastebin.skyra.pw/hedidusewu.ini
This is lspci: https://hastebin.skyra.pw/epuyiteyiw.yaml
This is lsmod from the distribution kernel: https://hastebin.skyra.pw/epeveyadoc.css
This is lsusb: https://hastebin.skyra.pw/ixijefaciw.yaml
Laptop Specs:
Name: Ideapad 120S-14iAP
Processor: Intel(R) Pentium(R) CPU N4200 @ 1.10GHz
Graphics: Intel Corporation Apollo Lake [HD Graphics 505]
Memory: 4GB
Storage: 64GB EMMC (Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader)
Network: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth
Thank you!
Last edited by yaslam on Thu May 09, 2024 9:31 am; edited 2 times in total |
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 7:41 am Post subject: Fixed the blank screen and now I know the reason for thpanic |
|
|
So I managed to fix the blank screen by setting CONFIG_FRAMEBUFFER_CONSOLE to yes, I now know why the kernel panic is happening.
It is saying: "unable to mount rootfs on unknown block (0,0)" |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4291 Location: Bavaria
|
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4291 Location: Bavaria
|
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 12:11 pm Post subject: Hi |
|
|
Thank you! I will look into these links and will update on the progress here |
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 2:56 pm Post subject: cannot get it working |
|
|
So I've been looking at the links and I also enabled LPSS but I cannot get it to work. It still says unable to mount rootfs on unknown block (0,0).
I have triple checked checked my options and they seem correct from looking at those links. I do not know why it doesn't work.
I believe I will stick with the distribution kernel as it just works and I just cannot get the manually configured kernel to work.
Kernel config: https://hastebin.skyra.pw/wogumewova.ini |
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 3:09 pm Post subject: |
|
|
Or I might start over and redo the kernel configuration with one that already boots. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1695
|
Posted: Thu May 09, 2024 3:12 pm Post subject: |
|
|
yaslam wrote: | Hi! I recently tried to manually setup a kernel following the handbook and I have been having some issues.
When I start the system from the manually setup kernel, it boots and then it says "Loading Linux (VERSION)" and Caps Lock starts blinking.
Storage: 64GB EMMC (Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader) |
Because this is an eMMC and there is no initramfs as evidenced by the kernel message, the kernel assumes the device will be available by the time it looks for init synchronously.
However, all MMC and SD devices, including eMMC, are found asynchronously and the kernel can easily outrun their discovery. Here are the options to work around this:- Add the kernel paramenter rootwait to the loader or built in kernel options (this waits indefinitely for the device to be ready)
- Add the kernel paramenter rootdelay=<seconds> to the loader or built in kernel options (this waits <seconds>, which you replace with a real number, until the kernel fails if not found)
- Create an initramfs with dracut, genkernel or other methods. This can allow for an emergency shell to inspect what is happening when the device is not found. They can also try multiple times when the kernel alone will not
|
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 3:31 pm Post subject: |
|
|
grknight wrote: | yaslam wrote: | Hi! I recently tried to manually setup a kernel following the handbook and I have been having some issues.
When I start the system from the manually setup kernel, it boots and then it says "Loading Linux (VERSION)" and Caps Lock starts blinking.
Storage: 64GB EMMC (Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader) |
Because this is an eMMC and there is no initramfs as evidenced by the kernel message, the kernel assumes the device will be available by the time it looks for init synchronously.
However, all MMC and SD devices, including eMMC, are found asynchronously and the kernel can easily outrun their discovery. Here are the options to work around this:- Add the kernel paramenter rootwait to the loader or built in kernel options (this waits indefinitely for the device to be ready)
- Add the kernel paramenter rootdelay=<seconds> to the loader or built in kernel options (this waits <seconds>, which you replace with a real number, until the kernel fails if not found)
- Create an initramfs with dracut, genkernel or other methods. This can allow for an emergency shell to inspect what is happening when the device is not found. They can also try multiple times when the kernel alone will not
|
Oh my gosh. I added rootwait to the kernel parameters in /etc/default/grub and it is now able to boot! Thank you pietinger and grknight you guys are legends
I was in disbelief that it worked but it did! |
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 3:32 pm Post subject: |
|
|
Fantastic stuff |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4291 Location: Bavaria
|
|
Back to top |
|
|
yaslam n00b
Joined: 08 May 2024 Posts: 8
|
Posted: Thu May 09, 2024 5:06 pm Post subject: |
|
|
No problem. Thank you |
|
Back to top |
|
|
|