summaryrefslogtreecommitdiff
path: root/common/cmd_net.c
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-03-12 10:33:00 +0100
committerMarian Balakowicz <m8@semihalf.com>2008-03-12 10:33:00 +0100
commit424c4abdd175d2c470510df8ce0e32d3f463ec16 (patch)
tree83e552c0562b334d934376eb717229e118f6db66 /common/cmd_net.c
parentcd7c596e9f561dbbc17b717277438aee78cde14f (diff)
downloadu-boot-imx-424c4abdd175d2c470510df8ce0e32d3f463ec16.zip
u-boot-imx-424c4abdd175d2c470510df8ce0e32d3f463ec16.tar.gz
u-boot-imx-424c4abdd175d2c470510df8ce0e32d3f463ec16.tar.bz2
[new uImage] Add new uImage format support to autoscript routine
autoscript() routine is updated to accept second argument, which is only used for FIT images and provides a FIT subimage unit name. autoscript() routine callers must now pass two arguments. For non-interactive use (like in cmd_load.c, cmd_net.c), new environment variable 'autoscript_uname' is introduced and used as a FIT subimage unit name source. autoscript command accepts extended syntax of the addr argument: addr:<subimg_uname> Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'common/cmd_net.c')
-rw-r--r--common/cmd_net.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c
index dbf6b86..79e910c 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -220,9 +220,16 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
#ifdef CONFIG_AUTOSCRIPT
if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) {
- printf("Running autoscript at addr 0x%08lX ...\n", load_addr);
+ printf ("Running autoscript at addr 0x%08lX", load_addr);
+
+ s = getenv ("autoscript_uname");
+ if (s)
+ printf (":%s ...\n", s);
+ else
+ puts (" ...\n");
+
show_boot_progress (83);
- rcode = autoscript (load_addr);
+ rcode = autoscript (load_addr, s);
}
#endif
if (rcode < 0)