imx6 nand: dbbt version/layout

Middelschulte, Leif Leif.Middelschulte at klsmartin.com
Thu Apr 22 13:13:59 BST 2021


Hi,

I'm in the process of fixing up imx-kobs to support
- boot configuration dumps
- boot stream extracts/updates
on iMX6QDL using the GPMI-NAND interface, as provided by some more
"recent" kernels.

I updated barebox on the NAND flash storage using another instance of
barebox. Now it turns out that the dbbt version used (i.e. written) by
barebox and supported by imx-kobs (as it was) is not documented in the
i.MX6 QDL reference manual.
Barebox uses[0] DBBT version 0x1000000, while the reference manual
describes (i.MX6DQRM Rev 3., section 8.5.2.4) layout version 0x1.

Besides that, the reference manual apparently does not describe the
field `BBMarkerPhysicalOffsetInSpareData` at the end of the FCB
structure. Yet again, imx-kobs and barebox are reading/writing it.

So I'm wondering which behavior is correct?

[0]
https://git.pengutronix.de/cgit/barebox/tree/common/imx-bbu-nand-fcb.c?id=af0f068a6edad45b033e772056ac0352e1ba3613#n675


Best regards,

Leif
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Any views or opinions expressed are solely those of the author and do not necessarily represent those of KLS Martin. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


More information about the barebox mailing list