projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43142e8
)
[new uImage] Fix autoscr command used with new uImage format
author
Bartlomiej Sieka
<tur@semihalf.com>
Thu, 20 Mar 2008 22:10:19 +0000
(23:10 +0100)
committer
Bartlomiej Sieka
<tur@semihalf.com>
Thu, 20 Mar 2008 22:10:19 +0000
(23:10 +0100)
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
common/cmd_autoscript.c
patch
|
blob
|
history
diff --git
a/common/cmd_autoscript.c
b/common/cmd_autoscript.c
index 5163d57cc4d9f3ce994f6ca6ad337791ae70fa9b..1a37b90d792f08e6384faff7025df342b4c3533a 100644
(file)
--- 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;