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 

New NID for sceNand; one to go

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



Joined: 29 Nov 2005
Posts: 65

PostPosted: Thu Dec 21, 2006 1:18 am    Post subject: New NID for sceNand; one to go Reply with quote

Hiya,

I don't do much PSP hacking anymore but I finally finished up my reverse of the sceNand-module and I figured out one more NID:

eba0e6c6 = sceNandCountChipMakersBBM

The only one remaining now is c29da136.
I've reversed this function and what it does is mark a block as invalid (sets the block_stat byte in the spare page to 0xf0). I tried the obvious choices of names but didn't have any luck.

Some more info about sceNand-functions:

sceNandDumpWearBBMSize is dangerous! It checks the NAND for bad blocks and perform a sceNandTestBlock on the good blocks! I suspected I did something wrong in my reverse so I double-checked and it really appears that this is what it's doing! sceNandTestBlock erases the given block and performs tests to see if it's bad. If the result is a bad block, sceNand_c29da136 is used to mark it as bad.

sceNandDetectChipMakersBBM duplicates the functionality of sceNandIsBadBlock, and simply returns 0 if the block is not marked as bad.

sceNandCountChipMakersBBM calls sceNandDetectChipMakersBBM for all blocks in the nand and returns the tally of bad blocks.
_________________
Wer mit Ungeheuern kämpft, mag zusehn, dass er nicht dabei zum Ungeheuer wird.
Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Thu Dec 21, 2006 2:18 am    Post subject: Reply with quote

Nice, thanks.
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