#169331 - m4c0 - Sat Jul 04, 2009 1:06 am
I'm trying to use cardParamCommand to read my homebrew NitroROM area, but CARD_DATA_RD always returns FF. On no$gba it works. Is there any particular reason?
Searching the forum, I found a Chishm's post about using the B7 command with some special flags (removing BLK_SIZE, adding ACTIVATE, nRESET and BLK_SIZE 1). This is exactly what I'm doing...
#169336 - Lick - Sun Jul 05, 2009 9:51 am
Try re-inserting the card after your app has loaded. You'll need to pause the app for that, and resume afterwards. ("press START after re-inserting.")
_________________
http://licklick.wordpress.com
#169377 - m4c0 - Tue Jul 07, 2009 10:11 am
Now I receive random values... Seems KEY2-related. Does I need to issue ALL KEY1/2 commands? That's awkward. How does it works for real game cards? And how it works for games backed up on R4DS?
#169378 - chishm - Tue Jul 07, 2009 12:55 pm
Are you trying this on an official DS card or a flash card? A flash card most likely won't work for what you're attempting.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com
#169386 - m4c0 - Tue Jul 07, 2009 11:54 pm
Actually, I want to reproduce the behaviour of an official game backed up on a flash card.
#169387 - chishm - Wed Jul 08, 2009 12:39 am
The firmware of the flash card usually patches the backups so that instead of the SDK functions used to access the DS card, the game uses proprietary commands to read its data from the backup file. Sine homebrew doesn't use the official SDK, the card firmware has no where to patch, and the normal card commands will just fail. Incidentally, this is part of the reason DLDI was created -- to give the firmware a known area to patch.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com
#169400 - m4c0 - Wed Jul 08, 2009 12:24 pm
Good Lord! Finally I found a self-contained answer! :)
The official SDK seems like Voldemort: the "SDK-Who-Must-Not-Be-Named"... I know it's illegal to use it without Nintendo permission (or distribute by any means), but I'm starting to believe it is also illegal to mention its existence without permission... :D
Back to homebrew, I know DLDI patch grants access to the storage media (this is how libfat works), but the question is: can I use its interface to read my NitroROM without searching for the NDS file (like EFS does)?
BTW: is this the moment for create a new thread?