Flash 2 & 3... how to access?

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

Moderators: cheriff, TyRaNiD

Post Reply
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Flash 2 & 3... how to access?

Post by darkness »

Hi,
I've try to access to the flash 2 & 3 in my hb, but the flash2 will be opened in readonly mode and if I try to open flash3 I've a error!
Here is the code:

Code: Select all

sceIoUnassign("flash2");
sceIoAssign("flash2", "lflash2:0,0", "flashfat2:", IOASSIGN_RDWR, NULL, 0);
cd("flash2:/");
And for flash3:

Code: Select all

sceIoUnassign("flash3");
sceIoAssign("flash3", "lflash3:0,0", "flashfat3:", IOASSIGN_RDWR, NULL,0);
cd("flash3:/");
I think the problem was the name!
I've searched but I've found nothing!
I've try to search in the string reference in the DAX recovery.prx, but I've found only the assign of the flash 1 and of the flash0!
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

this should work for assigning.

Code: Select all

sceIoAssign("flash2:", "lflash0:0,2", "flashfat2:", IOASSIGN_RDWR, NULL, 0); 
sceIoAssign("flash3:", "lflash0:0,3", "flashfat3:", IOASSIGN_RDWR, NULL, 0); 
Image
Upgrade your PSP
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Post by darkness »

Thanks a lot Pirata Nervo and excuse me for the many post!
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Post by darkness »

There is a error!
When I try to load flash3 nothing is changed!
And flash2 is in read only mode!
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

well assign and unassign is not for usb ok?
Image
Upgrade your PSP
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Post by darkness »

For the usb there is the DAX library ( pspusbdevice.h) and a assign it not useful for it!
I want open the flash 2 & 3 in my hb, for browse the file!
However, it not very important!
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Yes I was saying that this is not needed for USB.
I don't really know what to do for flash3 and I don't even know if the firmware allows you to assign and unassign it from user mode.
have you tried from kernel mode?
Image
Upgrade your PSP
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Post by darkness »

No, I'haven't try, but is not important, I will not include this funct in my programm!
However thanks very much!
Post Reply