mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
v1.0.2 fix fitimage issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user