efi_set_bootdev is already called as part of tftp while doing dhcp_run() Doing this again crashes U-boot and we don't need to call again.
Signed-off-by: Shantur Rathore <i...@shantur.com> --- boot/bootmeth_efi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/boot/bootmeth_efi.c b/boot/bootmeth_efi.c index 682cf5b23b..5917458dc5 100644 --- a/boot/bootmeth_efi.c +++ b/boot/bootmeth_efi.c @@ -360,9 +360,6 @@ static int distro_efi_read_bootflow_net(struct bootflow *bflow) return log_msg_ret("sz", -EINVAL); bflow->size = size; - /* do the hideous EFI hack */ - efi_set_bootdev("Net", "", bflow->fname, map_sysmem(addr, 0), - bflow->size); /* read the DT file also */ fdt_addr_str = env_get("fdt_addr_r"); -- 2.40.1