mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 02:18:54 +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;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ static s32 nand_fwc_get_mtd_partitions(struct fwc_info *fwc,
|
||||
priv->nftl_handler[idx]->nandt->block_start = priv->mtd[idx]->start / priv->mtd[idx]->erasesize;
|
||||
priv->nftl_handler[idx]->nandt->block_end = (priv->mtd[idx]->start + priv->mtd[idx]->size) / priv->mtd[idx]->erasesize;
|
||||
|
||||
for (int offset_e = priv->mtd[idx]->start; offset_e < priv->mtd[idx]->start + priv->mtd[idx]->size;) {
|
||||
for (int offset_e = 0; offset_e < priv->mtd[idx]->size;) {
|
||||
mtd_erase(priv->mtd[idx], offset_e, priv->mtd[idx]->erasesize);
|
||||
offset_e += priv->mtd[idx]->erasesize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user