0% found this document useful (0 votes)
4 views9 pages

Tutorial2 Compiling Kernel

The document outlines the process of compiling the Linux kernel, highlighting its role as the main component of a Linux operating system and the interface between hardware and processes. It provides step-by-step instructions for downloading the kernel source code, verifying its integrity, and compiling it, including necessary commands and packages. Additionally, it mentions updating the initramfs and grub, followed by rebooting the system to apply changes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views9 pages

Tutorial2 Compiling Kernel

The document outlines the process of compiling the Linux kernel, highlighting its role as the main component of a Linux operating system and the interface between hardware and processes. It provides step-by-step instructions for downloading the kernel source code, verifying its integrity, and compiling it, including necessary commands and packages. Additionally, it mentions updating the initramfs and grub, followed by rebooting the system to apply changes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Compile Kernel

• The main component of a Linux


operating system (OS).
• The core interface between a
computer's hardware and its
processes.
• Managing resources as efficiently
as possible.

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

• Uname –r
• Link download kernel source-
code :
https://cdn.kernel.org/pub/linux/ke
rnel/v5.x/

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

• #wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-
5.6.4.tar.xz
• #unxz –v linux-5.6.4.tar.xz

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

• wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-
5.6.4.tar.sign
• gpg --verify linux-5.6.4.tar.sign
• gpg --recv-keys
647F28654894E3BD457199BE38DBBDC86092693E
• gpg --verify linux-5.6.4.tar.sign

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

Result in terminal

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Complie Kernel

• cd linux-5.6.4/
• sudo cp -v /boot/config-$(uname -r) .config
• sudo apt-get install build-essential libncurses-dev bison flex
libssl-dev libelf-dev
• make menuconfig
• sudo make -j 4 && sudo make modules_install -j 4 && sudo
make install -j 4

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

• sudo update-initramfs -c -k 5.6.4


• sudo update-grub
• reboot
• uname -r

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596
Compile Kernel

• Alogrithm of Kernel Core


:https://cstheory.stackexchange.com/questions/19759/core-
algorithms-
deployed?fbclid=IwAR3WihkHkbHbeH8jF3KQxqJiDZ-
D6H9naVAJUuXKu6PPnr5s-2SAj-Loi8A

Embedded Networking Research Group School of Elec. and Telecom - Hanoi University of Science and Technology
Email: [email protected] C9-411, Dai Co Viet str. 1, HBT, Hanoi Tel: +84-243-8693596

You might also like