[PATCH 28/34] scripts: imx-usb-loader: Use dcd len to invalidate dcd data
Sascha Hauer
s.hauer at pengutronix.de
Tue Feb 2 06:48:11 PST 2016
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 at pengutronix.de>
---
scripts/imx/imx-usb-loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 2f1db28..24cfe05 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:
--
2.7.0.rc3
More information about the barebox
mailing list