3 * Andreas Pretzsch, carpe noctem engineering, apr@cn-eng.de
5 * This file is released under the terms of GPL v2 and any later version.
6 * See the file COPYING in the root directory of the source tree for details.
12 #if !defined(CONFIG_UPDATE_TFTP)
13 #error "CONFIG_UPDATE_TFTP required"
16 extern int update_tftp(ulong addr);
18 static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
26 addr = simple_strtoul(argv[1], NULL, 16);
28 return update_tftp(addr);
31 U_BOOT_CMD(fitupd, 2, 0, do_fitupd,
32 "update from FIT image",
34 "\t- run update from FIT image at addr\n"
35 "\t or from tftp 'updatefile'"