-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass arguments to the commands not working #4
Comments
Hello again, Thanks! |
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. |
So do you think that is it impossible to fix it? I will try to play around this, and see what I can do.
Do we have more scenarios? Thanks |
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. |
To add information on that, ps2-packer elf seems to work well with arguments :
Drawback is that i can't ps2client reset on packed elf. |
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. |
Closing this issue as this is working currently! |
Hello,
After reading the documentation several times, I have tried to pass arguments using the
ps2client
application, but I couldn't make it work.Documentation says:
I'm trying something as:
$ ps2client -h 192.168.1.150 execee host:hello.elf hello world
And the implementation of this
hello.elf
is:The output that I receive is:
Am I using properly the command? or is it just that this is not working?
PD: I have the example that I have used here: https://github.com/fjtrujy/ps2-toolchain-tests/blob/master/PS2Client/main.c
Thanks
The text was updated successfully, but these errors were encountered: