<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 22, 2023 at 5:07 PM Dileep Sankhla <<a href="mailto:dileepsankhla.ds@gmail.com">dileepsankhla.ds@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Soumya,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 22, 2023 at 2:24 PM Soumya Negi <<a href="mailto:soumya.negi97@gmail.com" target="_blank">soumya.negi97@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Dileep,<br>
<br>
On Thu, Dec 21, 2023 at 05:58:23PM +0530, Dileep Sankhla wrote:<br>
> Hello,<br>
> <br>
> I have cloned and built the latest rc kernel using the default config but<br>
> on boot, it stucks at "Loading initial ramdisk". I have tried booting after<br>
> removing the "quiet" option from the kernel parameters just before<br>
> selecting the kernel from the grub menu. I have also tried adding<br>
> "dis_ucode_ldr" parameter to the initial parameters but all in vain.<br>
> <br>
> How to look for the underlying issue and solve it?<br>
> <br>
> Regards,<br>
> Dileep<br>
<br>
I had this issue as well. I found a solution on stackexchange(..I think)<br>
that I wanted to link here.. but can't seem to find it now. For reference, I<br>
was using Ubuntu. This was my case:<br>
<br>
* Possible reason - initrd.img file is too large<br>
I checked the size of initrd.img-<kernel name> at /boot. The file was ~500mb,<br>
much larger than the initrd for the kernel that came with Ubuntu(~40mb)<br>
<br>
* Possible solution - <br>
Before installing the kernel, change MODULES=most to MODULES=dep in <br>
/etc/initramfs-tools/initramfs.conf to generate smaller initrd.img files.<br>
The new initrd's for all other kernels I have installed afterwards have been<br>
~55MB.<br></blockquote><div><br></div><div>Thanks for your solution. Mine is fine in size and I am already using MODULES=dep.<br></div></div></div></blockquote><div><br></div><div>Sorry, my bad. I thought 18M was good enough but after asking this on LinuxQuestions.org, I got to know that it was not sufficient for the boot success (see [1]). Copying the <span style="color:rgb(0,0,0);font-size:13.3333px;background-color:rgb(255,255,255)"><font face="arial, sans-serif" style="">existing kernel version's config from `/boot` and running `make olddefconfig` solved the size issue for me. It is now ~78M. The size of the kernel's </font></span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13.3333px">initrd </span><span style="font-family:arial,sans-serif;color:rgb(0,0,0);font-size:13.3333px">that I was using earlier is ~71M.</span></div><div><span style="font-family:arial,sans-serif;color:rgb(0,0,0);font-size:13.3333px"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Regards,<br>
Soumya Negi </blockquote><div><br></div><div>Regards,</div><div>Dileep. </div></div></div></blockquote><div><br></div><div><br class="gmail-Apple-interchange-newline">Regards,</div><div>Dileep </div><div><br></div><div>[1]: <a href="https://www.linuxquestions.org/questions/linux-newbie-8/boot-freezes-at-loading-initial-ramdisk-4175732025/#post6472047">https://www.linuxquestions.org/questions/linux-newbie-8/boot-freezes-at-loading-initial-ramdisk-4175732025/#post6472047</a></div></div></div>