Changes

429 bytes added ,  19:13, 7 June 2018
More info
Line 20: Line 20:  
| 0x104
 
| 0x104
 
| 0x4
 
| 0x4
| Write Size (size of non-secure data in Media Units which are 0x200 bytes)
+
| Secure Area Start Address (in Media Units which are 0x200 bytes)
 
|-
 
|-
 
| 0x108
 
| 0x108
 
| 0x4
 
| 0x4
| 0xFFFFFFFF
+
| Backup Area Start Address (always 0xFFFFFFFF)
 
|-
 
|-
 
| 0x10C
 
| 0x10C
 
| 0x1
 
| 0x1
| KEK Index
+
| Title KEK Index (high nibble) and KEK Index (low nibble)
 
|-
 
|-
 
| 0x10D
 
| 0x10D
 
| 0x1
 
| 0x1
| Gamecard Type (0xFA = 1GB, 0xF8 = 2GB, 0xF0 = 4GB, 0xE0 = 8GB, 0xE1 = 16GB, 0xE2 = 32GB)
+
| Gamecard Size (0xFA = 1GB, 0xF8 = 2GB, 0xF0 = 4GB, 0xE0 = 8GB, 0xE1 = 16GB, 0xE2 = 32GB)
 
|-
 
|-
 
| 0x10E
 
| 0x10E
 
| 0x1
 
| 0x1
| ?
+
| Gamecard Header Version
 
|-
 
|-
 
| 0x10F
 
| 0x10F
 
| 0x1
 
| 0x1
| Gamecard Options (bit0 = AutoBoot, bit1 = HistoryErase)
+
| Gamecard Flags (bit0 = AutoBoot, bit1 = HistoryErase)
 
|-
 
|-
 
| 0x110
 
| 0x110
 
| 0x8
 
| 0x8
| Random value for challenge–response authentication
+
| Package Id (used for challenge–response authentication)
 
|-
 
|-
 
| 0x118
 
| 0x118
 
| 0x8
 
| 0x8
| Gamecard Size (in Media Units which are 0x200 bytes)
+
| Valid Data End Address (in Media Units which are 0x200 bytes)
 
|-
 
|-
 
| 0x120
 
| 0x120
Line 72: Line 72:  
| 0x180
 
| 0x180
 
| 0x4
 
| 0x4
| Secure Mode Flag (0x01 means Secure Mode is available)
+
| Secure Mode Flag (always 1, which means Secure Mode is available)
 
|-
 
|-
 
| 0x184
 
| 0x184
 
| 0x4
 
| 0x4
| 2?
+
| Title Key Flag (always 2)
 
|-
 
|-
 
| 0x188
 
| 0x188
 
| 0x4
 
| 0x4
| 0?
+
| Key Flag (always 0)
 
|-
 
|-
 
| 0x18C
 
| 0x18C
 
| 0x4
 
| 0x4
| Duplicate Write Size (size of non-secure data in Media Units which are 0x200 bytes)
+
| Normal Area End Address (in Media Units which are 0x200 bytes)
 
|-
 
|-
 
| 0x190
 
| 0x190
Line 101: Line 101:  
|-
 
|-
 
| 0x0
 
| 0x0
 +
| 0x8
 +
| Firmware Version (0x01 for old Gamecards, 0x02 for new Gamecards with the "logo" partition)
 +
|-
 +
| 0x8
 
| 0x4
 
| 0x4
| Version (0x01 for old Gamecards, 0x02 for new Gamecards with the "logo" partition)
+
| Access Control Flags (0x00A10010 for 25MHz access or 0x00A10011 for 50MHz access)
 
|-
 
|-
 +
| 0xC
 
| 0x4
 
| 0x4
 +
| Read Wait Time (always 0x1388)
 +
|-
 +
| 0x10
 
| 0x4
 
| 0x4
| Empty
+
| Read Wait Time2 (always 0)
 
|-
 
|-
| 0x8
+
| 0x14
 
| 0x4
 
| 0x4
| Always 0x00A10010 (unfinalized Gamecard) or 0x00A10011 (finalized Gamecard)
+
| Write Wait Time (always 0)
 
|-
 
|-
| 0xC
+
| 0x18
 
| 0x4
 
| 0x4
| Always 0x1388
+
| Write Wait Time2 (always 0)
|-
  −
| 0x10
  −
| 0xC
  −
| Empty
   
|-
 
|-
 
| 0x1C
 
| 0x1C
 
| 0x4
 
| 0x4
| ?
+
| Firmware Mode
 
|-
 
|-
 
| 0x20
 
| 0x20
 
| 0x4
 
| 0x4
| ?
+
| CUP Version
 
|-
 
|-
 
| 0x24
 
| 0x24
Line 134: Line 138:  
| 0x28
 
| 0x28
 
| 0x8
 
| 0x8
| Random ID?
+
| Update Partition Hash
 
|-
 
|-
 
| 0x30
 
| 0x30
 
| 0x8
 
| 0x8
| Always 0x0100000000000816 (title-listing data archive's title ID)
+
| CUP Id (always 0x0100000000000816, which is the title-listing data archive's title ID)
 
|-
 
|-
 
| 0x38
 
| 0x38
Line 192: Line 196:  
| 0x0
 
| 0x0
 
| 0x8
 
| 0x8
| Random value from [[#Gamecard Header|Gamecard Header]] at offset 0x110
+
| Package Id from [[#Gamecard Header|Gamecard Header]] at offset 0x110
 
|-
 
|-
 
| 0x8
 
| 0x8
Line 199: Line 203:  
|-
 
|-
 
| 0x10
 
| 0x10
| 0x2C
+
| 0x10
 
| Challenge–response authentication data
 
| Challenge–response authentication data
 +
|-
 +
| 0x20
 +
| 0x10
 +
| Challenge–response authentication MAC
 +
|-
 +
| 0x30
 +
| 0xC
 +
| Challenge–response authentication Nonce
 
|-
 
|-
 
| 0x3C
 
| 0x3C