Manual:AMD64/Bloques/Núcleo

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:AMD64/Blocks/Kernel and the translation is 100% complete.


Configuración del núcleo específica para la arquitectura

Asegúrese de seleccionar la emulación IA32 y 32-bit time_t si desea ejecutar programas de 32 bits (CONFIG_IA32_EMULATIONand CONFIG_COMPAT_32BIT_TIME). Gentoo instala por defecto un sistema multilib (procesado indistinto 32 bits/64 bits) de modo que, a no ser que se use un perfil no-multilib, estas opciones son necesarias.

KERNEL Seleccionar los tipos y las características del procesador
Processor type and features  --->
   [ ] Machine Check / overheating reporting 
   [ ]   Intel MCE Features
   [ ]   AMD MCE Features
   Processor family (AMD-Opteron/Athlon64)  --->
      ( ) Opteron/Athlon64/Hammer/K8
      ( ) Intel P4 / older Netburst based Xeon
      ( ) Core 2/newer Xeon
      ( ) Intel Atom
      ( ) Generic-x86-64
Binary Emulations  --->
   [*] IA32 Emulation
General architecture-dependent options  --->
   [*] Provide system calls for 32-bit time_t

Habilite el soporte de etiquetado de particiones GPT si se utilizó previamente durante el particionado del disco (CONFIG_PARTITION_ADVANCED and CONFIG_EFI_PARTITION):

KERNEL Habilitar el soporte para GPT
-*- Enable the block layer --->
   Partition Types --->
      [*] Advanced partition selection
      [*] EFI GUID Partition support

Habilitar el soporte EFI stub, variables EFI y el EFI Framebuffer en el núcleo Linux si se va a usar UEFI para arrancar el sistema (CONFIG_EFI, CONFIG_EFI_STUB, CONFIG_EFI_MIXED, CONFIG_EFI_VARS, y CONFIG_FB_EFI):

KERNEL Enable support for UEFI
Processor type and features  --->
    [*] EFI runtime service support 
    [*]   EFI stub support
    [*]     EFI mixed-mode support
 
Device Drivers
    Graphics support  --->
        Frame buffer Devices  --->
            <*> Support for frame buffer devices  --->
                [*]   EFI-based Framebuffer Support

File Systems
    Pseudo filesystems  --->
        <*> EFI Variable filesystem

Para activar las opciones del núcleo para el uso de Firmware SOF tratado anteriormente:

KERNEL Habilitar soporte para Firmware SOF (CONFIG_SND_SOC_SOF_TOPLEVEL, CONFIG_SND_SOC_SOF_PCI, CONFIG_SND_SOC_SOF_ACPI, CONFIG_SND_SOC_SOF_AMD_TOPLEVEL, CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL)
Device Drivers --->
  Sound card support --->
    Advanced Linux Sound Architecture --->
      <M> ALSA for SoC audio support --->
        [*] Sound Open Firmware Support --->
            <M> SOF PCI enumeration support
            <M> SOF ACPI enumeration support
            <M> SOF support for AMD audio DSPs
            [*] SOF support for Intel audio DSPs


Compilar e instalar

Una vez hecha la configuración, es hora de compilar e instalar el núcleo. Salga del configurador e inicie el proceso de compilación:

root #make && make modules_install
Nota
Es posible permitir compilaciones paralelas usando make -jX siendo X un número entero de compilaciones paralelas que se le permiten lanzar al proceso de construcción. Esto es similar a las instrucciones anteriores sobre /etc/portage/make.conf con la variable MAKEOPTS.

Cuando finalice la compilación del núcleo copie su archivo imagen a /boot/. Se hará con la orden make install:

root #make install

Este comando copiará la imagen del núcleo a /boot. Si sys-kernel/installkernel está instalado, llamará a /sbin/installkernel y delegará la instalación del núckeo. En lugar de simplemente copiar el kernel a /boot, Installkernel instala cada núcleo con su número de versión en el nombre del archivo. Además, installkernel proporciona un mecanismo para realizar automáticamente diversas tareas relacionadas con la instalación del núcleo, como generar un initramfs, crear una Unified Kernel Image y actualizar la configuración del bootloader.