Code for reading and writing GameCube memory cards with a Raspberry Pi.
# Enable the SPI interface $ sudo raspi-config # Install python development library to build py-spidev $ sudo apt install python-dev # Install python dependencies $ pip install -r requirements.txt
To read entire memory card contents to file:
$ ./adapter.py -r original_dump.bin
You can use this file with a memory card manager program such as the Dolphin emulator's memory card manager. To write the updated file back to the memory card, provide the original file as well as the modified one (this prevents unneccessary writes to blocks that haven't changed):
$ ./adapter.py -w original_dump.bin updated_dump.bin
The standard Raspberry Pi SPI pins should be connected to the corresponding pins on the memory card, and GPIO pin 7 is used for the INT pin on the memory card.