Editing Flash:asecure loader
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 19: | Line 19: | ||
|- | |- | ||
|} | |} | ||
==== structure ==== | ==== structure ==== | ||
{|class="wikitable" | {|class="wikitable" | ||
Line 58: | Line 57: | ||
! Address !! Length !! Value !! Description | ! Address !! Length !! Value !! Description | ||
|- | |- | ||
| 0x0 || 0x08 || 0x40 || File offset relative to | | 0x0 || 0x08 || 0x40 || File offset relative to 0x810 (asecure_loader header) | ||
|- | |- | ||
| 0x8 || 0x08 || 0xE8D0 || File Length | | 0x8 || 0x08 || 0xE8D0 || File Length | ||
Line 97: | Line 96: | ||
|} | |} | ||
==== Calculating metldr data size ==== | |||
(first 4 bytes from <abbr title="0x840 (NOR) or 0x40840 (NAND)">header</abbr> * 0x10)+0x40 = datasize | (first 4 bytes from <abbr title="0x840 (NOR) or 0x40840 (NAND)">header</abbr> * 0x10)+0x40 = datasize | ||
thus, above example : 00000E89*0x10+0x40 = 0xE8D0 (which should be same as value at 0x81E (NOR) or 0x4081E (NAND)) | thus, above example : 00000E89*0x10+0x40 = 0xE8D0 (which should be same as value at 0x81E (NOR) or 0x4081E (NAND)) | ||
Line 118: | Line 102: | ||
{{Flash}} | {{Flash}} | ||
[[Category:Flash]] |