Changeset 7c1451f
- Timestamp:
- 05/14/2024 04:34:00 AM (2 weeks ago)
- Branches:
- xry111/loongarch
- Parents:
- 560c147
- git-author:
- Xi Ruoyao <xry111@…> (05/13/2024 04:19:48 PM)
- git-committer:
- Xi Ruoyao <xry111@…> (05/14/2024 04:34:00 AM)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/grub.xml
r560c147 r7c1451f 44 44 <para> 45 45 On LoongArch systems, the following instruction builds GRUB for UEFI. 46 But the built GRUB lacks some features because a few optional 47 dependencies of GRUB for UEFI is beyond the scope of LFS and not 48 installed yet. 46 But because LFS lacks the FreeType package and the Unifont data 47 file, GRUB won't install any font for the boot loader and 48 the GRUB boot menu will be displayed using a coarse font or in a 49 smaller region on the screen. 50 If wanted, after the LFS system is finished, install 51 <ulink url="&blfs-book;general/freetype.html">FreeType</ulink> 52 and then install the GRUB compoents not installed from LFS following 53 <ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS 54 instruction</ulink>, but remove the <option>--target=x86_64</option> 55 option and skip the command to install the 56 <filename class='directory'>/usr/lib/grub/x86_64-efi</filename> 57 directory. 49 58 </para> 50 59 <para> 51 60 If your system firmware does not support UEFI, you need to skip the 52 61 content of this page and try to figure out how to boot your system. 53 </para>54 <para>55 If your system has UEFI support and you wish to boot LFS with UEFI,56 you need to install GRUB with UEFI support (and its dependencies) by57 following the instructions on58 <ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS page</ulink>.59 You may skip this package, or install this package and the BLFS60 GRUB for UEFI package without conflict (the BLFS page provides61 instructions for both cases).62 62 </para> 63 63 </note> -
chapter10/grub.xml
r560c147 r7c1451f 20 20 <para> 21 21 This section assume your system has UEFI support and you wish to boot 22 LFS with UEFI and GRUB built following the instructions in Chapter 8. 23 </para> 24 <para> 25 If you've installed GRUB for UEFI with optional dependencies following 26 BLFS, you should skip the instructions in this page but still learn the 27 syntax of <filename>grub.cfg</filename> and the method to specify 28 a partition in the file from this page, and configure GRUB with UEFI 29 using the instructions provided in 30 <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>, 31 but replace <parameter>--target=x86_64-efi</parameter> with 32 <parameter>--target=loongarch64-efi</parameter> for the 64-bit 33 LoongArch system. 34 </para> 35 <para> 22 LFS with UEFI. 36 23 If your system does not support UEFI or you don't want to use it, 37 24 you'll need to figure out how to configure the booting process of … … 178 165 variable for the newly installed boot loader. Install 179 166 <ulink url="&blfs-book;postlfs/efibootmgr.html">efibootmgr</ulink>, 180 then run the following commands: 181 182 <screen role="nodump"><userinput>mount -v -t efivarfs efivarfs /sys/firmware/efi/efivars 183 efibootmgr -B -L LFS || true 184 efibootmgr -c -L LFS -l '\EFI\BOOT\BOOTLOONGARCH64.EFI' -d /dev/sda 185 umount /sys/firmware/efi/efivars</userinput></screen> 186 187 Replace <filename>/dev/sda</filename> with the device node of the 188 hard drive where you are installing GRUB into. 167 and follow 168 <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS 169 instruction</ulink> to run the <command>grub-install</command> 170 command without the <parameter>--removable</parameter> option then. 189 171 </para> 190 172 </note>
Note:
See TracChangeset
for help on using the changeset viewer.