diff options
Diffstat (limited to 'chapter08/grub.xml')
-rw-r--r-- | chapter08/grub.xml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 357036c34..ddde75490 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -42,11 +42,22 @@ <note> <para> + On ARM64 systems, the following instruction builds GRUB for UEFI. + But the built GRUB lacks some features because a few optional + dependencies of GRUB for UEFI is beyond the scope of LFS and not + installed yet. + </para> + <para> + If your system firmware does not support UEFI, you need to skip the + content of this page and try to figure out how to boot your system. + </para> + <para> If your system has UEFI support and you wish to boot LFS with UEFI, you can skip this package in LFS, and install GRUB with UEFI support (and its dependencies) by following the instructions on - <ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS page</ulink>. + <ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS page</ulink> + (with <parameter>--target=x86_64</parameter> removed). </para> </note> @@ -70,6 +81,12 @@ <screen><userinput remap='pre'>patch -Np1 -i ../grub-&grub-version;-upstream_fixes-1.patch</userinput></screen> + <!--https://git.savannah.gnu.org/cgit/grub.git/commit/?id=69edb312 --> + <para>Apply an upstream change so GRUB will be capable to load + compressed kernel image on an ARM64 system:</para> + +<screen><userinput remap='pre'>sed '/ARMXX_MAGIC/,+2d' -i grub-core/loader/arm64/linux.c</userinput></screen> + <para>Prepare GRUB for compilation:</para> <screen><userinput remap="configure">./configure --prefix=/usr \ |