projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a449c
)
Fix disable_of booting
author
Matthew McClintock
<msm@freescale.com>
Tue, 22 Aug 2006 14:31:59 +0000
(09:31 -0500)
committer
Jon Loeliger
<jdl@freescale.com>
Tue, 22 Aug 2006 14:31:59 +0000
(09:31 -0500)
Signed-off-by: Matthew McClintock <msm@freescale.com>
common/cmd_bootm.c
patch
|
blob
|
history
diff --git
a/common/cmd_bootm.c
b/common/cmd_bootm.c
index f980659f7bd96d10e5d02732919221b21420f3e0..652d8431da83349eb1f355ddeab4d8caee69f614 100644
(file)
--- 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) {