Changes

Jump to navigation Jump to search
87 bytes added ,  21:21, 7 April 2012
no edit summary
Line 1: Line 1:  
[[Category:File formats]]
 
[[Category:File formats]]
This document is about the format of CTR cart images (CCI), which is also the format of 3DS ROM dumps.
+
This page documents the format of NCSD. CTR cart images (CCI) is NCSD, but the same NCSD is for SD card titles and other things as well. CSU is NCSD used for system updates.
    
This is a container format which holds [[CXI]] files inside.
 
This is a container format which holds [[CXI]] files inside.
    
=== Overview ===
 
=== Overview ===
CCI files start with a NCSD header, followed by up to a maximum of 13 NCCH blocks according to spec. The first block usually starts at 0x4000. In most carts the first block contains game code/data, the second block contains the download play "child" and the third block contains potential system updates. The exact contents of NCCH blocks can be determined by looking at the flags.
+
NCSD images start with a NCSD header, followed by up to a maximum of 13 NCCH blocks according to spec. The first block always starts at 0x4000. In most carts the first block contains game code/data, the second block contains the download play "child" and the third block contains potential system updates. Additionally, an extra partition may contain an title for installation on SD card. The exact contents of NCCH blocks can be determined by looking at the flags.
    
=== NCSD header ===
 
=== NCSD header ===
Line 16: Line 16:  
|  0x000
 
|  0x000
 
|  0x100
 
|  0x100
|  RSA-2048 signature of the NCSD header, using SHA-256 (needs to be confirmed)
+
|  RSA-2048 SHA-256 signature of the NCSD header
 
|-
 
|-
 
|  0x100
 
|  0x100
 
|  4
 
|  4
|  Magic ID, always 'NCSD'
+
|  Magic Number 'NCSD'
 
|-
 
|-
 
|  0x104
 
|  0x104
 
|  4
 
|  4
|  Size of the CCI image, in media units (1 media unit = 0x200 bytes)
+
|  Size of the NCSD image, in media units (1 media unit = 0x200 bytes)
 
|-
 
|-
 
|  0x108
 
|  0x108
Line 77: Line 77:  
Parts of the first NCCH block's header are found around 0x1000 for whatever reason.
 
Parts of the first NCCH block's header are found around 0x1000 for whatever reason.
   −
CCI can hold up to 13 CXI (i.e. Mario Kart 7 holds 4 CXIs, most we've seen so far)
+
NCSD can hold up to 13 CXI (i.e. Mario Kart 7 holds 4 CXIs, most we've seen so far)
 
  −
CSU files are basicaly CCI files.
 

Navigation menu