Comments (7)
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.
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.
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.
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.
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.
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.
Closing this issue as this is working currently!
Thanks
from ps2client.
Related Issues (9)
- Incorrect documentation on make install destination directory HOT 1
- 404 error trying to download latest release v1.2.0 HOT 5
- ps2link and ps2netfs port numbers and type (UDP/TCP) HOT 7
- Do not try to connect tcp or command port if not needed HOT 1
- ps2client doesn't seem to write anything on command console HOT 4
- Crashes with segfault if hostname is invalid
- Compilation failed HOT 2
- Having little trouble compiling ps2client. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps2client.