aboutsummaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2018-11-20 10:19:36 +0000
committerStefano Babic <sbabic@denx.de>2019-01-01 14:12:18 +0100
commit6609c2663c9c9699f3d279ccea599e5d18578b20 (patch)
treec45d3d2be7c2da3e754bdab8117efde9b68cde2b /tools/mkimage.c
parentea91031b223223667b8dbbaec7fa7bbb51f96a0b (diff)
downloadu-boot-6609c2663c9c9699f3d279ccea599e5d18578b20.zip
u-boot-6609c2663c9c9699f3d279ccea599e5d18578b20.tar.gz
u-boot-6609c2663c9c9699f3d279ccea599e5d18578b20.tar.bz2
tools: add i.MX8M image support
i.MX8M bootable image type is like i.MX6/7, but there is signed HDMI firmware image in front of A53 bootable image, which is also has an IVT header. Here we also include fit image to generate a bootable image. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 38805f0..ea5ed54 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -530,6 +530,13 @@ int main(int argc, char **argv)
ret = imx8image_copy_image(ifd, &params);
if (ret)
return ret;
+ } else if (params.type == IH_TYPE_IMX8MIMAGE) {
+ /* i.MX8M has special Image format */
+ int ret;
+
+ ret = imx8mimage_copy_image(ifd, &params);
+ if (ret)
+ return ret;
} else {
copy_file(ifd, params.datafile, pad_len);
}