Skip to content

Instantly share code, notes, and snippets.

@wooyey
Last active November 22, 2021 09:23
Show Gist options
  • Save wooyey/5e77481e51d899a4a1e98c472e18d968 to your computer and use it in GitHub Desktop.
Save wooyey/5e77481e51d899a4a1e98c472e18d968 to your computer and use it in GitHub Desktop.
Linux kernel howtos

Howtos for Linux kernel

Make deb package, compile

Needed packages for PopOS (Ubuntu?):

sudo apt-get install build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev bison dwarves zstd

Fetching kernel sources:

wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.4.tar.xz
tar Jxvf linux-5.15.4.tar.xz
cd linux-5.15.4

Using existing config to configure kernel:

cp /boot/config-`uname -r` .config
make oldconfig

Change lines with debian certs in .config:

CONFIG_SYSTEM_TRUSTED_KEYS=""
CONFIG_SYSTEM_REVOCATION_KEYS=""

And make deb package:

make -j`nproc` bindeb-pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment