v1.0.2 fix fitimage issue

This commit is contained in:
刘可亮
2023-12-22 10:19:53 +08:00
parent 46be2cf5c7
commit 0397775c80
6 changed files with 112 additions and 46 deletions

View File

@@ -64,12 +64,15 @@ static int do_nand_boot(int argc, char *argv[])
info.dev = (void *)mtd;
info.bl_len = mtd->writesize;
info.dev_type = DEVICE_SPINAND;
spl_load_simple_fit(&info, &entry_point);
ret = spl_load_simple_fit(&info, &entry_point);
if (ret < 0)
goto out;
boot_app((void *)entry_point);
out:
return ret;
}

View File

@@ -63,11 +63,15 @@ static int do_nor_boot(int argc, char *argv[])
info.dev = (void *)mtd;
info.bl_len = 1;
info.dev_type = DEVICE_SPINOR;
spl_load_simple_fit(&info, &entry_point);
ret = spl_load_simple_fit(&info, &entry_point);
if (ret < 0)
goto out;
boot_app((void *)entry_point);
out:
return ret;
}