GithubHelp home page GithubHelp logo

Comments (7)

fjtrujy avatar fjtrujy commented on July 1, 2024

Hello again,
After deeper investigation I think that I found the issue, I will try to create a PR here and in the ps2link as well.

Thanks!

from ps2client.

sp193 avatar sp193 commented on July 1, 2024

I think this might have been caused by how ps2link passes arguments, which is non-standard. But if you changed it to use ExecPS2(), then it cannot remain resident anymore.

crt0.S used to have some special code for supporting this, by checking on the value of $a0. However, this resulted in bugs when the software was booted normally, due to the content of $a0 being undefined. I removed this support for ps2link from crt0, a very long time ago.

from ps2client.

fjtrujy avatar fjtrujy commented on July 1, 2024

So do you think that is it impossible to fix it?
Investigating myself I reached the same point the crt0.s.
Anyway, both ps2client and ps2link they were not "parsing" properly the user arguments.

I will try to play around this, and see what I can do.
Basically the scenarios that I need to cover are:

  • Booting normally (what does "normally" means ? xD)
  • Booting from PS2Link
  • Booting from ExecPS2

Do we have more scenarios?

Thanks

from ps2client.

sp193 avatar sp193 commented on July 1, 2024

The normal way to boot a program, would be through ExecPS2(). However, this will delete all threads, which will prevent ps2link from existing together with the new program.

I did not make any changes to ps2link because I hoped that the author would make their own fix.

Given that each software may be built with different SDK versions and require different IOP modules, I do not think ps2link remaining resident would have worked very well anyway.

from ps2client.

bignaux avatar bignaux commented on July 1, 2024

To add information on that, ps2-packer elf seems to work well with arguments :

 helloworld: version 80f1739\n
helloworld: #4 Argument \n
helloworld: Argument #0 is host:helloworld.elf\n
helloworld: Argument #1 is bonjour\n
helloworld: Argument #2 is les\n
helloworld: Argument #3 is amis\n

Drawback is that i can't ps2client reset on packed elf.

from ps2client.

rickgaiser avatar rickgaiser commented on July 1, 2024

This patch works to get arguments from ps2link to the elf that gets executed. Note that it has not been tested if normal elf execution still works.
ps2dev/newlib@5cbc394

from ps2client.

fjtrujy avatar fjtrujy commented on July 1, 2024

Closing this issue as this is working currently!
Thanks

from ps2client.

Related Issues (9)

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.