Commit Graph

68 Commits

Author SHA1 Message Date
Xi Ruoyao
10b89821d1
grub-setup: Add kernel configuration into index 2023-07-31 21:44:36 +08:00
Xi Ruoyao
6af847b8dd
uefi: Use new kernel config
Fix an issue causing kernel-config.py not to process indented "source"
directive in Kconfig for this.
2023-07-31 21:44:36 +08:00
Bruce Dubbs
ee763b6e4a s/firmwares/firmware/g 2023-07-15 17:17:59 -05:00
Xi Ruoyao
dbb689b756
grub-efi: Update to unifont-15.0.06 2023-07-03 06:26:04 +08:00
Xi Ruoyao
7befd97543
grub-setup: dosfstools is needed for creating FS on ESP 2023-07-02 16:45:28 +08:00
Xi Ruoyao
b9567b0433
postlfs: Remove non-exist User Notes link
Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh
2023-06-29 19:22:20 +08:00
Xi Ruoyao
cecc62c4db
grub-efi: Update GCC tarball info 2023-05-07 17:08:42 +08:00
Xi Ruoyao
d8255e5f60
efivar: Workaround build failure with GCC 13 2023-05-07 17:08:39 +08:00
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
c6c286b92a
tag grub-efi 2023-02-18 18:05:40 +08:00
Xi Ruoyao
6f87ba86ab
grub-efi: Add upstream fixes for unrecognized ext2/3/4 features 2023-02-18 18:04:26 +08:00
Xi Ruoyao
862e39214c
tag: efivar and efibootmgr 2023-02-18 17:44:33 +08:00
Xi Ruoyao
7cff22d210
grub-efi: Update unifont to 15.0.01 2023-02-15 15:15:52 +08:00
Xi Ruoyao
82db5c3b85
Revert "efivar: adapt for glibc-2.36"
This reverts commit d1a3a2f901.

It's no longer needed with Glibc-2.37.
2023-02-15 15:15:52 +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
8013518eb2
grub-efi: housekeeping 2022-08-28 23:01:36 +08: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
6851adea69
grub-efi: demote efibootmgr from required to recommended
We'll add how to configure EFI boot w/o efibootmgr later...
2022-08-28 21:24:15 +08:00
Xi Ruoyao
4f464d8efd
efivar: mark it useless on 32-bit kernel 2022-08-28 21:23:56 +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
99ae185ec3
efivar: patch for 32-bit system 2022-08-28 03:19:18 +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
ce1d65812e
grub-efi: sync GCC stat 2022-08-20 14:06:34 +08:00
Xi Ruoyao
d1a3a2f901
efivar: adapt for glibc-2.36 2022-08-07 22:44:55 +08:00
Pierre Labastie
11ff30f344 Fix misplacement of role attributes in some dependencies 2022-07-12 23:38:22 +02: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
Pierre Labastie
7ca5792f44 Use gcc-&gcc-version; for grub-uefi
To prevent version mismatch between downloaded compiler and
instructions to build it.
2022-05-09 18:39:01 +02:00
Bruce Dubbs
4ee58817f1 Fix md5sum for gcc in EFI page 2022-05-09 10:35:16 -05: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
Xi Ruoyao
672f2a570f
grub-efi: allows building on 32-bit LFS for x86_64 EFI 2022-02-26 16:31:27 +08:00
Xi Ruoyao
e724cb78d0
grub-efi: warn that it won't work for 32-bit LFS, and mention i386-efi 2022-02-26 02:10:37 +08:00
Xi Ruoyao
7d95c1c138
tag efibootmgr and grub-efi 2022-02-18 13:50:41 +08:00