diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-10-16 04:50:30 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-10-22 13:01:27 +0200 |
commit | a2b96ece5be146f4995d737f047e5bbb76079b8f (patch) | |
tree | af073ae6b90dcac0396ccedcade989453a6984e0 /tools/mkimage.c | |
parent | d0dd73974c613650cb0c3d32a734a954cedc9f8a (diff) | |
download | u-boot-a2b96ece5be146f4995d737f047e5bbb76079b8f.zip u-boot-a2b96ece5be146f4995d737f047e5bbb76079b8f.tar.gz u-boot-a2b96ece5be146f4995d737f047e5bbb76079b8f.tar.bz2 |
tools: add i.MX8/8X image support
i.MX8/8X bootable image type is container type.
The bootable image, containers a container set which supports two
container. The 1st container is for SECO firmware, the 2nd container
needs to include scfw, m4_0/1 image, ACore images per your requirement.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r-- | tools/mkimage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index 6abd4d6..38805f0 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -523,6 +523,13 @@ int main(int argc, char **argv) ret = zynqmpbif_copy_image(ifd, ¶ms); if (ret) return ret; + } else if (params.type == IH_TYPE_IMX8IMAGE) { + /* i.MX8/8X has special Image format */ + int ret; + + ret = imx8image_copy_image(ifd, ¶ms); + if (ret) + return ret; } else { copy_file(ifd, params.datafile, pad_len); } |