- Get Linux kernel source code from www.kernel.org
I choose linux-4.14.150.tar.gz to download the tarball

- decompress the tarball
tar -xvf linux-4.14.150.tar.xz
- Install build dependency tools
sudo apt-get install build-essential libncurses-dev bison flex libssl-dev libelf-dev
- Linux kernel default configuration
Linux kernel default configuration is named as
xxx_defconfig under arch/ folder,
cd linux-4.14.150/arch
find -name *defconfig | grep x86 -i
you will see following search results
./x86/configs/x86_64_defconfig
./x86/configs/i386_defconfig
./um/configs/x86_64_defconfig
the x86_64_defconfig only contains the ba

本文详细介绍从获取Linux内核源代码到定制配置、编译、安装全过程。涵盖下载源码、依赖安装、配置选择、编译技巧及模块与内核安装步骤。

1023

被折叠的 条评论
为什么被折叠?



