The officially official Devuan Forum!

You are not logged in.

#1 Re: Hardware & System Configuration » [SOLVED] Compile own kernel » 2021-10-02 12:16:33

Hi Head_on_a_Stick

I took a look at your suggestions and I installed kernel 5.14.9, with the creation of .deb packages

First, upgraded the system

apt-get update && apt-get upgrade

Then installed some things

apt-get install -y build-essential libncurses5-dev libelf-dev libssl-dev dwarves

gcc I installed way before this

Now, copy of .config from /boot/config-5.10.0-8-amd64 and

make oldconfig
make menuconfig

I got some erros while compiling, and after searching a bit, I had to edit .config to change one line

CONFIG_SYSTEM_TRUSTED_KEYS=""

Finally,

make deb-pkg -j4

and, to install those .deb

dpkg -i linux-*.deb

This:

grub-mkconfig

was not needed.

Reboot and everything seems to be working fine.

Btw, compilation took 2h30m to finish on this core i3 3rd-gen, with 8gb ram and regular hdd.

Thanks!!

#2 Hardware & System Configuration » [SOLVED] Compile own kernel » 2021-09-29 17:47:28

nonsd
Replies: 2

Hello!

Last time I compiled my own kernel was a long (very long) time ago, kernel 2.6.x (only MBR + lilo)

Since then, in every distro I always kept the default kernel that was shipped. Now, with Chimaera (UEFI + GPT + GRUB), the default one is kernel 5.10.

I know that out there are a lot of tutorials with basic steps. But they seem to be a bit incomplete (sorry, I don't know how to be more clear on this.... )

What I would like to do is:

1) Keep kernel 5.10 as a safeguard (in case of any kernel panic when compiling any new/custom kernel)

2) Compile a new kernel using the config-5.10.0-8-amd64 (file located at /boot) as starting point

3) New kernel does not need to be packaged as .deb

- Do I need to compile a new kernel? No, 5.10 is working fine
- Why do I want to compile a new kernel? Well, why not?!?!

I will appreciate any help

Board footer

Forum Software