Skip to content
Snippets Groups Projects
Commit 5de62c47 authored by Matthew McClintock's avatar Matthew McClintock Committed by Jon Loeliger
Browse files

Fix disable_of booting

parent 87a449c8
No related branches found
No related tags found
No related merge requests found
...@@ -737,7 +737,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, ...@@ -737,7 +737,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
} }
#ifdef CONFIG_OF_FLAT_TREE #ifdef CONFIG_OF_FLAT_TREE
if(argc >= 3) { if(argc > 3) {
of_flat_tree = (char *) simple_strtoul(argv[3], NULL, 16); of_flat_tree = (char *) simple_strtoul(argv[3], NULL, 16);
hdr = (image_header_t *)of_flat_tree; hdr = (image_header_t *)of_flat_tree;
...@@ -802,6 +802,9 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, ...@@ -802,6 +802,9 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
} }
printf (" Booting using flat device tree at 0x%x\n", printf (" Booting using flat device tree at 0x%x\n",
of_flat_tree); of_flat_tree);
} else if(getenv("disable_of") == NULL) {
printf ("ERROR: bootm needs flat device tree as third argument\n");
return;
} }
#endif #endif
if (!data) { if (!data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment