diff options
author | Bartlomiej Sieka <tur@semihalf.com> | 2008-03-20 23:10:19 +0100 |
---|---|---|
committer | Bartlomiej Sieka <tur@semihalf.com> | 2008-03-20 23:10:19 +0100 |
commit | 36cc8cbb3379d5166f882641123521735c469f92 (patch) | |
tree | 35f2bc24f563226037a573f66339b6c2a322dd91 /common/cmd_autoscript.c | |
parent | 43142e817f0597be412e7cbe19413f5532eafa5d (diff) | |
download | u-boot-36cc8cbb3379d5166f882641123521735c469f92.tar.gz |
[new uImage] Fix autoscr command used with new uImage format
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Diffstat (limited to 'common/cmd_autoscript.c')
-rw-r--r-- | common/cmd_autoscript.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/cmd_autoscript.c b/common/cmd_autoscript.c index 5163d57cc4..1a37b90d79 100644 --- a/common/cmd_autoscript.c +++ b/common/cmd_autoscript.c @@ -100,6 +100,13 @@ autoscript (ulong addr, const char *fit_uname) puts ("Empty Script\n"); 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; #if defined(CONFIG_FIT) case IMAGE_FORMAT_FIT: @@ -155,8 +162,6 @@ autoscript (ulong addr, const char *fit_uname) return 1; } - while (*data++); - /* make sure cmd is null terminated */ memmove (cmd, (char *)data, len); *(cmd + len) = 0; |