From 6915dcf35987d654b491524f151e56b91e0d0ec9 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Fri, 13 Apr 2018 14:18:52 +0200 Subject: tools: zynqmpimage: Add bif support The officially described way to generate boot.bin files for ZynqMP is to describe the contents of the target binary using a file of the "bif" format. This file then links to other files that all get packed into a bootable image. This patch adds support to read such a .bif file and generate a respective ZynqMP boot.bin file that can include the normal image and pmu files, but also supports image partitions now. This makes it a handy replacement for the proprietary "bootgen" utility that is currently used to generate boot.bin files with FSBL. Signed-off-by: Alexander Graf Signed-off-by: Michal Simek --- tools/zynqmpimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/zynqmpimage.c') diff --git a/tools/zynqmpimage.c b/tools/zynqmpimage.c index 870a6b5710..19b2f02ff1 100644 --- a/tools/zynqmpimage.c +++ b/tools/zynqmpimage.c @@ -86,7 +86,7 @@ static uint32_t zynqmpimage_checksum(struct zynqmp_header *ptr) return cpu_to_le32(checksum); } -static void zynqmpimage_default_header(struct zynqmp_header *ptr) +void zynqmpimage_default_header(struct zynqmp_header *ptr) { int i; @@ -209,7 +209,7 @@ static void print_partition(const void *ptr, const struct partition_header *ph) printf(" Checksum : 0x%08x\n", le32_to_cpu(ph->checksum)); } -static void zynqmpimage_print_header(const void *ptr) +void zynqmpimage_print_header(const void *ptr) { struct zynqmp_header *zynqhdr = (struct zynqmp_header *)ptr; int i; -- cgit v1.2.3