Hi,
I'm trying to run ubl and u-boot and boot kernel from the nand.
I have to generate valid ubl and u-boot image files to be written in nand flash using nand erase/write methods available within u-boot.
Firstly, I verified that nand programming through Serial Flash Programming tool (SFH) works good, now I would like to replicate this process without SFH.
However I do not understand how SFH operates over the original u-boot.bin file.
Using nand dump I see what sfh does to make it work:
a short header is generated and stored at address c0000,
c0000: bb 4c 42 55 00 00 08 c1 cd 00 00 00 06 00 00 00 01 00 00 00 00 00 08 c1
then, the rest of the page is blank (0xff) and u-boot.bin image is stored starting at c0800,
c0800: 13 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 ..
Finally a unknown chunk of data is appended at the end of u-image till the end of sector
.. 20 01 04 04 02 08 02 40 12 90 02 00 20 40 28 02
Please, does anyone know the details of this algorithm?
Regards,
Gabriele