When building a Flattened Image Tree (FIT) the image type needs to be
"flat_dt".  Commit 89a4d6b12fd6394898b8a454cbabeaf1cd59bae5 introduced a
regression which caused the user to need to specify the "-T flat_dt"
parameter on the command line when building a FIT image.  The "-T
flat_dt" parameter should not be needed and is at odds with the current
FIT image documentation.

Signed-off-by: Peter Tyser <pty...@xes-inc.com>
---
Ideally this patch would make it into the upcoming release as its a
regression.  I don't really care when 2/3 and 3/3 are applied, they
aren't really bug fixes.

 tools/mkimage.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tools/mkimage.c b/tools/mkimage.c
index ab6ea32..07a9a6f 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -231,6 +231,12 @@ main (int argc, char **argv)
                                        usage ();
                                params.datafile = *++argv;
                                params.fflag = 1;
+
+                               /*
+                                * The flattened image tree (FIT) format
+                                * requires a flattened device tree image type
+                                */
+                               params.type = IH_TYPE_FLATDT;
                                goto NXTARG;
                        case 'n':
                                if (--argc <= 0)
-- 
1.6.2.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to