From 40eb4e45d48337dfcd748540fe25c5eb684e911d Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 9 Sep 2020 17:51:04 +0300 Subject: Install docs --- src/docs/Kernel.html | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 src/docs/Kernel.html (limited to 'src/docs/Kernel.html') diff --git a/src/docs/Kernel.html b/src/docs/Kernel.html new file mode 100644 index 0000000..eca1794 --- /dev/null +++ b/src/docs/Kernel.html @@ -0,0 +1,114 @@ + + + + + + +Kernel (Carbs Linux User Manual) + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Installation  

+
+
+

1.4 Kernel

+ +

Kernel isn’t managed under the main repositories, even though you could package +one for your personal use. Here is an example kernel package, +which you will need to reconfigure for your specific setup if you want to make +use of it. +

+

1.4.1 Obtaining the kernel sources

+ +

You can visit the https://kernel.org website to choose a kernel that you want +to install. Though only the latest stable and longterm (LTS) versions are +supported. +

+
+
Download the kernel and extract it
+$ wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.7.6.tar.xz
+$ tar xf linux-5.7.6.tar.xz
+
+Change directory into the kernel sources
+$ cd linux-5.7.6
+
+ +

1.4.2 Installing dependencies

+ +

In order to compile the kernel you will need to install some dependencies. You +will need libelf to compile the kernel. If you want to configure using the menu +interface you will also need ncurses. +

+
+
The package manager asks to install if you are building more than one package,
+so no need to run 'cpt i ...'
+$ cpt b libelf ncurses
+
+ +

In the vanilla kernel sources, you need perl to compile the kernel, but it can +be easily patched out. You will need to apply the following patch. Patch was +written by E5ten. You will need to obtain and +apply the patch in the kernel source directory. +

+
+
$ wget https://dl.carbslinux.org/distfiles/kernel-no-perl.patch
+$ patch -p1 < kernel-no-perl.patch
+
+ +

1.4.3 Compiling the kernel

+ +

Next step is configuring and building the kernel. You can check Gentoo’s kernel configuration guide +to learn more about the matter. Overall, Gentoo Wiki is a good place to learn +about configuration according to your hardware. The following will assume a +monolithic kernel. +

+
+
$ make menuconfig
+$ make
+$ install -Dm755 $(make -s image_name) /boot/vmlinuz-linux
+
+ +
+
+

+Next: , Previous: , Up: Installation  

+
+ + + + + -- cgit v1.2.3