problem flashing camera_plugin.rco from flash0
problem flashing camera_plugin.rco from flash0
well camera_plugin.rco wont flash from flash0, it copies with 0bytes why is this?
any help?
any help?
Last edited by PsPfReAK on Thu Apr 23, 2009 2:06 am, edited 1 time in total.
i do thisJim wrote:Do you sceIOClose the file somewhere?
Jim
Code: Select all
printf("\n Assigning Flash");
if (sceIoUnassign("flash0:") < 0)
printf("Cannot Un-Assign flash0:");
if (sceIoAssign("flash0:", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0) < 0) {
printf("Error Assigning flash0 in write mode"); }
printf("Flash Assigned...\n\n");
printf("\n Flashing camera plugins ");
copyFile("flash0:/vsh/module/camera_plugin.prx", "ms0:/camera_plugin.prx");
copyFile("flash0:/vsh/resource/camera_plugin.rco", "ms0:/camera_plugin.rco");
sceIoClose;
printf("done");
There is no access to flash0:/ from even a kernel module or user module. You unassign and reassign must be failing, but the code you've given just prints an error and continues without stopping. You can use one of these methods.
1) If you are just making an EBOOT application, then instead of making it user mode, make it VSH mode by giving 0x800 in PSP_MODULE_INFO("flash0w", 0x800, 1, 0);
Now you can unassign and reassign then freely read and write flash0:/.
2) If you are making a user mode prx or an EBOOT, then load DAX's iop.prx first. It comes with his LEDA application.
3) If you are making a kernel mode prx then #include <systemctrl.h> and add -lpspsystemctrl_kernel to your makefile libs. Then call this before assign, or open file, or read, or write.
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen(...);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
1) If you are just making an EBOOT application, then instead of making it user mode, make it VSH mode by giving 0x800 in PSP_MODULE_INFO("flash0w", 0x800, 1, 0);
Now you can unassign and reassign then freely read and write flash0:/.
2) If you are making a user mode prx or an EBOOT, then load DAX's iop.prx first. It comes with his LEDA application.
3) If you are making a kernel mode prx then #include <systemctrl.h> and add -lpspsystemctrl_kernel to your makefile libs. Then call this before assign, or open file, or read, or write.
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen(...);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
its an eboot.Torch wrote:There is no access to flash0:/ from even a kernel module or user module. You unassign and reassign must be failing, but the code you've given just prints an error and continues without stopping. You can use one of these methods.
1) If you are just making an EBOOT application, then instead of making it user mode, make it VSH mode by giving 0x800 in PSP_MODULE_INFO("flash0w", 0x800, 1, 0);
Now you can unassign and reassign then freely read and write flash0:/.
2) If you are making a user mode prx or an EBOOT, then load DAX's iop.prx first. It comes with his LEDA application.
3) If you are making a kernel mode prx then #include <systemctrl.h> and add -lpspsystemctrl_kernel to your makefile libs. Then call this before assign, or open file, or read, or write.
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen(...);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
but i am in vsh mode because it copys over camera_plugin.prx but not camera_plugin.rco....
okay i found out my flash isnt un assigning, this is my code
whats wrong with it?
my eboot has the 0x800 flag at the begining...
Code: Select all
p2c(" - Assigning flash0....\n ");
sceKernelDelayThread(1000000);
if (sceIoUnassign( "flash0:" ) < 0)
errorExit("Cannot Unassign Flash0\n");
if (sceIoAssign( "flash0:", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0 ) < 0) {
errorExit("Cannot Assign Flash0 In Write Mode\n"); }
my eboot has the 0x800 flag at the begining...
dont worry about the assigning problem, turned out that i was giving my psp to many kernal commands, i think....
im still trying to get that camera_plugin.rco though, still no hope
also
and sceIoOpen(...); <--is that the part where i flash the files or do i open iop.prx?
EDIT- solved, thank you very much for your help
im still trying to get that camera_plugin.rco though, still no hope
also
where eactly does this go, before i assign thew flash?int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen(...);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
and sceIoOpen(...); <--is that the part where i flash the files or do i open iop.prx?
EDIT- solved, thank you very much for your help
okay when i use this before assigning
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen("flash0:/vsh/camera_plugin.rco", PSP_O_RDONLY, 0777);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
it wont let me un assign flash
so can someone tell me how to do it, like ive tried everything i can think off
this is it currently
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen("flash0:/vsh/camera_plugin.rco", PSP_O_RDONLY, 0777);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
pspSdkLoadStartModule("iop.prx", PSP_MEMORY_PARTITION_KERNEL);
p2c(" Assigning flash0....\n ");
if (sceIoUnassign("flash0:") < 0)
errorExit("Cannot Un-Assign flash0:");
if (sceIoAssign("flash0:", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0) < 0) {
errorExit("Error Assigning flash0 in write mode"); }
p2c(" Flash Assigned\n");
copyFile("flash0:/vsh/module/camera_plugin.prx", "ms0:/camera_plugin.prx");
copyFile("flash0:/vsh/resource/camera_plugin.rco", "ms0:/camera_plugin.rco");
but yet it only copies the prx
its a eboot it vsh mode (0x800)
can anyone help?
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen("flash0:/vsh/camera_plugin.rco", PSP_O_RDONLY, 0777);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
it wont let me un assign flash
so can someone tell me how to do it, like ive tried everything i can think off
this is it currently
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen("flash0:/vsh/camera_plugin.rco", PSP_O_RDONLY, 0777);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
pspSdkLoadStartModule("iop.prx", PSP_MEMORY_PARTITION_KERNEL);
p2c(" Assigning flash0....\n ");
if (sceIoUnassign("flash0:") < 0)
errorExit("Cannot Un-Assign flash0:");
if (sceIoAssign("flash0:", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0) < 0) {
errorExit("Error Assigning flash0 in write mode"); }
p2c(" Flash Assigned\n");
copyFile("flash0:/vsh/module/camera_plugin.prx", "ms0:/camera_plugin.prx");
copyFile("flash0:/vsh/resource/camera_plugin.rco", "ms0:/camera_plugin.rco");
but yet it only copies the prx
its a eboot it vsh mode (0x800)
can anyone help?
:@
so your saying no one knows how to this?
still in user mode it wont let me unnassign flash0
it only does this when this is in
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen("flash0:/vsh/camera_plugin.rco", PSP_O_RDONLY, 0777);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
so how should i go about it?
any help!!!!
it only does this when this is in
int k1 = pspSdkSetK1(0);
int level = sctrlKernelSetUserLevel(8);
sceIoOpen("flash0:/vsh/camera_plugin.rco", PSP_O_RDONLY, 0777);
sctrlKernelSetUserLevel(level);
pspSdkSetK1(k1);
so how should i go about it?
any help!!!!
Last edited by PsPfReAK on Wed Apr 22, 2009 6:47 am, edited 1 time in total.
O.o
well, it works when i go to test m33 but when i test it in the actual psp it still only copies the prx not the rco