diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/imx/imx-image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index c0bf9c004f..d0c4152b81 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -450,6 +450,11 @@ static int write_dcd(const char *outfile) static int check(const struct config_data *data, uint32_t cmd, uint32_t addr, uint32_t mask) { + if (data->header_version != 2) { + fprintf(stderr, "DCD check command is not available or " + "not yet implemented for this SOC\n"); + return -EINVAL; + } if (curdcd > MAX_DCD - 3) { fprintf(stderr, "At maximum %d dcd entried are allowed\n", MAX_DCD); return -ENOMEM; |