Gamecard: Difference between revisions

Renumber cart pins to make end-end trace easier, at expense of dat lines becoming swizzled
No edit summary
Line 12: Line 12:
|}
|}


For the Gamecard partitions that can be [[Filesystem_services|mounted]], see [[Gamecard_Partition|here]].
For the Gamecard image format, see [[XCI|here]].


For the Gamecard image format, see [[Gamecard_Format|here]].
For the Gamecard ASIC, see [[Lotus3|here]].
 
For the Gamecard ASIC, see [[Gamecard_ASIC|here]].


= Pinout =
= Pinout =
Line 185: Line 183:


The actual response bytes are also followed immediately by a 4-byte CRC-32 over the actual data response bytes.
The actual response bytes are also followed immediately by a 4-byte CRC-32 over the actual data response bytes.
A typical boot up sequence of a game cartridge (in this case, the game "1,2 Switch") looks like this:
{| class="wikitable"
! Command
! Size
! Description
|-
| <code>5B000000000000010000000000000000</code>
| 0x200
| Read sector 0, contains "HEAD" blob
|-
| <code>5B000000000000010000000000000000</code>
| 0x200
| Read sector 0, contains "HEAD" blob
|-
| <code>56000000000000000000000000000000</code>
| 0x4
| Read card id "AE F8 01 21"
|-
| <code>28000000000000000000000000000000</code>
| 0x4
| Read ??? "02 00 00 00"
|-
| <code>A5000000000000000000000000000000</code>
| 0x4
| Read ??? "00 00 00 00"
|-
| <code>56000000000000000000000000000000</code>
| 0x4
| Read card id "AE F8 01 21"
|-
| <code>28000000000000000000000000000000</code>
| 0x4
| Read ??? "02 00 00 00"
|-
| <code>5B000000380000010000000000000000</code>
| 0x200
| Read sector 0x38, contains "CERT" blob
|-
| <code>E2000000000000000000000000000000</code>
| 0x4
| Read ??? "01 00 00 00"
|-
| <code>E0000000000000000000000000000000</code>
| 0x200
| Read crypto-challenge header
|-
| <code>200838A25A344F818ABB6456694D4E8D</code>
| 0
| Enter crypto mode1 with HOST-RANDOM "0838A25A344F818ABB6456694D4E8D"
|-
| <code>7EE41FDF12C01C157CC899910673A0CF</code>
| 0x40
| Encrypted crypto mode1 command, reads CART-RANDOM
|-
| <code>263C8230EC15FAE3CE79365BD850F4BD</code>
| 0x0
| Encrypted mode1 command, enters crypto mode2 with (HOST-RANDOM, CART-RANDOM)
|-
| <code>B6FDA6F37FFA29E18831D0B217DFBDBE</code>
| 0x4
| Encrypted mode2 command, possibly read card id?
|-
| <code>7B97F7DF07240AA9870E1C974336FA8A</code>
| 0x4
| Encrypted mode2 command
|-
|}


= Manufacturers =
= Manufacturers =
;Macronix (MX)
;MegaChips
: Uses package: LGA, TSOP-48
: Uses package: LGA, TSOP-48
: Uses card id: 0xC2
: Uses card id: 0xC2
;Lapis
: Uses package: LGA, TSOP-48
: Uses card id: 0xAE
;Renesas  
;Renesas  
: Uses package: LGA, TSOP-48
: Uses package: LGA, TSOP-48