gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Loading and launching the DS card

#143455 - The_Perfection - Sun Oct 21, 2007 10:29 pm

I've been toying with hbfirmware and it seems that the code provided to load and run the SLOT-1 card do not work. How would I get this to work?

All help is appreciated!

#143456 - Mighty Max - Sun Oct 21, 2007 10:37 pm

It does work, when it is started at the boot-time.

Slot-1 is not decryptable by normal software means after the boot process is done, and no event has reset the encryption system.
_________________
GBAMP Multiboot

#143540 - The_Perfection - Tue Oct 23, 2007 4:36 pm

So, in other words, it\'ll only work if it\'s flashed to the DS? If that\'s the case it\'s gonna be a pain to play with. But it does work?

So, would it be possible to load, say, the game icon before while attempting to test my firmware without reflashing my DS? I know that there are the different encryptions for different portions of the card. I think.

#143541 - Mighty Max - Tue Oct 23, 2007 4:44 pm

The official firmware writes the header of the card to the main ram before passing control: http://nocash.emubase.de/gbatek.htm#dscartridgeheader
_________________
GBAMP Multiboot

#143542 - The_Perfection - Tue Oct 23, 2007 5:03 pm

So, from what I understand, if hbfirmware were flashed to the DS, it would be able to launch the card, but it cannot run it if it was booted from a Slot-2 card instead, right?

And from what I gather, (I\'m not terribly good at understanding GBATek,) The Icon and Title are outside the encrypted region and would be able to be read just fine, correct?

Thanks for your speedy replies!

#143543 - Mighty Max - Tue Oct 23, 2007 5:14 pm

The_Perfection wrote:
So, from what I understand, if hbfirmware were flashed to the DS, it would be able to launch the card, but it cannot run it if it was booted from a Slot-2 card instead, right?


Yes, that is how it is supposed to work. As soon the original firmware flags the encryption everything is too late, unless the encryption is reset by an physical event.

Quote:

And from what I gather, (I\'m not terribly good at understanding GBATek,) The Icon and Title are outside the encrypted region and would be able to be read just fine, correct?


Correct.
_________________
GBAMP Multiboot

#143575 - Lick - Tue Oct 23, 2007 11:48 pm

The icondata and title are encrypted. The only way to reset the DS card is to re-insert it. After re-insertion you can do a decryption procedure, and find the icondata and title.
_________________
http://licklick.wordpress.com

#143650 - HyperHacker - Thu Oct 25, 2007 1:07 am

The problem is just that once the encrypted data has been read, it can't be read again without resetting the card, which requires either removing it or turning the DS off. The BIOS reads it and leaves it in memory for the firmware to find, but all homebrew loaders I know of (as well as the firmware WMB client) remove it for whatever reason.

There's a bunch of info URL removed but I think they require registration to view it, which is annoying. There's some nice code posted there that does all the encryption and stuff for you so you can read the card freely (still has to be reinserted though). It's GPL2-infected, though. >_>
_________________
I'm a PSP hacker now, but I still <3 DS.

#143704 - Lick - Thu Oct 25, 2007 1:58 pm

HyperHacker wrote:
but all homebrew loaders I know of (as well as the firmware WMB client) remove it for whatever reason.
I think to use soft reset to boot the next binary.

Quote:
There's a bunch of info URL removed but I think they require registration to view it, which is annoying. There's some nice code posted there that does all the encryption and stuff for you so you can read the card freely (still has to be reinserted though). It's GPL2-infected, though. >_>
I have no idea but to guess that the removed URL pointed at an illegal website, in which case I find it weird that the contents on that illegal website are GPLv2-licensed.
_________________
http://licklick.wordpress.com

#143744 - HyperHacker - Thu Oct 25, 2007 8:15 pm

I'm sure there was nothing illegal on that site last I checked. You could find some distasteful things if you signed up and poked around, but not in that thread. Ah, I love it when moderators delete things without any explanation why. -_-
_________________
I'm a PSP hacker now, but I still <3 DS.

#143757 - wintermute - Thu Oct 25, 2007 9:28 pm

GPL licensing doesn't magically make things legal.

If a site involves making copies of commercial games it should not be linked here.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#143759 - tepples - Thu Oct 25, 2007 9:31 pm

HyperHacker wrote:
I'm sure there was nothing illegal on that site last I checked.

I'm not the moderator who deleted it. (I'd have been more likely to replace the URL with "PIRACY DOT COM" or the like.) But I'm guessing that "it's not illegal" has little to do with it. This server is private property. Even though the discussion of piracy methods is not necessarily unlawful, the administrators have seen fit to ban links to domains that focus on the discussion of piracy methods.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143803 - HyperHacker - Fri Oct 26, 2007 6:32 am

wintermute wrote:
GPL licensing doesn't magically make things legal.

If a site involves making copies of commercial games it should not be linked here.
So is card-reading code considered piracy-related, or was there a thread having something to do with piracy in there that I missed? It doesn't do much good to tell someone "you're breaking the rules" without specifying just what they're doing to break them.
_________________
I'm a PSP hacker now, but I still <3 DS.