3 * Andreas Pretzsch, carpe noctem engineering, apr@cn-eng.de
5 * SPDX-License-Identifier: GPL-2.0+
12 #if !defined(CONFIG_UPDATE_TFTP)
13 #error "CONFIG_UPDATE_TFTP required"
16 static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
24 addr = simple_strtoul(argv[1], NULL, 16);
26 return update_tftp(addr, NULL, NULL);
29 U_BOOT_CMD(fitupd, 2, 0, do_fitupd,
30 "update from FIT image",
32 "\t- run update from FIT image at addr\n"
33 "\t or from tftp 'updatefile'"