Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
TUniqueW
Posts: 12 Joined: Sat Dec 09, 2006 12:51 pm
Post
by TUniqueW » Sat Dec 09, 2006 5:24 pm
Having problem with rebooting PSP-->
I'm trying to make the PSP reboot when I press HOME + SELECT in the XMB.
every thing works fine when I press (HOME + SELECT) it shows me error ("Error on reboot!") you'll see your self :
Code: Select all
int vsh =0;
vsh = sceKernelExitVSHVSH(NULL);
if(vsh <0){
blit_string(0, 264, "Error on reboot!");
I have even tried unloading and stopping "vshmain.prx" then loading it again (but its not possible 'PSP shuts down'" like this :
Code: Select all
sceKernelSelfStopUnloadModule(1, args, argp);
struct SceKernelLoadExecParam param;
memset(¶m, 0, sizeof(param));
param.argp = PATH;
param.args = strlen(PATH) + 1;
param.key = "vsh";
sceKernelLoadExec(PATH, ¶m);
PS: for sceKernelExitVSHVSH(Null); I'm using SE SDK .
Developer: C/C++ knows nothing about assembly!
moonlight
Posts: 567 Joined: Wed Oct 26, 2005 7:46 pm
Post
by moonlight » Sat Dec 09, 2006 5:43 pm
If you are in kernel mode, use sceKernelExitVSHKernel.
TUniqueW
Posts: 12 Joined: Sat Dec 09, 2006 12:51 pm
Post
by TUniqueW » Sat Dec 09, 2006 5:57 pm
I am in kernel mode ... but I dunno how to use that :( ...
a little help about this would be appreciated as I don't know how to use any kernel commands
Developer: C/C++ knows nothing about assembly!
adrahil
Posts: 274 Joined: Thu Mar 16, 2006 1:55 am
Post
by adrahil » Sat Dec 09, 2006 9:30 pm
sceSysconResetDevice(1, 1) would also be a way to force the reboot of the psp....
TUniqueW
Posts: 12 Joined: Sat Dec 09, 2006 12:51 pm
Post
by TUniqueW » Sun Dec 10, 2006 5:01 am
adrahil wrote: sceSysconResetDevice(1, 1) would also be a way to force the reboot of the psp....
That would be good.... but someone has tried that and said it will give you a disk error.....
Developer: C/C++ knows nothing about assembly!
TUniqueW
Posts: 12 Joined: Sat Dec 09, 2006 12:51 pm
Post
by TUniqueW » Sun Dec 10, 2006 9:30 am
OK I have tried these and look what happened -->
Code: Select all
sceSysconResetDevice(1, 1,); //PSP crashes (when in game mode)
//When is called with a module in XMB--> XMB is unloaded but never //reloaded
Code: Select all
sceKernelExitVSHVSH(NULL); //Nothing happens (returns a negative integer)
in the following PATH is the path to vshmain module
Code: Select all
struct SceKernelLoadExecParam param;
memset(¶m, 0, sizeof(param));
param.argp = PATH;
param.args = strlen(PATH) + 1;
param.key = "vsh";
sceKernelLoadExec(PATH, ¶m);
//Nothing happens!when called from a module //Game mode not tested
Code: Select all
sceKernelSelfStopUnloadModule(1, args, argp);
struct SceKernelLoadExecParam param;
memset(¶m, 0, sizeof(param));
param.argp = PATH;
param.args = strlen(PATH) + 1;
param.key = "vsh";
sceKernelLoadExec(PATH, ¶m);
//vshmain.prx is unloaded then psp shuts down... never booted again....
well I think I now need help .....
Thanks in advance,
TUW
Developer: C/C++ knows nothing about assembly!