Skip to contentSkip to conversation

Need help with compiling kernel

DISCUSSION Ankita Pareek 3 participants 3 messages Feb 27, 2021 – Apr 5, 2021

lore
Share & tools
lore
#0 lore raw

Hello everyone!
I'm Ankita Pareek from India. I'm applying for Outreachy this year and I would love to contribute to Linux Kernel.
I'm a newbie and thus started off with compiling my own kernel following this tutorial -->
https://kernelnewbies.org/OutreachyfirstpatchSetup?action=show&redirect=OPWfirstpatchSetup
I'm able to successfully build and install the kernel on my native Ubuntu 20.04 and it also gets updated in the grub boot menu. But when I try to boot into that newly compiled kernel it gets stuck at "*Loading initial ramdisk ...*" and I'm not able to boot into it. Here are some things that I tried to fix this problems -

- I waited for almost 2-3 hours after that to boot into the new kernel but it still showed the same message.
- Then I tried changing the 'GRUB_CMDLINE_LINUX' parameter to 'debug' for checking the log messages but couldn't find any logs.
- Some answers on Google about this said that it was possibly because Secure boot was enabled so I tried compiling and booting by disabling Secure boot but still same problem exists.
- Then I tried compiling the kernel on a VM and it was successful and I could boot into it. But the VM makes the system very slow and thus I wish to compile and run the kernel on my native Linux machine.

What could be the possible reason and fix for this problem? Can someone please help me with this? I've been stuck on this for almost a week now so any help would be really great!

Thanks

#1 lore raw
Quoted 6 lines · Ankita Pareek

Hello everyone!
I'm Ankita Pareek from India. I'm applying for Outreachy this year and I would love to contribute to Linux Kernel.
I'm a newbie and thus started off with compiling my own kernel following this tutorial --> https://kernelnewbies.org/OutreachyfirstpatchSetup?action=show&redirect=OPWfirstpatchSetup
I'm able to successfully build and install the kernel on my native Ubuntu 20.04 and it also gets updated in the grub boot menu. But when I try to boot into that newly compiled kernel it gets stuck at "Loading initial ramdisk ..." and I'm not able to boot into it. Here are some things that I tried to fix this problems -

Quoted 6 lines

I waited for almost 2-3 hours after that to boot into the new kernel but it still showed the same message.
Then I tried changing the 'GRUB_CMDLINE_LINUX' parameter to 'debug' for checking the log messages but couldn't find any logs.
Some answers on Google about this said that it was possibly because Secure boot was enabled so I tried compiling and booting by disabling Secure boot but still same problem exists.
Then I tried compiling the kernel on a VM and it was successful and I could boot into it. But the VM makes the system very slow and thus I wish to compile and run the kernel on my native Linux machine.

What could be the possible reason and fix for this problem? Can someone please help me with this? I've been stuck on this for almost a week now so any help would be really great!

Hi Ankita,

It's strange that you have been able to boot itto same kernel[I assume] in VM but not on your machine. Probably something went wrong while installing the modules on your machine. Which rc version did you try to install?

I'm free for few hours right now. If you can come on IRC, we can try to debug the problem. I'm 'vaishali' on both freenode and OFTC. Just ping me there.

Quoted 6 lines

Thanks

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/313f5f12-4bce-4f6d-ae23-d76cf0ff60e2n%40googlegroups.com.

Signature · 1 line
Vaishali
#2 lore raw

Hi,

I am having the same issue. Can you help me out on this, Ankita? I am having troubles joining the IRC rn.

Thanks in adv.

Regards,
- Ali

Quoted 57 lines · On Saturday, February 27, 2021 at 3:33:23 PM UTC+5:30 Vaishali Thakkar wrote:
Quoted 3 lines · Ankita Pareek

Hello everyone!
I'm Ankita Pareek from India. I'm applying for Outreachy this year and I

would love to contribute to Linux Kernel.

Quoted 1 line

I'm a newbie and thus started off with compiling my own kernel following

this tutorial -->
https://kernelnewbies.org/OutreachyfirstpatchSetup?action=show&redirect=OPWfirstpatchSetup

Quoted 1 line

I'm able to successfully build and install the kernel on my native

Ubuntu 20.04 and it also gets updated in the grub boot menu. But when I try to boot into that newly compiled kernel it gets stuck at "Loading initial ramdisk ..." and I'm not able to boot into it. Here are some things that I tried to fix this problems -

Quoted 2 lines

I waited for almost 2-3 hours after that to boot into the new kernel but

it still showed the same message.

Quoted 1 line

Then I tried changing the 'GRUB_CMDLINE_LINUX' parameter to 'debug' for

checking the log messages but couldn't find any logs.

Quoted 1 line

Some answers on Google about this said that it was possibly because

Secure boot was enabled so I tried compiling and booting by disabling Secure boot but still same problem exists.

Quoted 1 line

Then I tried compiling the kernel on a VM and it was successful and I

could boot into it. But the VM makes the system very slow and thus I wish to compile and run the kernel on my native Linux machine.

Quoted 2 lines

What could be the possible reason and fix for this problem? Can someone

please help me with this? I've been stuck on this for almost a week now so any help would be really great!

Hi Ankita,

It's strange that you have been able to boot itto same kernel[I assume] in VM
but not on your machine. Probably something went wrong while installing the modules on your machine. Which rc version did you try to install?

I'm free for few hours right now. If you can come on IRC, we can try to debug the problem. I'm 'vaishali' on both freenode and OFTC. Just ping me there.

Quoted 4 lines

Thanks

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 1 line

To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/313f5f12-4bce-4f6d-ae23-d76cf0ff60e2n%40googlegroups.com
.

Signature · 1 line
Vaishali