tutorial:psplink

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorial:psplink [2021/12/11 00:47] (current)
iridescence created
Line 1: Line 1:
 +====== Setting up PSPLink ======
  
 +If you already have the toolchain, you'll already have two of the three applications required for interacting with PSPLink. You already will have ''usbhostfs_pc'' and ''pspsh'' which are built regularly for the PSP toolchain. The final step is the actual application. You can get that from the legacy release [[https://github.com/pspdev/psplinkusb/releases/tag/v3.0.0|here]]
 +
 +If you run Windows, you will need to run additional setup to get the PSP driver to be setup correctly.
 +
 +==== Windows Extended Setup ====
 +
 +For Windows users, you will need to first download the libusb driver. This driver is unsigned and you must restart your computer while holding shift in order to bring up a selection menu. You want to troubleshoot problems and choose startup options. The computer will reset and you will be presented by a screen that has the option "Disable Driver Signature Enforcement." select the option and you should be set. Go ahead and then install the driver. Launch the PSPLink app on your PSP and connect your PC. Go to your driver options and you will see something similar to "Sony PSP Type B" - this is the PSP you want to manipulate. You will right click the option and go to properties -> driver -> and Update driver. Use the option to "Browse my computer for drivers" and then pick from a list of available drivers. Scroll down until you see LibUSB-Win32 Devices and select that driver. After this, you should be able to continue as planned.
 +
 +==== Using PSPLink ====
 +
 +The first step is opening a terminal window and opening to your current working directory. In this directory, run the command ''usbhostfs_pc''. In some Linux distributions, you may have to provide access or use root privilege to provide the proper access to the directory.
 +
 +Connect the PSP with the power on via the USB and with the PSPLink application running.
 +
 +Then, in another terminal window, run ''pspsh''. You can access the PRX files within that directory and use relative directories to access them as well. You can run the PRX like any other application by running ''./MyGame.prx''
 +
 +This will execute on the PSP and you can see any stdout messages printed in this terminal as well.
 +
 +If your program stalls or crashes, you can run the ''reset'' command or use the home button to refresh the PSPLink instance.
 +
 +To exit, use ''exit''.
 +
 +If your program crashes, you can run the command ''calc $epc-$mod'' to get an address. You can then run ''addr2line -e <your_program.elf> <address returned>'' 
 +This will return something like ''main.c:25'' where you can find your error.
  • tutorial/psplink.txt
  • Last modified: 2021/12/11 00:47
  • by iridescence