Difference between revisions of "Handbook:X86/Blocks/Kernel"

From Gentoo Wiki
Jump to:navigation Jump to:search
(Marked this version for translation)
(Marked this version for translation)
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
</noinclude>
 
</noinclude>
  
<!--T:2-->
+
<!--T:4-->
{{Handbook:AMD64/Blocks/Kernel}}
+
For {{Keyword|x86}} architectures, verify the ''64-bit kernel'' option ''unset'', and select the processor family as appropriate for the machine's processor.
 +
 
 +
<!--T:5-->
 +
{{KernelBox|1=
 +
[ ] 64-bit kernel
 +
Processor type and features  --->
 +
    Processor family (Core 2/newer Xeon)  --->
 +
        ( ) 486
 +
        ( ) 586/K5/5x86/6x86/6x86MX
 +
        ( ) Pentium-Classic
 +
        ( ) Pentium-MMX
 +
        ( ) Pentium-Pro
 +
        ( ) Pentium-II/Celeron(pre-Coppermine)
 +
        ( ) Pentium-III/Celeron(Coppermine)/Pentium-III Xeon
 +
        ( ) Pentium M
 +
        ( ) Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon
 +
        ( ) K6/K6-II/K6-III
 +
        ( ) Athlon/Duron/K7
 +
        ( ) Opteron/Athlon64/Hammer/K8
 +
        ( ) Crusoe
 +
        ( ) Efficeon
 +
        ( ) Winchip-C6
 +
        ( ) Winchip-2/Winchip-2A/Winchip-3
 +
        ( ) AMD Elan
 +
        ( ) GeodeGX1
 +
        ( ) Geode GX/LX
 +
        ( ) CyrixIII/VIA-C3
 +
        ( ) VIA C3-2 (Nehemiah)
 +
        ( ) VIA C7
 +
        (*) Core 2/newer Xeon
 +
        ( ) Intel Atom
 +
}}
 +
 
 +
=== Compiling and installing === <!--T:6-->
 +
 
 +
<!--T:7-->
 +
With the configuration now done, it is time to compile and install the kernel. Exit the configuration and start the compilation process:
 +
 
 +
<!--T:8-->
 +
{{RootCmd|make && make modules_install}}
 +
 
 +
 
 +
<!--T:9-->
 +
{{Note|It is possible to enable parallel builds using {{c|make -jX}} with <code>X</code> being an integer number of parallel tasks that the build process is allowed to launch. This is similar to the instructions about {{Path|/etc/portage/make.conf}} earlier, with the <var>MAKEOPTS</var> variable.}}
 +
 
 +
<!--T:10-->
 +
When the kernel has finished compiling, copy the kernel image to {{Path|/boot/}}. This is handled by the {{c|make install}} command:
 +
 
 +
<!--T:11-->
 +
{{RootCmd|make install}}
 +
 
 +
<!--T:12-->
 +
This will copy the kernel image into {{Path|/boot/}} together with the {{Path|System.map}} file and the kernel configuration file.
  
 
<!--T:3-->
 
<!--T:3-->

Revision as of 19:58, 25 October 2021


For x86 architectures, verify the 64-bit kernel option unset, and select the processor family as appropriate for the machine's processor.

KERNEL
[ ] 64-bit kernel
Processor type and features  --->
    Processor family (Core 2/newer Xeon)  --->
        ( ) 486
        ( ) 586/K5/5x86/6x86/6x86MX
        ( ) Pentium-Classic
        ( ) Pentium-MMX
        ( ) Pentium-Pro
        ( ) Pentium-II/Celeron(pre-Coppermine)
        ( ) Pentium-III/Celeron(Coppermine)/Pentium-III Xeon
        ( ) Pentium M
        ( ) Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon
        ( ) K6/K6-II/K6-III
        ( ) Athlon/Duron/K7
        ( ) Opteron/Athlon64/Hammer/K8
        ( ) Crusoe
        ( ) Efficeon
        ( ) Winchip-C6
        ( ) Winchip-2/Winchip-2A/Winchip-3
        ( ) AMD Elan
        ( ) GeodeGX1
        ( ) Geode GX/LX
        ( ) CyrixIII/VIA-C3
        ( ) VIA C3-2 (Nehemiah)
        ( ) VIA C7
        (*) Core 2/newer Xeon
        ( ) Intel Atom

Compiling and installing

With the configuration now done, it is time to compile and install the kernel. Exit the configuration and start the compilation process:

root #make && make modules_install


Note
It is possible to enable parallel builds using make -jX with X being an integer number of parallel tasks that the build process is allowed to launch. This is similar to the instructions about /etc/portage/make.conf earlier, with the MAKEOPTS variable.

When the kernel has finished compiling, copy the kernel image to /boot/. This is handled by the make install command:

root #make install

This will copy the kernel image into /boot/ together with the System.map file and the kernel configuration file.