mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
bootm: add support for initrd in do_bootm_efi
Pass a pointer to a memory mapped initrd and its size to efi_binary_run. The EFI stack will register an EFI_LOAD_FILE2_PROTOCOL for the next boot stage to access this initrd. Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
36835a9105
commit
3d8e1b7b2d
1 changed files with 2 additions and 1 deletions
|
@ -508,7 +508,8 @@ static int do_bootm_efi(int flag, struct bootm_info *bmi)
|
||||||
ret = efi_binary_run(image_buf, images->os.image_len,
|
ret = efi_binary_run(image_buf, images->os.image_len,
|
||||||
images->ft_len
|
images->ft_len
|
||||||
? images->ft_addr : EFI_FDT_USE_INTERNAL,
|
? images->ft_addr : EFI_FDT_USE_INTERNAL,
|
||||||
NULL, 0);
|
(void *)images->initrd_start,
|
||||||
|
(size_t)(images->initrd_end - images->initrd_start));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue