linux
linux copied to clipboard
Enable the memory card accessory
Implement a readable and writable block device driver for the PlayStation 2 memory card (SCPH-10020) accessory. Also implement a corresponding filesystem?
See also #4 and #11.
As for how SCE did this, they wrote a shim driver that just communicates to the MCMAN filesystem driver running on the IOP. Sort of how virtio-fs does it.
See: https://github.com/rickgaiser/linux-2.4.17-ps2/blob/69d1691010e92b14133758864c1433042de028cf/drivers/ps2/mcfs/mcfs.c
Thanks, @uyjulian! @jur made some minor updates to it in drivers/ps2/mcfs/mcfs.c on the ps2-v2.6.35.14
branch. It’s available up to and including the ps2-v4.11
branch, actually.
for the record https://github.com/FranciscoDA/ps2mcfs . I like the idea we use FUSE for pfs and mcfs, since it has great advantage about maintenance and portability.
@bignaux, we could have both FUSE and kernel filesystems. I’ll need to figure out how to multiplex gamepad and memory card data via the SIO2. :-)