]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cmd/bootm.c
dm: ahci: Refactor to avoid static variables
[people/ms/u-boot.git] / cmd / bootm.c
index 083f3d19fe513b76e572e055c761c77fbdf4c573..953a57de33996b7b2c3c28cb320fc8420fcc76e2 100644 (file)
@@ -126,6 +126,9 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return do_bootm_states(cmdtp, flag, argc, argv, BOOTM_STATE_START |
                BOOTM_STATE_FINDOS | BOOTM_STATE_FINDOTHER |
                BOOTM_STATE_LOADOS |
+#ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH
+               BOOTM_STATE_RAMDISK |
+#endif
 #if defined(CONFIG_PPC) || defined(CONFIG_MIPS)
                BOOTM_STATE_OS_CMDLINE |
 #endif
@@ -387,7 +390,7 @@ static int nand_imls_legacyimage(struct mtd_info *mtd, int nand_dev,
                return -ENOMEM;
        }
 
-       ret = nand_read_skip_bad(mtd, off, &len, imgdata);
+       ret = nand_read_skip_bad(mtd, off, &len, NULL, mtd->size, imgdata);
        if (ret < 0 && ret != -EUCLEAN) {
                free(imgdata);
                return ret;
@@ -427,7 +430,7 @@ static int nand_imls_fitimage(struct mtd_info *mtd, int nand_dev, loff_t off,
                return -ENOMEM;
        }
 
-       ret = nand_read_skip_bad(mtd, off, &len, imgdata);
+       ret = nand_read_skip_bad(mtd, off, &len, NULL, mtd->size, imgdata);
        if (ret < 0 && ret != -EUCLEAN) {
                free(imgdata);
                return ret;