Go Back  
Reply
 
Thread Tools
Old 01-28-2013   #101
Dartban214
Member
 
Join Date: Dec 2012
Posts: 162
Likes: 45
Liked 17 Times in 17 Posts
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
Originally Posted by anaria View Post
No pb, I welcome all comments.

That's quite interesting, I've always been thinking of C being ten times easier to read than C++, even if you may need more lines in C than C++ to do the same thing!?

I agree that it may be better to split it into .h and .c, but I did not put that on my priority list
Don't blame you lmao. Better to get the problem done than make it pretty

C is pretty easy to read just a little more detailed than I like haha. The only major difference in C and C++ is that C++ has some shortcuts.

The C++ I know is what? Data Structures. I haven't really gotten to the algorithms yet though. We have done a couple but not many. I'm actually a computer Science student at a university. So I'm still not the 100% best at programming I just have a hint or two
__________________
Noobs Look here for downgrade help:Ultimate Fool Proof Guide: Ps3 Hardware downgrading

NOTE: READ THE WARNING! THIS GUIDE IS CURRENT AS OF 12/23/2012
Dartban214 is offline   Reply With Quote
Old 01-29-2013   #102
time-machine
Apprentice
 
Join Date: Sep 2010
Posts: 1
Likes: 2
Liked 0 Times in 0 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Anaria you make a good job here. I'm very happy to see how this scene grow up and make things easier for people like me.
Did this version is running on win 7 64 bit? When will be released a GUI version?
do we have to check the dumbs again with HxD hexedit?
Do you think that a brick secure version is possible?
Thanx for this genius app from a guy who dont know about validate dumps with hex

Keep up the good work
Greets from germany
time-machine is offline   Reply With Quote
Old 01-30-2013   #103
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
Thanks, yes I'd like it to become a tool on which we can rely to confirm that a dump is safe or not, at the current stage it cannot be, even when I think I'm finish with the code implentation we will need experts to give a green light to it, I do not want to have any PS3's blood on my hands...
In other words, as long as you do not see anything on ps3devwiki mentionning it to be safe I sugeest you to be carefull

