GithubHelp home page GithubHelp logo

ps2link's Introduction

ps2dev

GitHub Workflow StatusGitHub Workflow StatusDocker Pulls

ATTENTION

If you are confused on how to start developing for PS2, see the getting started section on the ps2dev main page.

Overview

Main PS2 Repo for building the whole PS2 Development environment in your local machine.

This program will automatically build and install the whole compiler and other tools used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.

What these scripts do

These scripts download (git clone) and install:

Requirements

  1. Install gcc/clang, make, cmake, patch, git, texinfo, flex, bison, gettext, wget, gsl, gmp, zlib, mpfr and mpc if you don't have those packages.
  • Ubuntu
sudo apt -y install gcc g++ make cmake patch git texinfo flex bison gettext libgsl-dev libgmp3-dev libmpfr-dev libmpc-dev zlib1g-dev
  • Fedora/CentOS
sudo dnf -y install gcc make cmake patch git texinfo flex bison gettext gmp-devel mpfr-devel libmpc-devel zlib-devel
  • Alpine
apk add build-base cmake git texinfo flex bison gettext gmp-dev mpfr-dev mpc1-dev zlib-dev
  1. Optional. If you are upgrading from the previous version of the PS2DEV environment, it is highly recommended to remove the content of the PS2DEV folder before upgrade. This is a necessary step after the major toolchain upgrade.
sudo rm -rf $PS2DEV
  1. Ensure that you have enough permissions for managing PS2DEV location (which defaults to /usr/local/ps2dev, but you can use a different path). PS2DEV location MUST NOT have spaces or special characters in its path! PS2DEV should be an absolute path. On Unix systems, if the command mkdir -p $PS2DEV fails for you, you can set access for the current user by running commands:
export PS2DEV=/usr/local/ps2dev
sudo mkdir -p $PS2DEV
sudo chown -R $USER: $PS2DEV
  1. Add this to your login script (example: ~/.bash_profile) Note: Ensure that you have full access to the PS2DEV path. You can change the PS2DEV path with the following requirements: only use absolute paths, don't use spaces, only use Latin characters.
export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export GSKIT=$PS2DEV/gsKit
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin
  1. Run build-all.sh
./build-all.sh

Docker generation

This repo also uses CI/CD to create a docker image called ps2dev/ps2dev:latest per change. This is useful if you're a developer that wants to create/port an application to the PS2. You can compile your project using this docker image.

Extra steps

If you want, you can JUST install the extra dependencies ps2client and ps2-packer. To achieve this, execute the following:

./build-extra.sh

macOS

If you download the pre-built macOS binaries and get a security error such as "ps2client" cannot be opened because the developer cannot be verified., you can remove the quarantine attribute by running:

xattr -dr com.apple.quarantine path/to/prebuilt/ps2toolchain

Community

Links for discussion and chat are available here.

Thanks

ps2link's People

Contributors

akuhak avatar bignaux avatar citronalco avatar fjtrujy avatar israpps avatar mlafeldt avatar rickgaiser avatar sp193 avatar uyjulian avatar xythobuz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ps2link's Issues

EE exception occurs no matter what executable I use

I had v1.2 pre-built and it worked fine. I decided to build ps2link myself, and for every executable I try to upload, I get CPU exceptions (seems to vary from executable to executable).

The "cause" is 70008010.

  1. I run PS2LINK.ELF from mc1
  2. I've tried executables that worked with v1.2
  3. I've built vanilla (no Makefile options changed)
  4. I've built with the following:
diff --git a/Makefile b/Makefile
index 4be0a4e..b22bd93 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,23 @@
 # Compilation variables
 
 # Set this to 1 to enable debug mode
-DEBUG = 0
+DEBUG = 1
 
 # Set this to 1 to build a highloading version, 0 for normal low version
 LOADHIGH = 0
 
 # Set this to 1 to build ps2link with all the needed IRX builtins
-BUILTIN_IRXS = 1
+BUILTIN_IRXS = 0
 
 # Set this to 1 to enable caching of config files
-CACHED_CFG = 1
+CACHED_CFG = 0
 
 # Set this to 1 to enable zero-copy on fileio writes.
 ZEROCOPY = 0
 
 # Set this to 1 to power off the ps2 when the reset button is tapped
 # otherwise it will try and reset ps2link
-PWOFFONRESET = 1
+PWOFFONRESET = 0
 
 # Set this to 1 to hook the kernel CreateThread/DeleteThread calls.
 # Note that this will cause problems when loading PS2LINK.ELF from PS2LINK...

Any suggestions? Anything I could try?

ps2link port number(s) and type (UDP/TCP)

Hi, what port number does ps2link listen on and what type of traffic is it (UDP/TCP)?
I need to create some port translations but cannot find the port information anywhere.
Thanks :)

ps2link crashes with EE exception after starting up

I recently built the latest from master of the toolchain, ps2eth and ps2link and found out that an EE exception happens during or after initialization of ps2link.

Exception details: TLB load/inst fetch exception, cause 10008008 BadAddr 3A0D2BE8, status 70030C13, EPC 88188.

Under the guidance of https://github.com/fjtrujy I tried to troubleshoot it and to find out the breaking change but not successful.

We found that the ps2link built as artifact of CI 17 (https://github.com/ps2dev/ps2link/actions/runs/477067363) still works but the one from CI 18 (https://github.com/fjtrujy/ps2link/actions/runs/653975338) crashes.

I reverted locally the change that was done in between (ps2dev/ps2sdk#164) but that didn't made any difference. Also, I tried to revert locally the upgrade newlib to 4.1.0 (https://github.com/ps2dev/ps2toolchain-ee/blob/main/scripts/003-newlib.sh#L7) but 4.0.0 gave the same exception again (I tried all the possibilities of combining the two changes).

ps2link CI 18

ps2link CI 18crash

reset issue with packed elf

tested elf : https://github.com/bignaux/helloworld

unpacked elf : reset works, cmdline is empty.
ps2client execee host:helloworld-UNC.elf
log :

[helloworld]    version: 403bd93
[helloworld]    cmdline: 
1..5
not ok 1 - running from ps2link
#   Failed test 'running from ps2link'
at helloworld.c line 55.
#          got: '(null)'
#     expected: 'host:helloworld.elf'

packed elf : reset doesn't work, cmdline is fine
ps2client execee host:helloworld.elf

[helloworld]    version: 403bd93
[helloworld]    cmdline: host:helloworld.elf
1..5
ok 1 - running from ps2link
open name rom0:ROMVER flag 1 data 41378
open fd = 2
[helloworld]    Hello, World fr00000m helloworld v.403bd93 !

a bit duplicate of ps2dev/ps2client#4 but want to have it there.

ps2link not responding at all

ps2link is not responding to ps2client at all

I have the ip set to 192.168.0.11 in the IPCONFIG

on my linux system I have the ipv4 address set to the ip above, default subnetmask and default gateway (same goes for inside IPCONFIG)

ps2link seems to return that it succeeded (ps2client exists the program gracefully.)

here are screenshots of stuff:

https://eatcaribou65.u.catgirlsare.sexy/AB72Gq5w.png
https://eatcaribou65.u.catgirlsare.sexy/2uxKWaAV.png

IPCONFIG

https://eatcaribou65.u.catgirlsare.sexy/Q-oUqr49.png

https://eatcaribou65.u.catgirlsare.sexy/sWsKR0xJ.png

the distro of debian i am using is Linux Mint Cinnamon

Edit:

I've also tried recompiling & reinstalling ps2sdk as well, nothing fixed it still.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.