mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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 <agraf@suse.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
committed by
Michal Simek
parent
b123aff26f
commit
6915dcf359
@@ -515,6 +515,13 @@ int main(int argc, char **argv)
|
||||
} else if (params.type == IH_TYPE_PBLIMAGE) {
|
||||
/* PBL has special Image format, implements its' own */
|
||||
pbl_load_uboot(ifd, ¶ms);
|
||||
} else if (params.type == IH_TYPE_ZYNQMPBIF) {
|
||||
/* Image file is meta, walk through actual targets */
|
||||
int ret;
|
||||
|
||||
ret = zynqmpbif_copy_image(ifd, ¶ms);
|
||||
if (ret)
|
||||
return ret;
|
||||
} else {
|
||||
copy_file(ifd, params.datafile, pad_len);
|
||||
}
|
||||
|
Reference in New Issue
Block a user