Page 159 in TMS320DM355 DMSoC ARM Subsystem User's Guide for Dm355 refers to two formats for NAND flash layout that can be used for booting from NAND (table 11-2 and 11-3).
I use NAND with 2048 bytes of data per page. I was successfully able to program UBL by using SD Card Flashing Tool. That tool stores data in (512+16) x 4 format. I have tweaked the tool to program the data in MTD (2048+64) format, which according to the above mentioned document should be compatible with NAND boot. However, the UBL code fails to load.
What is "standard layout" and how does RBL know if it needs to use one or the other (compatibility mode)?
The reason for my question is I need to figure out a way to reprogram the UBL from Linux environment. I would like to be able to use /dev/mtd0 to rewrite the UBL with MTD format where ECC bits follow 2048 bytes of data (standard mode, table 11-3). Should that work?
Thank you.