summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2006-08-16 13:59:47 -0500
committerMatthew McClintock <msm@freescale.com>2006-08-16 13:59:47 -0500
commit86c8e17f25e972a7e272950a0735fad84e082b88 (patch)
treeca83eb028420227d4afc530b2c42f7adb113212e /common/cmd_bootm.c
parent25c751e9adc86e22fe3b5b47cf2806379b575db7 (diff)
downloadu-boot-imx-86c8e17f25e972a7e272950a0735fad84e082b88.zip
u-boot-imx-86c8e17f25e972a7e272950a0735fad84e082b88.tar.gz
u-boot-imx-86c8e17f25e972a7e272950a0735fad84e082b88.tar.bz2
* Fix disable_of booting
Signed-off-by: Matthew McClintock <msm@freescale.com>
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 6eb258e..27bb494 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -737,7 +737,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
}
#ifdef CONFIG_OF_FLAT_TREE
- if(argc >= 3) {
+ if(argc > 3) {
of_flat_tree = (char *) simple_strtoul(argv[3], NULL, 16);
hdr = (image_header_t *)of_flat_tree;
@@ -802,6 +802,9 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
}
printf (" Booting using flat device tree at 0x%x\n",
of_flat_tree);
+ } else if(getenv("disable_of") == NULL) {
+ printf ("ERROR: bootm needs flat device tree as third argument\n");
+ return;
}
#endif
if (!data) {