Hi All,
# For flashing the image into nand thr u-boot , we generaly follow the sequence like
mmc rescan 0
mw.b 0x82000000 0xFF 0x20000
fatload mmc 0 0x82000000 MLO
(here say 38000 bytes read i.e size of MLO)
nandecc hw 2
nand erase 0x0 0x20000
nand write.i 0x82000000 0x0 0x20000
(while writing we write 0x20000 bytes).
# but in reverse case , suppose i have to read the MLO from the nand i.e only size of MLO .
i can use the nand read command in u-boot , but how i get the exact size of the MLO.? ......if i read the entire size and create the new backup MLO but the original and backup MLO size may be different.
Can any one help me on this issue and correct me if am wrong?