summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_bootbin.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2025-03-17 14:04:02 +0530
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2025-03-26 13:28:08 +0200
commit61e0a20aecf4af6cdc223bd8cd1bd82fe5e3d9f6 (patch)
tree941665a95d85cfed88c16851dc464fd7c9d3e816 /lib/efi_loader/efi_bootbin.c
parent54c39bf104017e3a0b30fdff6104141b719af9ef (diff)
blkmap: pass information on ISO image to the OS
The EFI HTTP boot puts the ISO installer image at some location in memory. Information about this image has to be passed on to the OS kernel, which is done by adding a persistent memory(pmem) node to the devicetree(DT) that is passed to the OS. The OS kernel then gets information about the presence of this ISO image and proceeds with the installation. In U-Boot, this ISO image gets mounted as a memory mapped blkmap device slice, with the 'preserve' attribute. Add a helper function which iterates through all such slices, and invokes a callback. The callback adds the pmem node to the DT and removes the corresponding memory region from the EFI memory map. Invoke this helper function as part of the DT fixup which happens before booting the OS. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Tobias Waldekranz <tobias@waldekranz.com> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/efi_loader/efi_bootbin.c')
0 files changed, 0 insertions, 0 deletions