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 

Dump Flash0

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



Joined: 24 Feb 2008
Posts: 31

PostPosted: Sat Mar 08, 2008 6:49 am    Post subject: Dump Flash0 Reply with quote

how i put a function to dump the flash0?

The library of Arkarian(arklib.h) have some error
Back to top
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 08, 2008 9:34 am    Post subject: Reply with quote

try with
sceIoRead and sceIoWrite, that's works fine
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Sat Mar 08, 2008 7:47 pm    Post subject: Reply with quote

thanks you,but but it would be of a file, i want that with a function it directly does dump of everything
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Mar 09, 2008 7:08 am    Post subject: Reply with quote

You need to mount the flash device, at which point you can then use the standard directory commands to step through the entries to find files and subdirectories.

Use search on "flash0" to find threads on mounting the flash, like this one:
http://forums.ps2dev.org/viewtopic.php?t=9648&highlight=flash0

You should already be familiar with the posix directory and file commands. If you aren't, I suggest finding a good web page on posix file handling. There's plenty of example code out there on posix file handling, so you probably won't find much here in threads. That's one of the "basics" that you should know before trying to work on the PSP.
Back to top
View user's profile Send private message AIM Address
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Tue Mar 11, 2008 4:38 am    Post subject: Reply with quote

Yes,i knew,but i want that directly the function does the dump of the flash0.
Thanks you.
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Tue Mar 11, 2008 6:58 am    Post subject: Reply with quote

Hi! :)
nikocronaldo wrote:
Yes,i knew,but i want that directly the function does the dump of the flash0.

I don't think that such a function exists....
By the way: do you know the function to make a tetris game (I mean the whole game, I don't want to blit all that graphics!). :)

Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Mar 11, 2008 9:09 am    Post subject: Reply with quote

Look in X-Flash source code.
I got the example here somewhere so you haven't looked too hard.
You don't really have to know how it works to use it, but I had to start
understanding in order to calculate the total size of all files.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Mar 11, 2008 9:13 am    Post subject: Reply with quote

Oh, I got it, You'll never guess where I got it from.
The SDK samples directory!
You know, the file IO example called "Dumper"!
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Tue Mar 11, 2008 6:27 pm    Post subject: Reply with quote

Art wrote:
Oh, I got it, You'll never guess where I got it from.
The SDK samples directory!
You know, the file IO example called "Dumper"!


But the x-flash is old, like dumper, since they work only in kernel 1.5, for slim it gives errors. I think that only it can one by one copy the archives of the flash.

Thanks you. ;)
Back to top
View user's profile Send private message
.::Albandu51::.



Joined: 04 Oct 2007
Posts: 12

PostPosted: Tue Mar 11, 2008 6:46 pm    Post subject: Reply with quote

Hi all !

Yes !!!!!
How write a file in flash0 on slim (In User mode ^^) ?
I already use a prx for my fonction but not work !
After I try dump my flash0 but not work too !!!!!


Please ! help me!!!
I need it soo much !!!!!!


Ps: Sorry for my languague ! I am French boy ! I am 14 !
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Tue Mar 11, 2008 7:57 pm    Post subject: Reply with quote

.::Albandu51::. wrote:
Hi all !

Yes !!!!!
How write a file in flash0 on slim (In User mode ^^) ?
I already use a prx for my fonction but not work !
After I try dump my flash0 but not work too !!!!!


Please ! help me!!!
I need it soo much !!!!!!


Ps: Sorry for my languague ! I am French boy ! I am 14 !


Before reassign the Flash0 and after utilise the function write_file.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Mar 11, 2008 10:39 pm    Post subject: Reply with quote

Well I assume you can read one file before you try to dump the whole partition.
That is a different question.
_________________
If not actually, then potentially.
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