mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
[new uImage] Add gen_get_image() routine
This routine assures that image (whether legacy or FIT) is not in a special dataflash storage. If image address is a dataflash address image is moved to system RAM. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
This commit is contained in:
@@ -234,6 +234,11 @@ static ulong get_fdt (ulong alloc_current,
|
||||
|
||||
if(argc > 3) {
|
||||
fdt = (char *)simple_strtoul (argv[3], NULL, 16);
|
||||
|
||||
debug ("## Checking for 'FDT'/'FDT image' at %08lx\n", fdt);
|
||||
|
||||
/* copy from dataflash if needed */
|
||||
fdt = (char *)gen_get_image ((ulong)fdt);
|
||||
fdt_hdr = (image_header_t *)fdt;
|
||||
|
||||
if (fdt_check_header (fdt) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user