From Dave’s Garage.
Dave shows you how to git clone the Linux kernel, build it, and run it live!
Free Sample of my Book on the Spectrum: https://amzn.to/3zBinWM
Secrets of the Autistic Millionaire: https://amzn.to/3WNDDkJ
Watch ShopTalk Now on Dave’s Attic: https://youtu.be/K4SerxOE1q4
Follow me on X: https://x.com/davepl1968
Facebook: https://www.facebook.com/davepl
—-
# 1. Clone the Linux kernel repository
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
# 2. (Optional) Check out a specific version
git checkout v6.6
# 3. Install dependencies
sudo apt update
sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
# 4. Generate the default config
make defconfig
# 5. Build the kernel
make -j$(nproc)