Today status is:
- Run on almost any platform if you compile it with the correct options and environment (see post #16)
- I'm not working on a GUI, I really and definitely think that is faster and easier to use this kind of tool in a shell but it's only what I think myself, but @jamesst20 as started to work on a GUI, maybe some others did but I'm not aware of.
- It's still better to use a binary editor to check the file anyway.
- Yes I hope to be able to see one day a brick safe tool.
- The draft version for a future 0.9.6 release has now reached a 97.29% of bytes covered, but I'm not ready to release it before next week, let say it will be a Chinese year release :D

Sorry I'm not very fast and I only have few hours per day to code.
anaria is offline   Reply With Quote
Old 01-30-2013   #104
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,855
Likes: 1,032
Liked 826 Times in 484 Posts
Mentioned: 162 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
Originally Posted by anaria View Post
Thanks, yes I'd like it to become a tool on which we can rely to confirm that a dump is safe or not, at the current stage it cannot be, even when I think I'm finish with the code implentation we will need experts to give a green light to it, I do not want to have any PS3's blood on my hands...
In other words, as long as you do not see anything on ps3devwiki mentionning it to be safe I sugeest you to be carefull

Today status is:
- Run on almost any platform if you compile it with the correct options and environment (see post #16)
- I'm not working on a GUI, I really and definitely think that is faster and easier to use this kind of tool in a shell but it's only what I think myself, but @jamesst20 as started to work on a GUI, maybe some others did but I'm not aware of.
- It's still better to use a binary editor to check the file anyway.
- Yes I hope to be able to see one day a brick safe tool.
- The draft version for a future 0.9.6 release has now reached a 97.29% of bytes covered, but I'm not ready to release it before next week, let say it will be a Chinese year release :D

Sorry I'm not very fast and I only have few hours per day to code.
Chinese New Years for the win. sad I don't get money anymore. Used to get money from my Chinese and Vietnamese sides.

Back on topic. I personally think that a pretty looking GUI for any program these days is needed for a couple reasons. One it doesn't overwhelm people who aren't used to CLI. Another reason is presentation is much more organized and flexible, and not limited to text on the screen. I'm not saying create a GUI version, I'm just throwing my opinion . BTW great work .
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
TizzyT is offline   Reply With Quote
Old 01-30-2013   #105
jamesst20
Member
 
Join Date: Jan 2011
Posts: 224
Likes: 24
Liked 28 Times in 21 Posts
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
Originally Posted by TizzyT View Post
Chinese New Years for the win. sad I don't get money anymore. Used to get money from my Chinese and Vietnamese sides.

Back on topic. I personally think that a pretty looking GUI for any program these days is needed for a couple reasons. One it doesn't overwhelm people who aren't used to CLI. Another reason is presentation is much more organized and flexible, and not limited to text on the screen. I'm not saying create a GUI version, I'm just throwing my opinion . BTW great work .
Same but I don't know why, I hate to make console program ^^
jamesst20 is offline   Reply With Quote
Old 01-31-2013   #106
deaphroat
Apprentice
 
Join Date: Oct 2011
Posts: 7
Likes: 0
Liked 2 Times in 2 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Hello

Thank anaria for your sharing.

I have used it. I have write a little soft for testing Nor Dump and 2 3 nother feature.



But i can't show you because PS3Hax refused link or picture ^^

gueux-forum.net/index.php?/topic/271077-ps3dumpvalidating/

Last edited by deaphroat; 01-31-2013 at 03:24 PM.
deaphroat is offline   Reply With Quote
Old 01-31-2013   #107
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
Originally Posted by deaphroat View Post
Hello

Thank anaria for your sharing.

I have used it. I have write a little soft for testing Nor Dump and 2 3 nother feature.



But i can't show you because PS3Hax refused link or picture ^^

gueux-forum.net/index.php?/topic/271077-ps3dumpvalidating/
You're welcome.
Well done for yours.

So you are the one to use my thread to promote your tool :P (je blague pas de probleme)(just kidding no problem)

Here is a snapshot:


Please see my PM.
anaria is offline   Reply With Quote
Old 01-31-2013   #108
jamesst20
Member
 
Join Date: Jan 2011
Posts: 224
Likes: 24
Liked 28 Times in 21 Posts
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
Originally Posted by deaphroat View Post
Hello

Thank anaria for your sharing.

I have used it. I have write a little soft for testing Nor Dump and 2 3 nother feature.



But i can't show you because PS3Hax refused link or picture ^^

gueux-forum.net/index.php?/topic/271077-ps3dumpvalidating/
Looks like you were faster then me it what programming language is it ?

Btw, how do you calculate the others byte percentage? 100% - FF% - 00% doesn't equal less the 0.5. Is it an average of the quantity of each single different bytes?

Envoyé depuis mon Nexus 7 avec Tapatalk
jamesst20 is offline   Reply With Quote
Old 01-31-2013   #109
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
Originally Posted by jamesst20 View Post
Btw, how do you calculate the others byte percentage? 100% - FF% - 00% doesn't equal less the 0.5. Is it an average of the quantity of each single different bytes?
I'm not sure how @deaphroat does it but this how I do (thanks again to an0nym0u5 in helping cleaning a bit the mess):
Code:
uint8_t Statistics(FILE *FileToRead) {
    // Calculate some statistics on bytes percentages
    uint8_t Status=EXIT_SUCCESS;
    uint32_t Cursor;
    uint16_t Counter;
    uint32_t CountOthers=0;
    uint32_t CountByte[0xFF+1];

    char msg_low[]  = "Too Low";
    char msg_high[] = "Too High";
    char msg_good[] = "Good";
    
    char *Status00=NULL;
    char *StatusFF=NULL;
    char *StatusOthers=NULL;

    printf("******************************\n");
    printf("*         Statistics         *\n");
    printf("******************************\n");

    fseek(FileToRead, 0, SEEK_SET);

    // reset all counters
    for (Counter=0x00;Counter<0xFF+1;Counter++)
        CountByte[Counter]=0;

    //count how many of each bytes are found
    for (Cursor=0;Cursor<NOR_FILE_SIZE;Cursor++)
        CountByte[fgetc(FileToRead)]+=1;

    // for all bytes value from 0x01 to 0xFE check which one has the highest count
    for (Counter=0x01;Counter<0xFF;Counter++) {
        if (CountOthers<CountByte[Counter])
            CountOthers=CountByte[Counter];
    }

    if (CountByte[0x00]<MIN00) {
        Status00=msg_low;
        Status = EXIT_FAILURE;
    }
    else if (CountByte[0x00]>MAX00) {
        Status00=msg_high;
        Status = EXIT_FAILURE;
    }
    else
        Status00=msg_good;

    if (CountByte[0xFF]<MINFF) {
        StatusFF=msg_low;
        Status = EXIT_FAILURE;
    }
    else if (CountByte[0xFF]>MAXFF) {
        StatusFF=msg_high;
        Status = EXIT_FAILURE;
    }
    else
        StatusFF=msg_good;

    if (CountOthers>MAXOTHERS) {
        StatusOthers=msg_high;
        Status = EXIT_FAILURE;
    }
    else
        StatusOthers=msg_good;

    printf ("Bytes '00' found %d times, %2.2f%% %s\n"         , CountByte[0x00], (double)CountByte[0x00]*100/(double)NOR_FILE_SIZE, Status00);
    printf ("Bytes 'FF' found %d times, %2.2f%% %s\n"         , CountByte[0xFF], (double)CountByte[0xFF]*100/(double)NOR_FILE_SIZE, StatusFF);
    printf ("Other bytes found %d times maximum, %2.2f%% %s\n", CountOthers    , (double)CountOthers    *100/(double)NOR_FILE_SIZE, StatusOthers);
    
    return Status;
}
anaria is offline   Reply With Quote
Old 02-01-2013   #110
deaphroat
Apprentice
 
Join Date: Oct 2011
Posts: 7
Likes: 0
Liked 2 Times in 2 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
@ anaria

you share, i use it ^^

I don't want became famous, just learn and sharing. And now i adapte your code for Nand. And my own, check if the dump is reversed.... ^^

And for the percentage, in first i have my function but yours is more faster...

i filled up a array of int with every byte, and make 256 count on it ^^.... It's not good with a nand 256 Mb ^^

So i take yours....Thank again.

@ jamesst20

I have begin 3, 4 month ago... I have just use the anaria code for 2 new test...

It's in C++/ Qt, compatible with Mac and Linux and I give source code for respect the Qt License.



Source code : ps3.gx-mod.com/images/news/softwares/nandTool/SourcePs3DumpValidating.rar

Last edited by deaphroat; 02-01-2013 at 07:40 PM.
deaphroat is offline   Reply With Quote
Likes: (1)
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 09:01 AM.