It gets the command to load the file, but it stops halfway through loading. I have tried different network adapters, different cables, thinking that could be the issue, but I imagine if it was, then it wouldn't get any commands at all.
Code: Select all
ps2client -h 192.168.1.41 execee host:ps2test.elf
loadelf: fname host:ps2test.elf secname all
loadelf version 3.30
Input ELF format filename = host:ps2test.elf
0 00100000 00018e8c ..
If I test with a smaller elf file, it will sometimes work, but much much slower then it should.
Also if I press the reset button on the ps2, I see unmounting. show up on my terminal, so the connection is still there(Or so it seems).
[EDIT] In doing some more testing, it seems there is something wrong with either a)ps2client, or b)my ps2. I tried using ps2client with the listen option and uLaunchElf 4.12 to browse files on my computer. I am able to browse the files no problem, but when I try to copy one, it crashes on my ps2.
I am usiing Linux; going to try testing with windows in a little bit.
edit2: Some more testing on linux reveals that I can send random files of almost any size, but it crashes when trying to send my elf file. I don't know why this is happening. I tried stripping my elf, using ee-strip, but that made no difference either.
EDIT3?
Ok, this is getting very odd now, I went through my code, and removed all of the object files until I got it running under ps2link. Then I added them back, testing as I went. Found the file that when added to the final elf, crashes it.
So I started poking around in this file to find out what might be causing it, so I started commenting out random stuff until it stopped crashing
Riddle me this, the code HTTP/ in a sprintf statement breaks the ps2; see this simple test program, compile and try and run it(it's just modified from the hello sample)
Code: Select all
#include <stdio.h>
int main()
{
char test[400];
sprintf(test,"GET %s HTTP/1.1\n","testing");
printf("%s", test);
return 0;
}
Change the HTTP/ to something else, like HTTX/ and it works fine. Anyone have any idea what is going on here?