]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_bootm.c
ColdFire 54455: Fix correct boot location for atmel and intel
[u-boot] / common / cmd_bootm.c
index 9f5e0b4ee4c03d9c3fd2a1d5485bbab071df81c8..d8163494e826aba8a28302ee64c34787dad137e2 100644 (file)
@@ -466,7 +466,7 @@ U_BOOT_CMD(
        "\t'arg' can be the address of an initrd image\n"
 #if defined(CONFIG_OF_FLAT_TREE) || defined(CONFIG_OF_LIBFDT)
        "\tWhen booting a Linux kernel which requires a flat device-tree\n"
-       "\ta third argument is required which is the address of the of the\n"
+       "\ta third argument is required which is the address of the\n"
        "\tdevice-tree blob. To boot that kernel without an initrd image,\n"
        "\tuse a '-' for the second argument. If you do not pass a third\n"
        "\ta bd_info struct will be passed instead\n"
@@ -834,9 +834,11 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
                        of_flat_tree += 4 - tail;
                }
 
+#ifndef CFG_NO_FLASH
                /* move the blob if it is in flash (set of_data to !null) */
                if (addr2info ((ulong)of_flat_tree) != NULL)
                        of_data = (ulong)of_flat_tree;
+#endif
 
 
 #if defined(CONFIG_OF_FLAT_TREE)