forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Flash 2 & 3... how to access?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
darkness



Joined: 15 Jun 2008
Posts: 121

PostPosted: Thu Jun 19, 2008 9:58 pm    Post subject: Flash 2 & 3... how to access? Reply with quote

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:

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

And for flash3:
Code:

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!
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Thu Jun 19, 2008 10:01 pm    Post subject: Reply with quote

this should work for assigning.

Code:
sceIoAssign("flash2:", "lflash0:0,2", "flashfat2:", IOASSIGN_RDWR, NULL, 0);
sceIoAssign("flash3:", "lflash0:0,3", "flashfat3:", IOASSIGN_RDWR, NULL, 0);

_________________

Upgrade your PSP
Back to top
View user's profile Send private message
darkness



Joined: 15 Jun 2008
Posts: 121

PostPosted: Thu Jun 19, 2008 10:03 pm    Post subject: Reply with quote

Thanks a lot Pirata Nervo and excuse me for the many post!
Back to top
View user's profile Send private message
darkness



Joined: 15 Jun 2008
Posts: 121

PostPosted: Thu Jun 19, 2008 10:12 pm    Post subject: Reply with quote

There is a error!
When I try to load flash3 nothing is changed!
And flash2 is in read only mode!
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Thu Jun 19, 2008 10:30 pm    Post subject: Reply with quote

well assign and unassign is not for usb ok?
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
darkness



Joined: 15 Jun 2008
Posts: 121

PostPosted: Thu Jun 19, 2008 10:48 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Thu Jun 19, 2008 10:51 pm    Post subject: Reply with quote

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?
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
darkness



Joined: 15 Jun 2008
Posts: 121

PostPosted: Thu Jun 19, 2008 11:33 pm    Post subject: Reply with quote

No, I'haven't try, but is not important, I will not include this funct in my programm!
However thanks very much!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group