From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Ramirez-Ortiz, LDTS Date: Mon, 2 Dec 2019 10:44:23 +0100 Subject: [U-Boot] [PATCH] tools/imximage: fix reported DCD information for MX7ULP In-Reply-To: <20191128103321.7285-1-jorge@foundries.io> References: <20191128103321.7285-1-jorge@foundries.io> Message-ID: <20191202094423.GA16086@trex> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 28/11/19 11:33:21, Jorge Ramirez-Ortiz wrote: > On the MX7ULP, OCRAM for DCD is at 0x2f010000 any comments? do notice that this is not trivial debug information: this is required for security puposes so images can then be signed and booted via SDP. Dumping the wrong information here is important stuff. > > Signed-off-by: Jorge Ramirez-Ortiz > --- > tools/imximage.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/imximage.c b/tools/imximage.c > index d7c0b6e883..762a06d468 100644 > --- a/tools/imximage.c > +++ b/tools/imximage.c > @@ -11,6 +11,7 @@ > #include "imagetool.h" > #include > #include "imximage.h" > +#include > > #define UNDEFINED 0xFFFFFFFF > > @@ -524,8 +525,13 @@ static void print_hdr_v2(struct imx_header *imx_hdr) > printf("HAB Blocks: 0x%08x 0x%08x 0x%08x\n", > (uint32_t)fhdr_v2->self, 0, > (uint32_t)(fhdr_v2->csf - fhdr_v2->self)); > +#ifndef CONFIG_MX7ULP > printf("DCD Blocks: 0x00910000 0x%08x 0x%08x\n", > offs, be16_to_cpu(dcdlen)); > +#else > + printf("DCD Blocks: 0x2f010000 0x%08x 0x%08x\n", > + offs, be16_to_cpu(dcdlen)); > +#endif > } > } else { > imx_header_v2_t *next_hdr_v2; > -- > 2.17.1 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > https://lists.denx.de/listinfo/u-boot