Wii Hardware/NAND

From Wii-Linux Wiki
Jump to navigation Jump to search
See also: [https://wiibrew.org/wiki/Hardware/NAND]

The Wii contains a 4 Gigabit (512 Megabyte) NAND flash memory chip. The NAND is used to store, among other things, every IOS installed on the system, each stage past boot0 (which is stored in ROM) of the bootloader process as described on Starlet, your system menu and channels, and your game save files. There is currently no way to read or write the NAND in Wii-Linux nor NetBSD.

Data Sizes

[edit]

The NAND is split into 4096 sections referred to as "Blocks". Each block contains 64 pages, and each page contains 2048 bytes of data with 64 bytes of error correction info.

Physical Data Layout

[edit]
  • Block 0 contains boot1, which is the encrypted second stage of the bootloader, loaded and decrypted by Starlet during execution of boot0. There is currently no safe way to modify the contents of this block.
  • Blocks 1-7 contain 2 copies of boot2, with blockmaps. Boot2 is stored in a modified WAD format, with a ticket encrypted and signed using Nintendo's common key. It is recommended to only modify this area when installing Bootmii as boot2.
  • Block 8 contains the start of per-console data, as well as the header metadata for the NAND filesystem. This and the next 4087 blocks are generally safe to modify, as long as you have BootMii as boot2 and don't erase the FAT. This is the area that would be exposed with a filesystem by a driver, were one to be made.

Images

[edit]

Hynix branded NAND on a Wii's motherboard