summaryrefslogtreecommitdiffstats
path: root/scripts/imx/imx-usb-loader.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-02-02 09:44:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-04 08:29:17 +0100
commit7dede160a8a6167420d3ab98ea63108eca44b0f5 (patch)
tree6d9541d696b3eaaceb79090bf5c748c5edd1a4b4 /scripts/imx/imx-usb-loader.c
parent3fc80b8d3df693b982cbc18595f82175caa8d3a6 (diff)
downloadbarebox-7dede160a8a6167420d3ab98ea63108eca44b0f5.tar.gz
barebox-7dede160a8a6167420d3ab98ea63108eca44b0f5.tar.xz
scripts: imx-usb-loader: Use dcd len to invalidate dcd data
We invalidate the dcd data in the uploaded image since we already processed it manually. To do so we have set the dcd pointer to 0. Doing it this way prevents the ROM from executing the HAB code in debug mode. Use the dcd length instead to invalidate the dcd data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/imx/imx-usb-loader.c')
-rw-r--r--scripts/imx/imx-usb-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 2f1db28f8c..24cfe0580d 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -871,7 +871,7 @@ static int perform_dcd(unsigned char *p, unsigned char *file_start, unsigned cnt
switch (usb_id->mach_id->header_type) {
case HDR_MX51:
ret = write_dcd_table_old(ohdr, file_start, cnt);
- ohdr->dcd = 0;
+ ohdr->dcd_block_len = 0;
break;
case HDR_MX53: