How to execute rom0:OSDSYS

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
sincro
Posts: 25
Joined: Tue Jan 27, 2004 9:54 am

How to execute rom0:OSDSYS

Post 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
mr bob
Posts: 15
Joined: Mon Jan 26, 2004 12:11 pm

Post 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
mr bob
Posts: 15
Joined: Mon Jan 26, 2004 12:11 pm

Post 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.
sincro
Posts: 25
Joined: Tue Jan 27, 2004 9:54 am

Post 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
mr bob
Posts: 15
Joined: Mon Jan 26, 2004 12:11 pm

Post by mr bob »

you sure you're waiting long enough? it takes a while for the browser to load.
sincro
Posts: 25
Joined: Tue Jan 27, 2004 9:54 am

Post 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
superufo
Posts: 9
Joined: Wed Jan 21, 2004 3:15 am
Location: Canada

Post by superufo »

it is quite easy for me, just return to main and will back to browser.
sincro
Posts: 25
Joined: Tue Jan 27, 2004 9:54 am

Post 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?
superufo
Posts: 9
Joined: Wed Jan 21, 2004 3:15 am
Location: Canada

Post by superufo »

I try with naplink and cdrom, all same result, back to browser.
sincro
Posts: 25
Joined: Tue Jan 27, 2004 9:54 am

Post by sincro »

ok, i will try.


tnx superufo

sincro
Post Reply