LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > zeebra
User Name
Password

Notices


Rate this Entry

Configuring and compiling a Kernel "the old way"/KISS way..

Posted 02-14-2019 at 01:03 PM by zeebra
Updated 02-14-2019 at 01:11 PM by zeebra (style)

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.
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
3. Reconfigure bootloader

4. Reboot into new Kernel && test/verify


Anyone and everyone can configure and compile a Kernel.
Posted in Uncategorized
Views 896 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  1. Old Comment
    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 zeebra is offline
  2. Old Comment
    Another useful function for people who habitually compile their own Kernel and use
    Code:
    cp */old.conf ./.config
    is to use a command to list ALL the NEW symbols in a newer kernel.

    Code:
    make listnewconfig
    This ONLY works the first time! Ergo, no saving or editing .config before using this command.
    This step should only always be done directly after tar -xvf linux && cp */old.conf ./.config
    Posted 07-28-2021 at 06:24 PM by zeebra zeebra is offline
 

  



All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration