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(struct spl_boot_device *bootdev)
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");
30 if (bootdev->boot_device_name)
31 setenv("ethact", bootdev->boot_device_name);
34 printf("Problem booting with BOOTP\n");
37 return spl_parse_image_header(&spl_image,
38 (struct image_header *)load_addr);