Commit Graph

34 Commits

Author SHA1 Message Date
Xi Ruoyao
0cef3a6752
grub-efi: Fix "blind mode" issue
Move "insmod all_video" out of the "if loadfont" statement.  It's enough
for the kernel to use EFI FB.

The "terminal_output gfxterm" statement has to be guarded by "if
loadfont", or it can garble the display if unicode.pf2 not available.

"gfxmode" seems no-use on EFI.  According to upstream doc it's only
used for VGA BIOS Extension (as the name suggests, not available in EFI
environment).
2023-03-17 22:56:23 +08:00
Xi Ruoyao
e2d95b97d5
uefi/grub-setup: Drop CONFIG_EFI_STUB
GRUB needs EFI stub to load the kernel on some other EFI platforms, but
not x86 (32-bit or 64-bit).
2023-03-12 21:15:21 +08:00
Xi Ruoyao
2266a90309
grub-setup: Adjust kernel config
With CONFIG_EXPERT disabled in LFS, CONFIG_FRAMEBUFFER_CONSOLE should be
forced to y.  Update the menu to reflect this.

CONFIG_NLS is also forced to y with CONFIG_ACPI and CONFIG_PCI enabled
(both should be necessary for any x86 system produced in 21st century).

Don't encourage user to be too "advanced".
2023-03-10 19:33:18 +08:00
Xi Ruoyao
cffa49c5a8
grub efi setup: Set iocharset= like codepage= 2023-03-09 19:53:38 +08:00
Xi Ruoyao
7bb0d4f355
grub efi cfg: Ensure codepage 437 enabled and use it in /boot/efi mount option
Without the codepage support, vfat can fails to mount.
2023-03-09 19:34:16 +08:00
Xi Ruoyao
8e843925bb
grub-efi setup: Bump LFS and Linux kernel version info in example 2023-02-18 21:45:19 +08:00
Xi Ruoyao
5b6873f4d7
efi: remove reference to CONFIG_EFI_VARS
It's already removed since Linux 6.0.

Link: https://git.kernel.org/torvalds/c/ab17c0cd
Reported-by: Zhang Wen <zhw2101024@gmail.com>
2023-01-15 20:29:11 +08:00
Xi Ruoyao
e8d6204f6d
grub-setup: rewrite the description for CONFIG_EFI_STUB
Avoid mistakenly using the terminology "EFI handover protocol".  With
Linux 6.2 or newer we can enable EFI stub but disable EFI handover
protocol (CONFIG_EFI_HANDOVER_PROTOCOL=n).  The help message of this
option also says the upstream GRUB does not use EFI handover protocol,
so it's only needed for some distros with a patched (old) GRUB.

Tested with mainline kernel and CONFIG_EFI_HANDOVER_PROTOCOL disabled.
2022-12-18 23:34:20 +08:00
Pierre Labastie
3f2db3a638 Remove sect1info tags
They only contain a date tag that is nowhere used.
2022-11-29 08:58:07 +01:00
Xi Ruoyao
b804521827
grub UEFI setup: realign kernel configurations 2022-09-22 12:33:43 +08:00
Xi Ruoyao
34e3e2d1ca
grub UEFI setup: add CONFIG_DRM_FBDEV_EMULATION
It's needed for running Linux console on top of SimpleDRM.

