Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic (unable to mount rootfs on unknown block 0,0)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Wed May 08, 2024 10:20 pm    Post subject: Kernel panic (unable to mount rootfs on unknown block 0,0) Reply with quote

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
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 7:41 am    Post subject: Fixed the blank screen and now I know the reason for thpanic Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4291
Location: Bavaria

PostPosted: Thu May 09, 2024 11:31 am    Post subject: Reply with quote

yaslam,

Welcome To Gentoo Forums ! :D

You are surely missing a module so kernel is able to reach its root partition. We have a good post here:
https://forums.gentoo.org/viewtopic-p-8688524.html#8688524

Have also a look into: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves

(or start at the beginning here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4291
Location: Bavaria

PostPosted: Thu May 09, 2024 11:54 am    Post subject: Reply with quote

P.S.: A quick look to your config shows me a missing # CONFIG_X86_INTEL_LPSS is not set

(This module powers on in many Intel notebooks other system components; maybe this is the only missing setting, but please check the complete https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 12:11 pm    Post subject: Hi Reply with quote

pietinger wrote:
P.S.: A quick look to your config shows me a missing # CONFIG_X86_INTEL_LPSS is not set

(This module powers on in many Intel notebooks other system components; maybe this is the only missing setting, but please check the complete https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration )


Thank you! I will look into these links and will update on the progress here
Back to top
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 2:56 pm    Post subject: cannot get it working Reply with quote

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
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 3:09 pm    Post subject: Reply with quote

Or I might start over and redo the kernel configuration with one that already boots.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1695

PostPosted: Thu May 09, 2024 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 3:32 pm    Post subject: Reply with quote

Fantastic stuff
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4291
Location: Bavaria

PostPosted: Thu May 09, 2024 4:24 pm    Post subject: Reply with quote

yaslam wrote:
Fantastic stuff

Uuuh ... I must say sorry ... I have overlooked (not read exactly) that you have a MMC ... :oops: ... yes, for this we have:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Commandline_Parameter#Parameter:_rootwait

Have fun with Gentoo ! :D
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 8

PostPosted: Thu May 09, 2024 5:06 pm    Post subject: Reply with quote

pietinger wrote:
yaslam wrote:
Fantastic stuff

Uuuh ... I must say sorry ... I have overlooked (not read exactly) that you have a MMC ... :oops: ... yes, for this we have:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Commandline_Parameter#Parameter:_rootwait

Have fun with Gentoo ! :D


No problem. Thank you :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum