| View previous topic :: View next topic |
| Author |
Message |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Sat Mar 08, 2008 6:49 am Post subject: Dump Flash0 |
|
|
how i put a function to dump the flash0?
The library of Arkarian(arklib.h) have some error |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 08, 2008 9:34 am Post subject: |
|
|
try with
sceIoRead and sceIoWrite, that's works fine |
|
| Back to top |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Sat Mar 08, 2008 7:47 pm Post subject: |
|
|
| 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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Mar 09, 2008 7:08 am Post subject: |
|
|
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 |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Tue Mar 11, 2008 4:38 am Post subject: |
|
|
Yes,i knew,but i want that directly the function does the dump of the flash0.
Thanks you. |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Tue Mar 11, 2008 6:58 am Post subject: |
|
|
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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Mar 11, 2008 9:09 am Post subject: |
|
|
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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Mar 11, 2008 9:13 am Post subject: |
|
|
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 |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Tue Mar 11, 2008 6:27 pm Post subject: |
|
|
| 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 |
|
 |
.::Albandu51::.
Joined: 04 Oct 2007 Posts: 12
|
Posted: Tue Mar 11, 2008 6:46 pm Post subject: |
|
|
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 |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Tue Mar 11, 2008 7:57 pm Post subject: |
|
|
| .::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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Mar 11, 2008 10:39 pm Post subject: |
|
|
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 |
|
 |
|