Flash:Flashregion Table: Difference between revisions
Jump to navigation
Jump to search
m (→Entry Table) |
m (→Entry Table) |
||
Line 32: | Line 32: | ||
=== Entry Table === | === Entry Table === | ||
Then follows a 32 byte entry for each file | Then follows a 32 byte entry for each file | ||
{| class="wikitable" style="text-align:center" | |||
|- | |||
! colspan="13" | Typical listed | |||
|- | |||
| '''NOR''' || [[Flash:asecure_loader|asecure_loader]] || [[Flash:Encrypted_Individual Data_-_eEID|eEID]] || [[Flash:Individual_System_Data_-_cISD|cISD]] || [[Flash:Common_System_Data_-_cCSD|cCSD]] || [[Flash:Revoke_Program#trvk_prg0|trvk_prg0]] || [[Flash:Revoke_Program#trvk_prg1|trvk_prg1]] || [[Flash:Revoke_Package#trvk_pkg0|trvk_pkg0]] || [[Flash:Revoke_Package#trvk_pkg1|trvk_pkg1]] || || [[Flash:ROS#ros0|ros0]] || [[Flash:ROS#ros1|ros1]] || [[Flash:cvtrm|cvtrm]] | |||
|- | |||
| '''NAND''' || [[Flash:asecure_loader|asecure_loader]] || [[Flash:Encrypted_Individual Data_-_eEID|eEID]] || [[Flash:Individual_System_Data_-_cISD|cISD]] || [[Flash:Common_System_Data_-_cCSD|cCSD]] || colspan="2" style="text-align:center" | [[Flash:Revoke_Program|trvk_prg]] || colspan="2" style="text-align:center" | [[Flash:Revoke_Package|trvk_pkg]] || [[Flash:creserved_0|creserved_0]] || colspan="2" style="text-align:center" | [[Flash:ROS|ros]] || [[Flash:cvtrm|cvtrm]] | |||
|- | |||
|} | |||
==== example ==== | ==== example ==== | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 19:44, 8 December 2012
Flashregion Table
Location:
- NOR: 0x0000400 - 0x00007FF
- NAND: 0x0040200 - 0x00407FF
The next 1024 bytes contain the entry table
Header
Small 16 byte header to describe length and entry count
example
NOR: 0x0000400 - 0x000040F | NAND: 0x0040200 - 0x004020F |
---|---|
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000400 00 00 00 01 00 00 00 0B 00 00 00 00 00 EF FC 00 .............ïü. |
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00040200 00 00 00 01 00 00 00 09 00 00 00 00 00 EB FE 00 .............ëþ. |
structure
Address | Length | Value | Description |
---|---|---|---|
0x0 | 0x4 | 0x01 | Unknown |
0x4 | 0x4 | 0x0B | Entry Count |
0x8 | 0x8 | 0xEFFC00 | Length of Flash Region (relative to 0x400 (region start) |
First is a header, this tells us how many files are stored here.
Entry Table
Then follows a 32 byte entry for each file
Typical listed | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
NOR | asecure_loader | eEID | cISD | cCSD | trvk_prg0 | trvk_prg1 | trvk_pkg0 | trvk_pkg1 | ros0 | ros1 | cvtrm | |
NAND | asecure_loader | eEID | cISD | cCSD | trvk_prg | trvk_pkg | creserved_0 | ros | cvtrm |
example
NOR: 0x0000410 - 0x00007FF | NAND: 0x0040210 - 0x00407FF |
---|---|
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000410 00 00 00 00 00 00 04 00 00 00 00 00 00 02 E8 00 ..............è. 00000420 61 73 65 63 75 72 65 5F 6C 6F 61 64 65 72 00 00 asecure_loader.. 00000430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ |
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00040210 00 00 00 00 00 00 06 00 00 00 00 00 00 04 00 00 ................ 00040220 61 73 65 63 75 72 65 5F 6C 6F 61 64 65 72 00 00 asecure_loader.. 00040230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ |
structure
Address | Length | Value | Description |
---|---|---|---|
0x0 | 0x8 | 0x400 | File offset relative to 0x400 (Region start) |
0x8 | 0x8 | 0x2E800 | File length |
0x10 | 0x20 | char[32]:"asecure_loader" | File name |
|