I'm trying to compile and install my own Kernel. Right now the issue is that after installing and trying to boot into the Kernel, I'm stuck on the "Loading init ramdisk" message.

My steps are following:

  1. Download the Kernel from https://kernel.org (4.13.2)
  2. Extract the tar.xz package and modify the source (I needed to add one line into intel-lpss-pci.c module).
  3. Open Terminal
  4. terminal -> cd [the extracted folder path]
  5. terminal -> make oldconfig, just clicking Enter until it's done
  6. terminal -> make menuconfig, exit (and save if I get that prompt). I don't do any changes cause I don't think I should fiddle with them if I don't know what I'm doing
  7. terminal -> make -j 4
  8. terminal -> make modules -j4
  9. terminal -> depmod -a
  10. terminal -> sudo make modules_install
  11. terminal -> sudo make install
  12. terminal -> cd to /boot/
  13. terminal -> sudo mkinitramfs -ko initrd.img-4.13.2 4.13.2
  14. terminal -> sudo update-grub
  15. reboot and try to launch the Kernel.

I got through the "Loading init ramdisk" message once, but after that I just had a blinking textcursor for a while and then message the following message:

"Gave up waiting for root device. Common problems: — Boot args (cat /proc/cmdline) — Check rootdelay= (did the system wait long enough?) — Check root= (did the system wait for the right device?) — Missing modules (cat /proc/modules; ls /dev) ALERT! UUID=26c82e2e-e58e-4559-be76-fe281b33476e does not exist. Dropping to a shell!

BusyBox v.1.22.1 (Ubuntu 1:1.22.0-1ubuntu1) built-in shell (ash)
Enter 'help' for list of built-in commands."

What am I doing wrong, which of the steps am I doing wrong?

  • Hard to know and custom kernels are not well supported as it is complex. I would use localmodconfig rather than make oldconfig. See askubuntu.com/questions/718381/… – Panther Sep 18 '17 at 17:16
  • You do everything wrong. It is too broad to answer. – Pilot6 Sep 18 '17 at 17:19
  • @Pilot6 is there a guide somewhere that I should follow? I've seen a couple and I've done every action according to them... :| – F4irline Sep 18 '17 at 17:21
  • There is a lot of guides. It is wrong to download a mainline kernel, it is wrong to install the kernel this way, etc. You should download an Ubuntu kernel and build it a Debian way. Then install deb files, not make install. – Pilot6 Sep 18 '17 at 17:23
  • 2
    Possible duplicate of A newbie asking about recompiling kernel – Pilot6 Sep 18 '17 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.