Difference between revisions of "Flash Filesystem"

From 3dbrew
Jump to navigation Jump to search
Line 10: Line 10:
 
===Encryption===
 
===Encryption===
  
The NAND file system appears to be encrypted using AES.
+
The NAND file system is encrypted using AES-CTR.
  
 
===Partitions===
 
===Partitions===
Line 33: Line 33:
  
 
=CTR partition=
 
=CTR partition=
 +
Like SD, NAND savegames are stored at 00000000.sav under the data dir, for titles using NAND savegames. Also like SD, the [[TMD]] is stored under the titles' content dir as filename <ID>.tmd.
 +
 
* [[nandro/private]]
 
* [[nandro/private]]
 
* [[nandro/shared]]
 
* [[nandro/shared]]
Line 38: Line 40:
 
* [[nandro/sys/HWCAL0.dat]]
 
* [[nandro/sys/HWCAL0.dat]]
 
* [[nandro/sys/HWCAL1.dat]]
 
* [[nandro/sys/HWCAL1.dat]]
 
 
* [[nandrw/shared]]
 
* [[nandrw/shared]]
 
* [[nandrw/sys]]
 
* [[nandrw/sys]]
Line 46: Line 47:
 
* [[nandrw/sys/rand_seed]]
 
* [[nandrw/sys/rand_seed]]
 
* [[nandrw/sys/LocalFriendCodeSeed_B]]
 
* [[nandrw/sys/LocalFriendCodeSeed_B]]
 +
 +
* [[nand/title/]]
 +
* [[nand/tmp/]]
 +
 +
=TWL partition=
 +
The structure of twln/title/ is exactly the same as DSi.(Same filenames under titles' data/content dir) The structure of twlp(TWL photo partition) is *exactly* the same as the DSi photo partition as well.
 +
 +
* [[twln/title/]]
 +
 +
* [[twlp/photo/]]

Revision as of 20:59, 2 July 2012

The Nintendo 3DS has a 1GB NAND Flash chip.

Format

The format of the Nintendo 3DS's flash filesystem is currently undocumented. Reading of the flash chip is possible through pinouts on the motherboard and has been performed successfully but the data is encrypted and can't be understood without first decrypting it.

File System

Each NAND partition is formatted by a FAT file system.

Encryption

The NAND file system is encrypted using AES-CTR.

Partitions

Name Description
firm0 Firmware partition.
firm1 Firmware partition.
nand CTR-NAND File System. (3DS)
twln TWL-NAND File System. (DSi)

CTR partition

Like SD, NAND savegames are stored at 00000000.sav under the data dir, for titles using NAND savegames. Also like SD, the TMD is stored under the titles' content dir as filename <ID>.tmd.

TWL partition

The structure of twln/title/ is exactly the same as DSi.(Same filenames under titles' data/content dir) The structure of twlp(TWL photo partition) is *exactly* the same as the DSi photo partition as well.