linux icon indicating copy to clipboard operation
linux copied to clipboard

Enable the memory card accessory

Open frno7 opened this issue 5 years ago • 4 comments

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.

frno7 avatar Mar 17 '19 13:03 frno7

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

uyjulian avatar Dec 13 '22 20:12 uyjulian

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.

frno7 avatar Dec 14 '22 17:12 frno7

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 avatar Dec 17 '22 10:12 bignaux

@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. :-)

frno7 avatar Dec 29 '22 09:12 frno7