浏览代码

Support legacy multi-type images without FDT section.

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>
Nick Spence 17 年之前
父节点
当前提交
91a616741f
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      lib_ppc/bootm.c

+ 2 - 3
lib_ppc/bootm.c

@@ -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");