Page 1 of 1
How to execute rom0:OSDSYS
Posted: Mon Jul 12, 2004 2:38 am
by sincro
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
Posted: Mon Jul 12, 2004 6:51 am
by mr bob
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
Posted: Mon Jul 12, 2004 7:04 am
by mr bob
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.
Posted: Mon Jul 12, 2004 10:33 am
by sincro
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
Posted: Mon Jul 12, 2004 6:01 pm
by mr bob
you sure you're waiting long enough? it takes a while for the browser to load.
Posted: Mon Jul 12, 2004 7:23 pm
by sincro
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
Posted: Mon Jul 12, 2004 7:34 pm
by superufo
it is quite easy for me, just return to main and will back to browser.
Posted: Tue Jul 13, 2004 12:23 am
by sincro
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?
Posted: Tue Jul 13, 2004 12:39 am
by superufo
I try with naplink and cdrom, all same result, back to browser.
Posted: Tue Jul 13, 2004 1:53 am
by sincro
ok, i will try.
tnx superufo
sincro