]> git.sur5r.net Git - u-boot/commitdiff
Support legacy multi-type images without FDT section.
authorNick Spence <nick.spence@freescale.com>
Fri, 9 May 2008 05:32:22 +0000 (22:32 -0700)
committerWolfgang Denk <wd@denx.de>
Fri, 9 May 2008 22:38:55 +0000 (00:38 +0200)
This patch enables legacy multi-type images containing only a Linux kernel
and root file system to be loaded, maintaining compatibility with previous
versions of u-boot.

This is required when using old image files such as a Linux 2.4 kernel /
filesystem.

Signed-off-by: Nick Spence <nick.spence@freescale.com>
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
lib_ppc/bootm.c

index 0328baddcaa3610bb260b73eda4437474994a7d2..9194fd8b0a6aca61ee97316a296f412d7aac0734 100644 (file)
@@ -667,9 +667,8 @@ static int boot_get_fdt (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
                                goto error;
                        }
                } else {
-                       fdt_error ("Did not find a Flattened Device Tree "
-                               "in a legacy multi-component image");
-                       goto error;
+                       debug ("## No Flattened Device Tree\n");
+                       return 0;
                }
        } else {
                debug ("## No Flattened Device Tree\n");