summaryrefslogtreecommitdiff
path: root/tools/pblimage.h
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2022-02-17 11:51:36 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2022-02-28 12:01:02 +0530
commit2058967d2fe8f93142d774bc47241d80894027d5 (patch)
tree6211b7cd5d8f7d8b89a6c5cace9cb701dbdcaec6 /tools/pblimage.h
parent453db6056850e1ac1be0a12df72fcf3bd5f61bd3 (diff)
downloadu-boot-2058967d2fe8f93142d774bc47241d80894027d5.tar.gz
tools: pblimage: fix image header verification function
The Layerscape platforms have different RCW header value from FSL PowerPC platforms, the current image header verification callback is only working on PowerPC, it will fail on Layerscape, this patch is to fix this issue. This is a historical problem and exposed by the following patch: http://patchwork.ozlabs.org/project/uboot/patch/20220114173443.9877-1-pali@kernel.org Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'tools/pblimage.h')
-rw-r--r--tools/pblimage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pblimage.h b/tools/pblimage.h
index 81c5492926..0222e8067b 100644
--- a/tools/pblimage.h
+++ b/tools/pblimage.h
@@ -8,7 +8,8 @@
#define RCW_BYTES 64
#define RCW_PREAMBLE 0xaa55aa55
-#define RCW_HEADER 0x010e0100
+#define RCW_ARM_HEADER 0x01ee0100
+#define RCW_PPC_HEADER 0x010e0100
struct pbl_header {
uint32_t preamble;