Line 2:
Line 2:
{{cleanup}}
{{cleanup}}
The Wii contains 512 MiB of NAND flash storage, which is used to store "system software", channels (including Virtual Console titles), game saves, and system settings.
The Wii contains 512 MiB of NAND flash storage, which is used to store "system software", channels (including Virtual Console titles), game saves, and system settings.
+
+
== Sizes ==
+
The NAND is divided into 2048 byte pages combined with 64 bytes of "spare data" for the purpose of error correction and verification; page indices are used when addressing locations to the [[Hardware/NAND Interface|NAND Interface]]. Each group of 8 pages is known as a cluster (16384 bytes without spare data), which is the unit of storage used by SFFS. Each group of 64 pages (131072 bytes; 8 clusters) is known as a block, which is a single failable unit in the NAND. The NAND has a total of 4096 blocks.
== Physical layout ==
== Physical layout ==
−
The NAND flash device is divided into 4096 blocks of 8 clusters. Each cluster is 8 pages. Each page is 2048 bytes of data and 64 bytes of "spare data" (used for error-correction (ECC) data and HMAC signatures on individual clusters).
−
* Block 0 (pages 0-0x3F): [[boot1]]
* Block 0 (pages 0-0x3F): [[boot1]]
** boot1 is the second-stage bootloader; it is decrypted by [[boot0]], which resides on a read-only mask ROM inside the [[Starlet]] coprocessor. Its primary function is to load and decrypt [[boot2]].
** boot1 is the second-stage bootloader; it is decrypted by [[boot0]], which resides on a read-only mask ROM inside the [[Starlet]] coprocessor. Its primary function is to load and decrypt [[boot2]].