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>
This commit is contained in:
		
							parent
							
								
									881031d973
								
							
						
					
					
						commit
						91a616741f
					
				| 
						 | 
					@ -667,9 +667,8 @@ static int boot_get_fdt (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
 | 
				
			||||||
				goto error;
 | 
									goto error;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			fdt_error ("Did not find a Flattened Device Tree "
 | 
								debug ("## No Flattened Device Tree\n");
 | 
				
			||||||
				"in a legacy multi-component image");
 | 
								return 0;
 | 
				
			||||||
			goto error;
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		debug ("## No Flattened Device Tree\n");
 | 
							debug ("## No Flattened Device Tree\n");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue