Configuring and compiling a Kernel "the old way"/KISS way..
Ok, so the previous entry became long and complex. So here is a KISS version of the post:
How to configure and compile a Kernel the easy, generic way. Core procedure.
1. Download Kernel --> /usr/src
2.
3. Reconfigure bootloader
4. Reboot into new Kernel && test/verify
Anyone and everyone can configure and compile a Kernel.
How to configure and compile a Kernel the easy, generic way. Core procedure.
1. Download Kernel --> /usr/src
2.
Code:
1# cd /usr/src 2# tar -xvf linux(x).tar.xz 3# cd linux(x) 4# make clean && make mrproper (#(cp ../config ./.config) 6# make menuconfig (save) 7# make -j3 8# make modules && make modules_install 9# make install
4. Reboot into new Kernel && test/verify
Anyone and everyone can configure and compile a Kernel.
Total Comments 2
Comments
-
Hint. Many distroes is missing the appropriate c-devel packages, including ncurses (menuconfig) and some devel-libs to be able to do this. You have to work out the quirks for your distro.. Even things like GCC and make..
Posted 10-04-2020 at 05:27 AM by zeebra -
Another useful function for people who habitually compile their own Kernel and useCode:
cp */old.conf ./.config
Code:make listnewconfig
This step should only always be done directly after tar -xvf linux && cp */old.conf ./.configPosted 07-28-2021 at 06:24 PM by zeebra