2 * (C) Copyright 2000-2004
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Ilya Yanok <ilya.yanok@gmail.com>
8 * SPDX-License-Identifier: GPL-2.0+
15 DECLARE_GLOBAL_DATA_PTR;
17 int spl_net_load_image(const char *device)
23 setenv("autoload", "yes");
24 load_addr = CONFIG_SYS_TEXT_BASE - sizeof(struct image_header);
25 rv = eth_initialize();
27 printf("No Ethernet devices found\n");
31 setenv("ethact", device);
34 printf("Problem booting with BOOTP\n");
37 spl_parse_image_header((struct image_header *)load_addr);