Fixes #17112 at BLFS side.  The issue is not limited to UEFI: if you
want to run the Linux console on any kernel modesetting driver, it's
needed.  So we need to mention it in LFS as well.
2022-09-22 12:11:00 +08:00
Pierre Labastie
c8391c3d85 Spelling and grammar fixes to grub-setup
From the file attached to
https://wiki.linuxfromscratch.org/blfs/ticket/17085
by D Bryant.
2022-09-20 05:45:30 +02:00
Xi Ruoyao
7027897a70
grub EFI setup: Add CONFIG_VFAT_FS=y/M
BugLink: https://wiki.linuxfromscratch.org/blfs/ticket/17085#comment:4
2022-09-19 11:41:09 +08:00
Xi Ruoyao
27329c077d
grub EFI setup: remove CONFIG_EFI_RUNTIME_MAP
BugLink: https://wiki.linuxfromscratch.org/blfs/ticket/17085
2022-09-19 11:36:04 +08:00
Xi Ruoyao
9c44927210
grub EFI setup: "CONFIG_SIMPLEDRM" should be CONFIG_DRM_SIMPLEDRM
Buglink: https://wiki.linuxfromscratch.org/blfs/ticket/17085
2022-09-19 11:15:21 +08:00
Julien Lepiller
b38aed5077 Fix typos 2022-08-28 20:38:50 +02:00
Xi Ruoyao
1977aef403
grub-efi: simplify emergency disk layout
"--boot-directory=/mnt/rescue/grub" will create "/mnt/rescue/grub/grub",
which seems a little redundant.
2022-08-28 22:21:14 +08:00
Xi Ruoyao
6db606f552
grub-efi: add minimal configuration with --removable
It's needed for e.g. setting the boot process on a 32-bit LFS with
64-bit UEFI firmware.
2022-08-28 22:19:14 +08:00
Xi Ruoyao
fae75b7d8a
grub-efi: force --target=x86_64-efi for emergency boot disk
Without it, grub will create a MBR boot disk if the system is not booted
with EFI.
2022-08-28 20:44:23 +08:00
Xi Ruoyao
16f7f0edb1
Squashed commit of UEFI tags for 11.2 and some text changes
grub-setup: update version numbers in example to match LFS 11.2
    grub-efi: tag for 11.2
    freetype2: tag for 11.2
    brotli: tag for 11.2
    harfbuzz: tag for 11.2
    glib2: don't run test suite as root (text only change)
    graphite2: tag for 11.2
    libxml2: align explanation with acutal command (text only change)
    libpng: tag for 11.2
    efibootmgr: tag for 11.2
    efivar: tag for 11.2
    mandoc: tag for 11.2
2022-08-23 11:38:12 +08:00
Xi Ruoyao
aebcd92ce0
update to efibootmgr-18
Add "| cut -f 1" to efibootmgr command for checking the configuration,
so long boring paths will not show up.

Update unifont version, and kernel version (in example) by the way.
2022-07-12 01:07:10 +08:00
Xi Ruoyao
217e54c920
uefi: use simpledrmfb instead of efifb
efifb driver is considered "legacy" now.  Tested this configuration on
my two UEFI systems.
2022-06-09 14:40:19 +08:00
Ken Moffat
b9c353b87a Typo fixes from rhubarbpieguy. 2022-03-25 03:29:22 +00:00
Bruce Dubbs
62d4a2391a Update to bluez-5.64 and reformating kernel config
In grub-setup, change the order of kernel configureation items
to match the current kernel.
2022-03-20 11:48:09 -05:00
Xi Ruoyao
43397b0e18
grub efi cfg: update fdisk instruction for latest util-linux
In util-linux-2.37, fdisk uses partition type name instead of hex code.
2022-02-26 23:17:34 +08:00
Pierre Labastie
85580446b2 Remove spaces at the end of lines
I know it is somewhat useless, but I don't like them for
two reasons: first they cannot be seen, and I do not like things I
cannot see. Second, git highlights them, and this is disturbing...
2021-09-06 19:42:49 +02:00
Xi Ruoyao
6ca17c82a7
grub efi setup: fsck order of efivarfs should be 0
It does not make any sense to fsck a pseudo filesystem.
2021-06-02 02:47:44 +08:00
Xi Ruoyao
564a569aa3
grub setup: don't mount efivarfs again if it's already mounted 2021-05-31 14:28:20 +08:00
Xi Ruoyao
fda29e4c9c
remove hardcoded $Date: $ 2021-05-10 23:53:59 +08:00
Xi Ruoyao
356e8b5f63
fix a typo in UEFI grub setup page 2021-04-23 19:16:33 +08:00
Xi Ruoyao
45ab6c70c2
more SVN prop clean up
Remove "$LastChanged$" everywhere, and also some unused $Date$
2021-04-20 19:12:02 +08:00
Xi Ruoyao
9039d65c22 fix efibootmgr download link and grub SBU
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24397 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-03-24 17:56:37 +00:00
Bruce Dubbs
d5cc78ad74 Editorial changes to new evi pages.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24395 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-03-23 19:24:51 +00:00
Xi Ruoyao
756a787f17 Add packages and instructions for UEFI
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24393 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-03-23 17:49:08 +00:00