[File] [PATCH] Add magic for Xilinx Boot Images
Brandon Maier
brandon.maier at collins.com
Wed Jan 3 20:34:03 UTC 2024
---
magic/Magdir/xilinx | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/magic/Magdir/xilinx b/magic/Magdir/xilinx
index fd146781..7f72d677 100644
--- a/magic/Magdir/xilinx
+++ b/magic/Magdir/xilinx
@@ -55,4 +55,27 @@
>0x1a8 ubeshort x \b-%04x
>0x1aa ubelong x \b-%08x
>0x1ae ubeshort x \b%04x
->0x1c0 lelong x \b, %d sections
\ No newline at end of file
+>0x1c0 lelong x \b, %d sections
+
+# Xilinx Boot Image files
+# File format spec is from Xilinx UG1283
+# https://docs.xilinx.com/r/en-US/ug1283-bootgen-user-guide
+0x20 lelong 0xAA995566
+>0x24 lelong 0x584c4e58 Xilinx Boot Image
+>>0x0 lelong 0xEAFFFFFE \b, 32-bit
+>>0x0 lelong 0x14000000 \b, 64-bit
+>>0x28 lelong 0x00000000 \b, unencrypted
+>>0x28 lelong 0xA5C3C5A5 \b, black key in efuse
+>>0x28 lelong 0xA5C3C5A7 \b, obfuscated key in efuse
+>>0x28 lelong 0x3A5C3C5A \b, red key in bbram
+>>0x28 lelong 0xA5C3C5A3 \b, efuse red key in efuse
+>>0x28 lelong 0xA35C7CA5 \b, obfuscated key in boot header
+>>0x28 lelong 0xA3A5C3C5 \b, user key in boot header
+>>0x28 lelong 0xA35C7C53 \b, black key in boot header
+>>0x2C lelong 0x01010000 \b, Zynq 7000 SoC
+!:mime application/x-xilinx-boot-zynq
+>>>0x34 ulelong >0 \b, FSBL size %#x bytes
+>>0x2C lelong !0x01010000 \b, Zynq UltraScale+ MPSoC
+!:mime application/x-xilinx-boot-zynqmp
+>>>0x34 ulelong >0 \b, PMU size %#x bytes
+>>>0x3C ulelong >0 \b, FSBL size %#x bytes
--
2.43.0
More information about the File
mailing list