In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "Hardware/NAND"

From WiiBrew
Jump to navigation Jump to search
m (Added "read-only" to BOOT1)
Line 16: Line 16:
 
  Samsung: ec 76 / ec f1 / ec da / ec dc (64M [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=158&partnum=K9F1208U0C K9F1208U0C] /128 [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=159&partnum=K9F1G08U0B K9F1G08U0B]/256 [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=159&partnum=K9F2G08U0A K9F2G08U0A]/512 = [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=159&partnum=K9F4G08U0A K9F4G08U0A])
 
  Samsung: ec 76 / ec f1 / ec da / ec dc (64M [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=158&partnum=K9F1208U0C K9F1208U0C] /128 [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=159&partnum=K9F1G08U0B K9F1G08U0B]/256 [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=159&partnum=K9F2G08U0A K9F2G08U0A]/512 = [http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=159&partnum=K9F4G08U0A K9F4G08U0A])
 
  Toshiba: 98 76 / 98 f1 / 98 da (64/128 = TC58NVG0S3AFT05 or TC58NVG0S3ATG05 or TC58NVG0S3BFT00/256 = TC58NVG1D4BTG00 (?!))
 
  Toshiba: 98 76 / 98 f1 / 98 da (64/128 = TC58NVG0S3AFT05 or TC58NVG0S3ATG05 or TC58NVG0S3BFT00/256 = TC58NVG1D4BTG00 (?!))
[[Category:Wii_Hardware]]
+
[[Category:Hardware]]

Revision as of 21:50, 17 May 2009

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 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
    • 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.
  • Blocks 1-7 (Pages 0x40 - 0x1ff) : boot2 (two copies and blockmaps)
    • boot2 is the third-stage bootloader; it is stored in a modified WAD format, including a ticket that is encrypted with the common key and signed.
  • Block 8 / Cluster 0x40 / Page 0x200: beginning of per-console unique data
  • Clusters 0x40 - 0x7EFF: Encrypted filesystem data. Data is encrypted with a per-console AES key, and then signed with a (separate, per-console) HMAC key.
  • Clusters 0x7F00-0x7FFF: Filesystem metadata (SFFS, unencrypted). There are 16 superblocks contained therein -- one every 16 clusters.

The NAND flash driver inside boot2 and IOS supports the following chip IDs:

Hynix: ad 76 / ad f1 / ad dc  (64MB = HY27US0812(1/2)B, 128MB = HY27UF081G2A, 512MB = HY27UF084G2M or HY27UG084G2M)
Samsung: ec 76 / ec f1 / ec da / ec dc (64M K9F1208U0C /128 K9F1G08U0B/256 K9F2G08U0A/512 = K9F4G08U0A)
Toshiba: 98 76 / 98 f1 / 98 da (64/128 = TC58NVG0S3AFT05 or TC58NVG0S3ATG05 or TC58NVG0S3BFT00/256 = TC58NVG1D4BTG00 (?!))