This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can read the exact size of the image from NAND Flash device in u-boot?

Hi,

I am trying to read  the image data from NAND device. I flashed the MLO, u-boot.img ,uImage in entire indivisual raw partition.

I able to read the particular partitions in u-boot using nand read api provided in u-boot.

But when i am flashing the ubi.img with exact size , it flashed and boots properly. But for reading the image from NAND , with exact size of ubi.img , getting the error like  ECC: uncorrectable . What might be the issue?

Can we able to read the exact size of the image from the NAND ? or need to read the entire page?

Can any one help me ?