Originally posted by another user
friday (C) 2011 by naehrwert
This is a POC for a isolated spu binary. Generate a self encrypted+signed with the metldr keys out of friday.elf.
Then use friday.h to write a PPU application that loads the self by utilizing metldr and DMAs your console’s EID2 to the shared SPU LS.
It will generate the P and S block from it, that is used to pair the BD drive to the specific console.
You can then DMA the blocks out from the LS and send them to the drive to remarry it to the console.
Communication with the SPU is done over in_mbox and out_mbox. MSG_OUT_* is send from the SPU code to out_mbox.
MSG_IN_* should be written from the PPU to in_mbox.
When MSG_OUT_READY arrives the PPU should DMA the EID2 to EID2_START and send MSG_IN_READY.
When MSG_OUT_GEN_DONE arrives the PPU should DMA the blocks out from BLOCKS_START and send MSG_IN_DIE.
Note: this is UNTESTED but should just work