diff options
author | Tom Rini <trini@konsulko.com> | 2024-09-24 10:11:59 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-09-24 13:41:21 -0600 |
commit | 2add54d496ee8e0e99cf5c6e892c22cfc2e115a3 (patch) | |
tree | 77bf3117d5d0b2f0fb27a5df7a56dac8b21da7cf /net/wget.c | |
parent | 8a5ef6effbccf7eea28aea286cfbf7bb2b23bbd0 (diff) | |
parent | 1582e438ba099fb6f5831e69a543b07664e0c8d5 (diff) | |
download | u-boot-2add54d496ee8e0e99cf5c6e892c22cfc2e115a3.tar.gz |
Merge patch series "Miscellaneous fixes"WIP/24Sep2024-next
Jerome Forissier <jerome.forissier@linaro.org> says:
Miscellaneous fixes made when developing the lwIP series [1]. They are
posted separately since they make sense on their own. Subsequent
versions of the lwIP series will contain a squashed version of this one.
[1] http://patchwork.ozlabs.org/project/uboot/list/?series=420712&state=%2A&archive=both
Diffstat (limited to 'net/wget.c')
-rw-r--r-- | net/wget.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/wget.c b/net/wget.c index a88c31f236b..b4251e0f293 100644 --- a/net/wget.c +++ b/net/wget.c @@ -8,6 +8,7 @@ #include <command.h> #include <display_options.h> #include <env.h> +#include <efi_loader.h> #include <image.h> #include <lmb.h> #include <mapmem.h> @@ -171,13 +172,6 @@ void wget_fail(char *error_message, unsigned int tcp_seq_num, wget_send(action, tcp_seq_num, tcp_ack_num, 0); } -void wget_success(u8 action, unsigned int tcp_seq_num, - unsigned int tcp_ack_num, int len, int packets) -{ - printf("Packets received %d, Transfer Successful\n", packets); - wget_send(action, tcp_seq_num, tcp_ack_num, len); -} - /* * Interfaces of U-BOOT */ @@ -407,6 +401,9 @@ static void wget_handler(uchar *pkt, u16 dport, case WGET_TRANSFERRED: printf("Packets received %d, Transfer Successful\n", packets); net_set_state(wget_loop_state); + efi_set_bootdev("Net", "", image_url, + map_sysmem(image_load_addr, 0), + net_boot_file_size); break; } } |