I need to develop some stuff in the kernel for my honours project but im stuck at simply getting a stock kernel to compile and boot.
I've followed a few recipes but all of them just result in the following messages with NO other output or errors:
Loading Linux 5.7.11 ...
Loading initial ramdisk ...
After that it just stops. I've left it for hours with no change.
I've tried removing as many variables as possible and am mainly following this tutorial: https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html.
I've also done the exact same tutorial on VirtualBox and it works fine, so I'm thinking it's something specific to my Lenovo Ideapad S145. But I just don't know where to start debugging as there is just no output or error messages at all.
I should also add that I'm using Ubuntu 20.04.1 LTS.
Thanks in advance.
Edit: The exact process I use for comipling and installing is:
Download the latest stable from https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.7.11.tar.xz
unxz -v linux-5.7.11.tar.xz
tar -xvf linux-5.7.11.tar.xz
cd linux-5.7.11
cp /boot/config-5.4.0-42-generic .config
make menuconfig
Then I dont change anything and just save straight away
make -j 4
sudo make modules_install
sudo make install
The "make install" part does all the grub setup for me, then I just reboot and it gets stuck. These exact steps work on virtualbox but dont on my real Lenovo laptop.
journalctl -e -b 1
to see the log output of the last boot, or else edit/etc/default/grub
in a working kernel, find the line that starts GRUB_CMDLINE_LINUX_DEFAULT and you'll probably seequiet splash
, alter that todebug
and save, then runsudo update-grub
and reboot to the broken kernel; you'll then see the output of the boot log as you boot. Hopefully, this will give some indication of the problem. – Dan Scally Jul 31 '20 at 05:19debian/rules
. Usingmake install
is completely wrong. – Pilot6 Aug 02 '20 at 08:45