2

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.

Tristus
  • 29

2 Answers2

2

Instead of building the mainline kernel with make and installing it with make install you probably are better to try building a debian packaging from the kernel source and installing the .debs. That way you can easily remove it too.

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 deb-pkg INSTALL_MOD_STRIP=1 cd .. sudo dpkg -i *deb

0

if you are using grub (which it looks like you are) press e on the boot entry to temporerally edit it and remove the line saying gfxpayload=keep.

I've had this same issue before and removing that grub option fixed it. To make this permanent edit the /etc/default/grub file and look for a line saying GRUB_GFXPAYLOAD_LINUX=keep and delete it.

Whoman
  • 1