From d2f5a86ef0271e6d750308febfb3b81dc6ddaecc Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Tue, 29 Jun 2021 12:27:22 +0200 Subject: [PATCH] Add overlay upload script for real HW --- ovly-upload-helper.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 ovly-upload-helper.sh diff --git a/ovly-upload-helper.sh b/ovly-upload-helper.sh new file mode 100755 index 0000000..43cc529 --- /dev/null +++ b/ovly-upload-helper.sh @@ -0,0 +1,29 @@ +#!/bin/bash +if [ $# -eq 0 ] + then + echo "PSX Overlay Upload helper script + +Upload a binary and the corresponding executable to a real PSX memory, via unirom + serial cable. + +This script is dependant on NOTpsxserial being available on your system : https://github.com/JonathanDotCel/NOTPSXSerial +Edit the $NOPS value to reflect the executable path on your system, e.g : + \$NOPS = '/blah/nops' +Usage : ./ovly_upload_helper.sh bin_load_adress bin_filename psx_exe_name com_port + + - bin_load_adress, eg : 0x80010000 (This should correspond to the 'load_all_overlays_here' adress in your .map file. ) + - bin_filename , eg : Overlay.lvl0 + - psx_exe_name, e.g : main.ps-exe + - com_port, e.g : /dev/ttyUSB0, COM1 +" +else +# Path to nops executable +NOPS="nops" +# $1 = bin loading address ( see .map's "load_all_overlays_here" address ) +# $2 = bin file +# $3 = ps-exe file +# $4 = comport +$NOPS /debug $4 +$NOPS /fast /bin $1 $2 $4 +$NOPS /fast /exe $3 $4 +$NOPS /slow $4 +fi