access flash0 with pc via usb

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
nevertheless
Posts: 1
Joined: Fri Jun 29, 2007 9:23 pm

access flash0 with pc via usb

Post by nevertheless »

Code: Select all

pspSdkLoadStartModule("flash0:/kd/semawm.prx",PSP_MEMORY_PARTITION_KERNEL);
pspSdkLoadStartModule("flash0:/kd/usbstor.prx",PSP_MEMORY_PARTITION_KERNEL);
pspSdkLoadStartModule("flash0:/kd/usbstormgr.prx",PSP_MEMORY_PARTITION_KERNEL);
pspSdkLoadStartModule("flash0:/kd/usbstorms.prx",PSP_MEMORY_PARTITION_KERNEL);
pspSdkLoadStartModule("flash0:/kd/usbstorboot.prx",PSP_MEMORY_PARTITION_KERNEL);

sceIoUnassign("flash0:"); 
sceIoAssign("flash0:","msstor0p1:","fatms0:",IOASSIGN_RDWR,NULL,0);

sceUsbStart(PSP_USBBUS_DRIVERNAME, 0, 0); 
sceUsbStart(PSP_USBSTOR_DRIVERNAME, 0, 0); 
sceUsbstorBootSetCapacity(0x800000); 

sceUsbActivate(0x1c8);
Does this code work?
I could access only ms0 instead of flash0/1.
Post Reply