telyn / ps2runner

Remote test harness for PS2, using an IRToy and ps2link
4 stars 1 forks source link

ps2runner

Yo! I guess you're pretty passionate about testing, huh?

This is a docker image you can run on your raspberry pi, or other ARM/AMD64 computer. It allows you to boot and shutdown a Slim Playstation 2, as well as boot the PS2 into PS2Link (using one of the FreeMCBoot shortcut keys).

Prerequisites

Usage

The following usage examples assume you have an IRToy, like I do. Any IR transceiver compatible with LIRC that runs at ~38khz should be usable - but finding out what --device needs to be specified is left as something for you to figure out.

# to turn on your slim PS2:
docker run --rm --device /dev/ttyACM0 telyn/ps2runner ps2poweron
# to turn on your slim PS2 & boot into PS2Link. --network=host is needed to get
# PS2Link's bootup broadcast messages to show up in the container.
docker run --rm --network=host --device /dev/ttyACM0 telyn/ps2runner ps2bootlink

# to run an application on your already-booted PS2's EE:
docker run --rm --network=host telyn/ps2runner ps2run --ee
# to run an application on your already-booted PS2's IOP:
docker run --rm --network=host telyn/ps2runner ps2run --iop /path/to/some.irx
# to turn off your slim PS2:
docker run --rm --device /dev/ttyACM0 telyn/ps2runner ps2poweroff

All the IRX files included in the PS2 SDK in $PS2SDK/iop/irx are available in /irx for loading ps2run. For example:

docker run telyn/ps2runner ps2run --iop /irx/alloc.irx
docker run -v /example:/example telyn/ps2runner ps2run --iop /example/something-that-depends-on-alloc.irx

See the ps2-cunit-port repo's gitlab-ci.yml and gitlab template for example usage of this container within a CPU pipeline.

Future work

Available environment variables

TODO:

FAQ

I guess you're pretty passionate about testing, huh?

Yeah.