Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.01 KB

build_distros.md

File metadata and controls

42 lines (29 loc) · 1.01 KB

ramdisk

Build Evnironment

Your build enviromnent and dependences will depend on the linux distro you are using. In gnereal, you will need:

  • build-essentials or the equivalent, which is a C compiler and associated support tools
  • kernel headers for the specific version of the linux kernel you are using
  • kernel tools usually kmod or an equivalent package, for loading, querying and unloading kernel modules.

Dependencies

For convenience, you can use your package manager in your distro to install as follows:

Ubuntu 22.04 LTS

apt install build-essential linux-headers-$(uname -r) kmod 

Fedora 39

dnf groupinstall "Development Tools"
dnf install kernel-devel kmod

Alpine Linux

apk add build-base linux-headers alpine-sdk linux-lts-dev kmod lsblk e2fsprogs

Rapsberry OS

apt install build-essential raspberrypi-kernel-headers kmod 

CentOS

yum install -y dkms gcc kernel-devel-$(uname -r) kernel-headers-$(uname -r) make