Changeset c0a0f25


Ignore:
Timestamp:
09/25/2022 07:30:30 AM (19 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64, xry111/arm64-12.0
Children:
8f641ee
Parents:
ef6e958
Message:

arm64: grub cfg: some improvements

  • Ensure /boot/efi is created before mounting ESP.
  • Delete already existing "LFS" boot entry in efivar.
  • Umount /sys/firmware/efi/efivars after running efibootmgr (or it causing troubles in "umount /sys").
  • Mention "-e 3" which is needed for some UEFI implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/grub.xml

    ref6e958 rc0a0f25  
    2626      BLFS, you should skip this page, and config GRUB with UEFI support
    2727      using the instructions provided in
    28       <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>.
     28      <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>,
     29      but replace <parameter>--target=x86_64-efi</parameter> with
     30      <parameter>--target=arm64-efi</parameter> for the ARM64 system.
    2931    </para>
    3032    <para>
     
    100102    mount it now:</para>
    101103
    102 <screen role="nodump"><userinput>mount /boot/efi</userinput></screen>
     104<screen role="nodump"><userinput>mkdir -pv /boot/efi
     105mount /boot/efi</userinput></screen>
    103106
    104107    <note>
     
    172175        <ulink url="&blfs-book;postlfs/efibootmgr.html">efibootmgr</ulink>,
    173176        then run the following commands:
     177
    174178<screen role="nodump"><userinput>mount -v -t efivarfs efivarfs /sys/firmware/efi/efivars
    175 efibootmgr -c -L LFS -l \EFI\BOOT\BOOTAA64.EFI -d /dev/sda</userinput></screen>
     179efibootmgr -B -L LFS || true
     180efibootmgr -c -L LFS -l \EFI\BOOT\BOOTAA64.EFI -d /dev/sda
     181umount /sys/firmware/efi/efivars</userinput></screen>
     182
    176183        Replace <filename>/dev/sda</filename> with the device node of the
    177         hard drive where you are installing GRUB into.
     184        hard drive where you are installing GRUB into.  For some UEFI
     185        firmwares, <option>-e 3</option> option may be needed for the
     186        <command>efibootmgr -c</command> command.
    178187      </para>
    179188    </note>
Note: See TracChangeset for help on using the changeset viewer.