U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add pmem node for preserving distro ISO's
@ 2024-10-25 11:14 Sughosh Ganu
  2024-10-25 11:14 ` [PATCH 1/4] fdt: add support for adding pmem nodes Sughosh Ganu
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Sughosh Ganu @ 2024-10-25 11:14 UTC (permalink / raw)
  To: u-boot; +Cc: Ilias Apalodimas, Heinrich Schuchardt, Tom Rini

When installing a distro via EFI HTTP boot some OS installers expect
the .iso image to be preserved and treat it as a "CDROM" to install
packages.

This is problematic in EFI, since U-Boot mounts the image, starts the
installer, and eventually calls ExitBootServices. At that point the
image U-Boot mounted disappears. Some distros don't care and download
the missing packages from a web archive, while others halt the
installation complaining they can't find certain packages.

If the firmware uses ACPI, this is supported by using NFIT which
provides NVDIMM ramdisks to the OS and preserves the image.
We don't have anything in place for Device Trees though. Since DT
supports persistent memory nodes (pmem) use those and preserve the
.iso for installers.

The issue can be reproduced by attempting an EFI HTTP boot with Ubuntu
live server ISO, or a Rocky Linux ISO. The installation would fail
with the failure to locate certain packages.



Ilias Apalodimas (2):
  efi_loader: add a function to remove memory from the EFI map
  efi_loader: preserve installer images in pmem

Masahisa Kojima (1):
  fdt: add support for adding pmem nodes

Sughosh Ganu (1):
  efi: add helper functions to insert pmem node for DT fixup

 boot/fdt_support.c           | 41 +++++++++++++++++++++++++++--
 boot/image-fdt.c             |  9 +++++++
 include/efi_loader.h         | 28 +++++++++++++++++---
 include/fdt_support.h        | 13 +++++++++
 lib/efi_loader/efi_bootmgr.c | 43 ++++++++++++++++++++++++++----
 lib/efi_loader/efi_helper.c  | 12 +++++++++
 lib/efi_loader/efi_memory.c  | 51 +++++++++++++++++++++++++++---------
 lib/lmb.c                    |  4 +--
 8 files changed, 175 insertions(+), 26 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-12-02  9:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25 11:14 [PATCH 0/4] Add pmem node for preserving distro ISO's Sughosh Ganu
2024-10-25 11:14 ` [PATCH 1/4] fdt: add support for adding pmem nodes Sughosh Ganu
2024-10-25 11:16   ` Ilias Apalodimas
2024-10-27 14:59   ` Simon Glass
2024-10-28 11:29     ` Sughosh Ganu
2024-10-28 17:01       ` Simon Glass
2024-12-02  9:54         ` Sughosh Ganu
2024-10-25 11:14 ` [PATCH 2/4] efi_loader: add a function to remove memory from the EFI map Sughosh Ganu
2024-10-25 11:16   ` Ilias Apalodimas
2024-11-11  7:46   ` Heinrich Schuchardt
2024-11-11 10:43     ` Ilias Apalodimas
2024-10-25 11:14 ` [PATCH 3/4] efi_loader: preserve installer images in pmem Sughosh Ganu
2024-10-25 11:16   ` Ilias Apalodimas
2024-11-11  8:00   ` Heinrich Schuchardt
2024-11-11 10:46     ` Ilias Apalodimas
2024-11-11 11:23       ` Heinrich Schuchardt
2024-10-25 11:14 ` [PATCH 4/4] efi: add helper functions to insert pmem node for DT fixup Sughosh Ganu
2024-10-25 11:17   ` Ilias Apalodimas
2024-10-28  6:57   ` Heinrich Schuchardt
2024-10-29  7:33     ` Ilias Apalodimas
2024-11-11  8:03   ` Heinrich Schuchardt
2024-11-11 10:45     ` Ilias Apalodimas
2024-11-11 11:33       ` Heinrich Schuchardt
2024-11-11 12:14         ` Ilias Apalodimas
2024-10-25 11:18 ` [PATCH 0/4] Add pmem node for preserving distro ISO's Ilias Apalodimas
2024-10-28  6:51 ` Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox