Dump Flash0

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

Moderators: cheriff, TyRaNiD

Post Reply
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Dump Flash0

Post by nikocronaldo »

how i put a function to dump the flash0?

The library of Arkarian(arklib.h) have some error
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

try with
sceIoRead and sceIoWrite, that's works fine
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Post by nikocronaldo »

thanks you,but but it would be of a file, i want that with a function it directly does dump of everything
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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? ... ght=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.
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Post by nikocronaldo »

Yes,i knew,but i want that directly the function does the dump of the flash0.
Thanks you.
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

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
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Post by nikocronaldo »

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. ;)
.::Albandu51::.
Posts: 12
Joined: Thu Oct 04, 2007 12:33 am

Post by .::Albandu51::. »

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 !
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Post by nikocronaldo »

.::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.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Post Reply