| View previous topic :: View next topic |
| Author |
Message |
sincro
Joined: 27 Jan 2004 Posts: 25
|
Posted: Mon Jul 12, 2004 2:38 am Post subject: How to execute rom0:OSDSYS |
|
|
I need help.
How can i execute rom0:OSDSYS BootBrowser ??
I need to turn in browser from my prog, how i can?
i have try sample "loadelf" in ps2lib but it freeze
any idea?
tnx
sincro |
|
| Back to top |
|
 |
mr bob
Joined: 26 Jan 2004 Posts: 15
|
Posted: Mon Jul 12, 2004 6:51 am Post subject: |
|
|
syscall 0x04 should return you to the ps2 browser, if thats what you want.
void ReturnToBrowser()
{
__asm__ __volatile__("
li $3, 0x04;
syscall;
nop;");
}
should take care of it
correct me if i'm wrong.. someone |
|
| Back to top |
|
 |
mr bob
Joined: 26 Jan 2004 Posts: 15
|
Posted: Mon Jul 12, 2004 7:04 am Post subject: |
|
|
note, i just tried it using the same method as the loadelf example in ps2lib. it works perfectly fine. it takes at least ten seconds for it to boot to my browser. but that could be because of the sony hdd, or the ps1 disc in the drive or something.
it takes a while with both methods.
also, make sure your start address isn't the problem.
Loaded, rom0:OSDSYS
start address 0x100008
gp address 00000000
as you can see it loads to (i beleive) the default address for what you compile. if you use 0x200008 (like the loadelf example), it works just fine. |
|
| Back to top |
|
 |
sincro
Joined: 27 Jan 2004 Posts: 25
|
Posted: Mon Jul 12, 2004 10:33 am Post subject: |
|
|
Thanks mr bob for replay
i've try but not work :(
my prog is based on ps2 menu 2.6. Why don't work?
i load my elf file from ps2link and dev1 but wen call rom0:OSDSYS BootBrowser or syscall 0X04 program freeze.
i set my start addres to 0x200008 but freez :(
i've also try to poweroff hdd before call but always freeze
any suggetsion?
thanks
sincro |
|
| Back to top |
|
 |
mr bob
Joined: 26 Jan 2004 Posts: 15
|
Posted: Mon Jul 12, 2004 6:01 pm Post subject: |
|
|
| you sure you're waiting long enough? it takes a while for the browser to load. |
|
| Back to top |
|
 |
sincro
Joined: 27 Jan 2004 Posts: 25
|
Posted: Mon Jul 12, 2004 7:23 pm Post subject: |
|
|
| mr bob wrote: | | you sure you're waiting long enough? it takes a while for the browser to load. |
Yes, i'm wait long time :(
in other post i see example of pkoLoadElf and pkoExecEE from ps2link
i will try this...do you think it's work with this?
sincro |
|
| Back to top |
|
 |
superufo
Joined: 21 Jan 2004 Posts: 9 Location: Canada
|
Posted: Mon Jul 12, 2004 7:34 pm Post subject: |
|
|
| it is quite easy for me, just return to main and will back to browser. |
|
| Back to top |
|
 |
sincro
Joined: 27 Jan 2004 Posts: 25
|
Posted: Tue Jul 13, 2004 12:23 am Post subject: |
|
|
| superufo wrote: | | it is quite easy for me, just return to main and will back to browser. |
yes but if you boot from dev1 it' work? |
|
| Back to top |
|
 |
superufo
Joined: 21 Jan 2004 Posts: 9 Location: Canada
|
Posted: Tue Jul 13, 2004 12:39 am Post subject: |
|
|
| I try with naplink and cdrom, all same result, back to browser. |
|
| Back to top |
|
 |
sincro
Joined: 27 Jan 2004 Posts: 25
|
Posted: Tue Jul 13, 2004 1:53 am Post subject: |
|
|
ok, i will try.
tnx superufo
sincro |
|
| Back to top |
|
 |
|