[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
es:howtos:slackware_admin:linux_kernel_options_for_uefi_and_elilo [2019/02/05 21:44 (UTC)] slackwarespanoles:howtos:slackware_admin:linux_kernel_options_for_uefi_and_elilo [2019/02/05 23:02 (UTC)] (actual) slackwarespanol
Línea 1: Línea 1:
-<note warning>En proceso de traducción. Victor</note> 
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== Linux kernel options for UEFI and ELILO ====== +====== Opciones del kernel de Linux para UEFI ELILO ====== 
-The purpose of this article is to inform the user about necessary kernel options for booting from UEFI, and some info about how ELILO and perhaps other EFI bootloaders workas this is currently difficult to find and understand online+El propósito de este artículo es informar al usuario sobre las opciones de kernel necesarias para el arranque desde UEFI, y cierta información sobre cómo funcionan ELILO y quizás otros cargadores de arranque EFI, ya que actualmente es difícil de encontrar y entender en línea
-==== Required kernel options for UEFI support ==== +==== Opciones de kernel requeridas para el soporte UEFI ==== 
-The following options are required for booting a kernel from UEFI. These are already set in the stock Slackware kernels.+Las siguientes opciones son necesarias para arrancar un kernel desde UEFI. Estos ya están establecidos en los núcleos de Slackware.
  
-<note important>Booting from UEFI requires that the kernel be the same bitness as the UEFI firmware. This usually means 64-bitwith the exception of new Intel Atom System-on-Chip (2013), older (pre-2008) Apple Macs and Intel Server boards using EFI v1.10 in 32-bit modeand some Intel Cloverfield ultrabooks. Howeveryou can still enable 32-bit emulation in the kernel and run 32-bit programs in Linux using multilib.</note>+<note important>El arranque desde UEFI requiere que el kernel tenga los mismos bits que el firmware UEFIPor lo general, esto significa 64 bitscon la excepción del nuevo Intel Atom System-on-Chip (2013), los Apple Mac más antiguos (anteriores a 2008) y las placas Intel para servidores que utilizan EFI v1.10 en modo de 32 bitsy algunos Intel Cloverfield ultrabooks. Sin embargoaún puede habilitar la emulación de 32 bits en el kernel y ejecutar programas de 32 bits en Linux usando multilib.</note>
  
   * **Enable the block layer**   * **Enable the block layer**
Línea 27: Línea 26:
       * EFI Variable filesystem (CONFIG_EFIVAR_FS [=y])       * EFI Variable filesystem (CONFIG_EFIVAR_FS [=y])
  
-<note important>You should **DISABLE** the old efivars sysfs interface found at:+<note important>Usted debe ** DESACTIVAR ** la antigua interfaz de sysfs de efivars encontrada en:
   * **Firmware Drivers**   * **Firmware Drivers**
     * EFI (Extensible Firmware Interface) Support     * EFI (Extensible Firmware Interface) Support
       * EFI Variable Support via sysfs (CONFIG_EFI_VARS [=n])       * EFI Variable Support via sysfs (CONFIG_EFI_VARS [=n])
-as it is deprecated in favor of CONFIG_EFIVAR_FS, because it has a 1024-byte variable size limitand because it can [[https://lkml.org/lkml/2013/4/16/473|cause data inconsistency issues]]. +ya que está en desuso a favor de CONFIG_EFIVAR_FS, porque tiene un límite de tamaño de variable de 1024 bytesy porque puede [[https://lkml.org/lkml/2013/4/16/473|causar problemas de inconsistencia de datos]]. 
-Howeverif you do disable thisyou will need a fork of the ''efibootmgr'' program that supports the new EFI Variable filesystem.+Sin embargosi lo deshabilitanecesitará un enlace del programa '' efibootmgr '' que admite el nuevo sistema de archivos Variable EFI.
 </note> </note>
-==== Using the new EFI variable filesystem ==== + 
-In order to use the new EFI variable filesystem interfaceyou need to remove the old ''efibootmgr'' program and replace it with a new one that supports the EFI variable filesystem+==== Usando el nuevo sistema de archivos variable EFI ==== 
-  Download and install: https://github.com/vathpela/efivar +Para utilizar la nueva interfaz del sistema de archivos de variables EFI, debe eliminar el antiguo programa "efibootmgr" y reemplazarlo por uno nuevo que admita el sistema de archivos de variables EFI. 
-  Download and install: https://github.com/vathpela/efibootmgr/tree/libefivars +   Descargue e instale: https://github.com/vathpela/efivar 
-  Run:<code>+   Descargue e instale: https://github.com/vathpela/efibootmgr/tree/libefivars 
 +   Correr:<code>
 modprobe efivarfs modprobe efivarfs
 mount -t efivarfs efivarfs /sys/firmware/efi/efivars mount -t efivarfs efivarfs /sys/firmware/efi/efivars
 efibootmgr efibootmgr
 </code> </code>
-==== The EFI System Partition (ESP) ==== +==== La partición del sistema EFI (ESP) ==== 
-In order to boot from UEFI you need to create an EFI System Partition (ESP) using ''gdisk'' or ''cgdisk'' instead of the old ''fdisk'' and ''cfdisk''The Slackware [[ftp://mirrors.usc.edu/pub/linux/distributions/slackware/slackware64-14.1/README_UEFI.TXT|README_UEFI.TXT]] recommends a size of 100M, which is also the minimum partition size (except for 4K native driveswhere it is 260M). You also need to set the partition hex code to ''EF00'', which identifies it as the ESP. +Para arrancar desde UEFI, debe crear una partición del sistema EFI (ESP) utilizando '' gdisk '' '' cgdisk '' en lugar del antiguo '' fdisk '' '' cfdisk ''El Slackware [[ftp://mirrors.usc.edu/pub/linux/distributions/slackware/slackware64-14.1/README_UEFI.TXT|README_UEFI.TXT]] recomienda un tamaño de 100M, que también es el tamaño de partición mínimo (excepto para unidades 4K nativasdonde es 260M). También debe configurar el código hexadecimal de partición en '' EF00 '', que lo identifica como el ESP. 
-==== UEFI and ELILO ==== +==== UEFI ELILO ==== 
-During the install procedure of Slackware 14.1 for ELILO (the ''eliloconfig'' script), the following happens and is required for booting from UEFI using ELILO.+Durante el procedimiento de instalación de Slackware 14.1 para ELILO (la secuencia de comandos '' eliloconfig ''), ocurre lo siguiente y es necesario para el arranque desde UEFI utilizando ELILO. 
 + 
 + - La partición del sistema EFI (ESP) está ubicada y montada. En un sistema en ejecución, normalmente se encuentra ya montado en '' /boot/efi ''. Esta es una partición FAT especial que básicamente es el reemplazo del firmware UEFI de lo que el MBR era para BIOS. Sin embargo, no solo puede contener un gestor de arranque (todo lo que el MBR era capaz de hacer), sino también los archivos de configuración, el kernel y otras cosas a las que tal vez quiera acceder utilizando el firmware UEFI. 
 +   - Los tres elementos requeridos por ELILO (y otros cargadores de arranque) se copian en el ESP a '' /boot/efi/EFI/Slackware ''. Éstos incluyen: 
 +     - El gestor de arranque. En el caso de ELILO es '' elilo.efi ''
 +     - El archivo de configuración. En el caso de ELILO es '' elilo.conf ''
 +     - El núcleo, usualmente titulado '' vmlinuz '' 
 +   - Una variable de entrada de inicio se registra en el firmware UEFI utilizando '' efibootmgr ''. El comando exacto que se ejecuta es
  
-  - The EFI System Partition (ESP) is located and mounted. On a running system it is usually found already mounted at ''/boot/efi''. This is a special FAT partition that is basically the UEFI firmware replacement of what the MBR was for BIOS. However, it can not only hold a bootloader (all the MBR was capable of), but also config files, the kernel, and other things you might want to access using the UEFI firmware. +<code bash>
-  - The three items required by ELILO (and other bootloaders) are copied onto the ESP to ''/boot/efi/EFI/Slackware''. These include: +
-    - The bootloader. In the case of ELILO it is ''elilo.efi'' +
-    - The config file. In the case of ELILO it is ''elilo.conf'' +
-    - The kernel, usually titled ''vmlinuz'' +
-  - A boot entry variable is registered in the UEFI firmware using ''efibootmgr''. The exact command that is run is <code bash>+
 EFI_DEVICE=$(mount | grep vfat | grep -w /boot/efi | cut -b 1-8) EFI_DEVICE=$(mount | grep vfat | grep -w /boot/efi | cut -b 1-8)
 EFI_PARTITION=$(mount | grep vfat | grep -w /boot/efi | cut -f 1 -d ' ' | cut -b 9-) EFI_PARTITION=$(mount | grep vfat | grep -w /boot/efi | cut -f 1 -d ' ' | cut -b 9-)
 efibootmgr -q -c -d $EFI_DEVICE -p $EFI_PARTITION -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware" efibootmgr -q -c -d $EFI_DEVICE -p $EFI_PARTITION -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware"
-</code> so if ''mount'' outputs <code>/dev/sda1 on /boot/efi type vfat (rw)</code>EFI_DEVICE would be ''/dev/sda'' and EFI_PARTITION would be ''1'', each components of ''/dev/sda1'', which is the ESP. +</code>  
-<note important>If for some reason you cannot register a boot entry with the UEFI firmwareyou should put the bootloader at ''/EFI/boot/bootx64.efi''This special location allows the UEFI firmware to run the bootloader without any boot entry.</note> +si sale ''mount''  <code>/dev/sda1 on /boot/efi type vfat (rw)</code>EFI_DEVICE sería ''/dev/sda'' and EFI_PARTITION sería ''1'', cada componente de '' /dev/sda1 '', que es el ESP. 
-==== Upgrading your kernel ==== +<note important>Si por alguna razón no puede registrar una entrada de arranque con el firmware UEFI, debe colocar el cargador de arranque en '' /EFI/boot/bootx64.efi ''Esta ubicación especial permite que el firmware UEFI ejecute el cargador de arranque sin ninguna entrada de arranque.</note> 
-This task is now much easier than it used to beAll you really need to do is copy ''vmlinuz'' onto the ESP on top of the old kernel. No need to edit any configs or add any boot entriesunless you want toNote that you can edit the config in place and ELILO will pick up the changes on next bootno need to run any commands like with the old lilo. +==== Actualizando tu kernel ==== 
-==== Updating your UEFI firmware ==== +Esta tarea es ahora mucho más fácil de lo que solía serTodo lo que necesitas hacer es copiar '' vmlinuz '' en el ESP en la parte superior del núcleo antiguo. No es necesario editar configuraciones o agregar entradas de arranquea menos que lo deseeTenga en cuenta que puede editar la configuración en su lugar y ELILO recogerá los cambios en el próximo arranquesin necesidad de ejecutar ningún comando como con el antiguo lilo. 
-As all UEFI firmware has a flashing utility built-init is now much easier to update the firmware. All you have to do is copy the new firmware onto the ESP and the UEFI firmware should recognize it when you go to the flashing utility menuHoweverremember that flashing the firmware can still potentially brick the systemespecially if it is interrupted during the flashing process.+==== Actualizando su firmware UEFI ==== 
 +Como todo el firmware de UEFI tiene una utilidad  flashing incorporadaahora es mucho más fácil actualizar el firmware. Todo lo que tiene que hacer es copiar el nuevo firmware en el ESP y el firmware UEFI debería reconocerlo cuando vaya al menú de la utilidad que parpadeaSin embargorecuerde que la actualización del firmware aún puede potencialmente bloquear el sistemaespecialmente si se interrumpe durante el proceso de actualización.
 <note important> <note important>
-Updating your UEFI firmware may reset your settings and prevent you from booting unless you plan ahead.+La actualización del firmware de UEFI puede restablecer la configuración y evitar que arranque, a menos que planifique con anticipación.
 </note> </note>
-==== My UEFI settings were reset and I can't bootor planning ahead to avoid surprises ==== +==== Mis configuraciones de UEFI se restablecieron y no puedo arrancaro planeo con anticipación para evitar sorpresas ==== 
-This can happen either after updating the UEFI firmware or after replacing the CMOS batteryThere are three main ways to fix it+Esto puede suceder después de actualizar el firmware UEFI o después de reemplazar la batería CMOS. Hay tres formas principales de solucionarlo
-  Probably the easiest and most convenient way is to use the default boot locationNote that some UEFI firmwares do NOT support the default boot locationso this will not workHoweverif it doesyou won't have to worry about the system not booting againTo do this you can boot into the Slackware install DVD, mount the ESP and copy the files to the following places:+   Probablemente, la forma más fácil y conveniente es utilizar la ubicación de inicio predeterminadaTenga en cuenta que algunos firmwares UEFI NO admiten la ubicación de inicio predeterminadapor lo que esto no funcionaráSin embargosi lo haceno tendrá que preocuparse por que el sistema no se reinicie de nuevoPara hacer esto, puede iniciar el DVD de instalación de Slackwaremontar el ESP y copiar los archivos en los siguientes lugares:
     - ''elilo.efi'' -> ''/EFI/boot/bootx64.efi''     - ''elilo.efi'' -> ''/EFI/boot/bootx64.efi''
     - ''elilo.conf'' -> ''/EFI/boot/elilo.conf''     - ''elilo.conf'' -> ''/EFI/boot/elilo.conf''
     - ''vmlinuz'' -> ''/EFI/boot/vmlinuz''     - ''vmlinuz'' -> ''/EFI/boot/vmlinuz''
-  You can boot into the Slackware install DVDrun through the menus, and reinstall elilo. + Puede iniciar el DVD de instalación de Slackware, ejecutar los menús y reinstalar elilo. 
-  You can download and install one of the following EFI shells to the root directory of your ESP (that is ''/'' NOT ''/EFI''). +   Puede descargar e instalar uno de los siguientes shells EFI en el directorio raíz de su ESP (que es '' / '' NOT '' / EFI ''). 
-    - [[https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellBinPkg/UefiShell/X64/Shell.efi|This version supports only UEFI version and up]] +    - [[https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellBinPkg/UefiShell/X64/Shell.efi|Esta versión solo es compatible con UEFI versión y superior]] 
-    - [[http://dl.dropbox.com/u/17629062/Shell2.zip | This version may support earlier UEFI versions]] +    - [[http://dl.dropbox.com/u/17629062/Shell2.zip | Esta versión puede soportar versiones anteriores de UEFI]] 
-    - Boot into the shell and run: <code>bcfg boot add 0 fs0:\EFI\Slackware\elilo.efi Slackware</code> +    -Arranque en el shell y ejecute: <code>bcfg boot add 0 fs0:\EFI\Slackware\elilo.efi Slackware</code> 
-==== External Links ==== +==== Enlaces externos ==== 
-[[http://blog.uncooperative.org/blog/2014/02/06/the-efi-system-partition/|A comprehensive analysis of the ESP and default boot behavior.]]+[[http://blog.uncooperative.org/blog/2014/02/06/the-efi-system-partition/|Un análisis exhaustivo del ESP y el comportamiento de arranque predeterminado..]]
 ====== Sources ====== ====== Sources ======
-  * Original author: [[wiki:user:metaschima]]+  * Autor original: [[wiki:user:metaschima]]
   * https://wiki.archlinux.org/index.php/UEFI   * https://wiki.archlinux.org/index.php/UEFI
   * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/x86/x86_64/uefi.txt   * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/x86/x86_64/uefi.txt
-  * ''eliloconfig'' bash script by Patrick Volkerding+  * ''eliloconfig'' bash script por Patrick Volkerding 
 +  * Traducido por:  [[wiki:user: slackwarespanol | Victor]] 2019/02/05 22:59 (UTC)
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: [[http://some.website.org/some/page.html]] --> <!-- * Original source: [[http://some.website.org/some/page.html]] -->
 es:howtos:slackware_admin:linux_kernel_options_for_uefi_and_elilo ()