ImHex-Patterns icon indicating copy to clipboard operation
ImHex-Patterns copied to clipboard

patterns: add Xilinx boot images

Open blmaier opened this issue 1 year ago • 2 comments

  • Adds pattern for Xilinx's Zynq UltraScale+ Boot Image format.
  • Boot images are generated by Xilinx's bootgen tool.
  • Spec: Xilinx UG1283 https://docs.xilinx.com/r/en-US/ug1283-bootgen-user-guide/Zynq-UltraScale-MPSoC-Boot-and-Configuration
  • Add test file generated as follows
    • Build bootgen tool from https://github.com/Xilinx/bootgen
    • Create dummy data with dd if=/dev/zero of=image.bin count=1
    • Create bif with echo "img: {image.bin}" >image.bif
    • Create test bin with ./bootgen -arch zynqmp -image image.bif -o xilinx_bootgen.hexpat.bin

blmaier avatar Dec 21 '23 18:12 blmaier

Hey, thanks a lot!

Do you have any test file available (without copyrighted code in it) that you could upload as well? Then the CI can automatically run tests on it to make sure it won't break in the future

WerWolv avatar Dec 22 '23 13:12 WerWolv

Hey, thanks a lot!

Do you have any test file available (without copyrighted code in it) that you could upload as well? Then the CI can automatically run tests on it to make sure it won't break in the future

I generated a dummy boot image with a NULL file, it has coverage of most of the pattern.

blmaier avatar Dec 22 '23 19:12 blmaier

Thank you!

WerWolv avatar Dec 28 '23 17:12 WerWolv