mirror of
https://xff.cz/git/u-boot/
synced 2025-09-25 04:21:18 +02:00
[new uImage] Fix autoscr command used with new uImage format
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
This commit is contained in:
@@ -100,6 +100,13 @@ autoscript (ulong addr, const char *fit_uname)
|
|||||||
puts ("Empty Script\n");
|
puts ("Empty Script\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* scripts are just multi-image files with one component, seek
|
||||||
|
* past the zero-terminated sequence of image lengths to get
|
||||||
|
* to the actual image data
|
||||||
|
*/
|
||||||
|
while (*data++);
|
||||||
break;
|
break;
|
||||||
#if defined(CONFIG_FIT)
|
#if defined(CONFIG_FIT)
|
||||||
case IMAGE_FORMAT_FIT:
|
case IMAGE_FORMAT_FIT:
|
||||||
@@ -155,8 +162,6 @@ autoscript (ulong addr, const char *fit_uname)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (*data++);
|
|
||||||
|
|
||||||
/* make sure cmd is null terminated */
|
/* make sure cmd is null terminated */
|
||||||
memmove (cmd, (char *)data, len);
|
memmove (cmd, (char *)data, len);
|
||||||
*(cmd + len) = 0;
|
*(cmd + len) = 0;
|
||||||
|
Reference in New Issue
Block a user