]> Git Repo - J-u-boot.git/blame - cmd/fitupd.c
.gitlab-ci.yml: add Qemu tests for MIPS Malta board
[J-u-boot.git] / cmd / fitupd.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
1aaab00d
WD
2/*
3 * (C) Copyright 2011
4 * Andreas Pretzsch, carpe noctem engineering, [email protected]
7130a579
AP
5 */
6
7#include <common.h>
8#include <command.h>
ea5427e2 9#include <net.h>
7130a579 10
09140113
SG
11static int do_fitupd(struct cmd_tbl *cmdtp, int flag, int argc,
12 char *const argv[])
7130a579
AP
13{
14 ulong addr = 0UL;
15
16 if (argc > 2)
4c12eeb8 17 return CMD_RET_USAGE;
7130a579
AP
18
19 if (argc == 2)
20 addr = simple_strtoul(argv[1], NULL, 16);
21
c7ff5528 22 return update_tftp(addr, NULL, NULL);
7130a579
AP
23}
24
25U_BOOT_CMD(fitupd, 2, 0, do_fitupd,
26 "update from FIT image",
27 "[addr]\n"
28 "\t- run update from FIT image at addr\n"
29 "\t or from tftp 'updatefile'"
30);
This page took 0.369053 seconds and 4 git commands to generate.