X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fspl%2Fspl_net.c;h=88831097fa60cb6dd681ad210ebe62a1ecad9680;hb=975f97b43181694041f77ecd8118364afe588144;hp=85fe508b1760f0a2ebec85057d96dddffa0e1811;hpb=01cce5fdd098add2b8aa570468cb35fca5d778fe;p=u-boot diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index 85fe508b17..88831097fa 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -33,14 +33,14 @@ static int spl_net_load_image(struct spl_image_info *spl_image, env_init(); env_relocate(); - setenv("autoload", "yes"); + env_set("autoload", "yes"); rv = eth_initialize(); if (rv == 0) { printf("No Ethernet devices found\n"); return -ENODEV; } if (bootdev->boot_device_name) - setenv("ethact", bootdev->boot_device_name); + env_set("ethact", bootdev->boot_device_name); rv = net_loop(BOOTP); if (rv < 0) { printf("Problem booting with BOOTP\n");