Hacking GBA Cart Adapter

Archerg

Active Member
OP
Newcomer
Joined
Jul 30, 2018
Messages
26
Trophies
0
Age
25
XP
484
Country
United States
Hi there, I know this has been asked, but I just wanted to ask if this is even hypothetically feasible, whether or not if it's been made or programmed, which as of now it has not.

As I understand it, the GBA couldn't be used on a DS slot 1 because the DS had much slower transfer speeds since the GBA is basically a memory extension. The dsi could not run GBA games because despite it having GBA hardware, the ram was too small to store the rom in its entirety and still run system resources.

For the 3ds, I can't find any documentation on the cartridge read speeds other than 150ns, so fairly fast. With the advancement of open_agb_firm, we get loading games into ram directly from a location (sd card) without layers of VC injects. Wouldn't this mean it's possible to modify the source and destination including where it saves to?

Lastly, the pinouts should be similar. 3ds and GBA carts have ground, clock, vcc, and all 7 data pins. I'm a bit lost on the address pins, but if necessary someone could include a cpld chip to access the data/address combo pins. Or if we can just dump the entire rom and saves into the 3ds ram and read/write back to it, it would make reading from it constantly moot, wouldn't it?

I don't have much concrete knowledge of the process, if any. If it's been attempted is another topic or even worth it since it can just be loaded digitally. But with all this and for those who want to play three generations of physical media on one device, is it possible in theory?
 

Archerg

Active Member
OP
Newcomer
Joined
Jul 30, 2018
Messages
26
Trophies
0
Age
25
XP
484
Country
United States
You will need to use some form of FPGA and a ton of reverse engineering to make this possible.
Good point. I was doing some more thinking about it, and realized that someone would have to make a chip in between the GBA and the card slot to do a mirage of things. You could have it translate the rom into a readable file in the same way you can read .app files within godmode9s file management system, or how the joey jr lets you view files on windows as simple .GBA and .sav files. Or a mask .3ds file with special private headers to show up on the screen with a basic banner to either boot open_agb_firm or a modified agb_firm. And that's not even touching coding, translating, and transferring data back and forth between the GBA and the system. A bit more than drag and drop, eh? But if someone ever decided to take the time, it might just be possible.
 
  • Like
Reactions: SylverReZ

Archerg

Active Member
OP
Newcomer
Joined
Jul 30, 2018
Messages
26
Trophies
0
Age
25
XP
484
Country
United States
You can dump GBA games using a DS and an R4 card if you want some clean legal ROMs.
That's quite true, although I think you might be missing the intention of this thread.

I think I might be overthinking it. Rather than have the system read the pins directly from the cartridge, or a quasi-custom card slot rom interface, it could just be simple.

If only there was a software on a chip that could be made to make the rom and save appear as files in the 3ds, then open_agb_firm could just read and write the save back to it. If you wanted to take it a step further, you could just crate a forwarder to a version of OAF that just auto loads the file in there, and easy peasy.
 

sirocyl

Are we Geniuses or what?
Newcomer
Joined
Apr 30, 2012
Messages
92
Trophies
1
Age
31
XP
324
Country
United States
The theory is sound, it would just need some light electronics, hardware/PCB manufacture, and software engineering.

Hardware needs:
- SPI USB 1.0/2.0 FS/HS host controller interface IC.
- Any USB GBA cartridge dumper.
- A new homebrew SLOT-1 board, with SPI chip select gated properly with CS_SPI pin, and connected to SPI USB host controller.

Alternatively, if you have an open-source GBA cartridge dumper which can talk natively over SPI, you can short-circuit the need for an SPI USB HCI chip.

Software needs:
- A USB HCI driver for the SPI chip, to be included into open_agb_firm
- A driver for the GBA cartridge dumper, also to include in OAF (replacing fatfs)
- A modification of open_agb_firm to read its ROM and save data from the connected USB device.

No FPGA needed, and the implementation is very simple.

Also, if there's any open-source NTRCARD/NTRBOOT/NTRCARDHAX tools/chips out there (e.g., firmware for a microcontroller to emulate the DS card protocol, or gateware for a CPLD/small FPGA), it could be possible to have this version of OAF as an NTRBOOT payload, and run on stock 3DS consoles, as the card signals and SPI are multiplexed with a simple CS gate.

You could possibly also modify an existing NTRBOOT flashcard for this purpose, but they are getting harder to find, and they're not open-source.
 
Last edited by sirocyl,

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
1,135
Trophies
1
XP
2,481
Country
United States
The theory is sound, it would just need some light electronics, hardware/PCB manufacture, and software engineering.

Hardware needs:
- SPI USB 1.0/2.0 FS/HS host controller interface IC.
- Any USB GBA cartridge dumper.
- A new homebrew SLOT-1 board, with SPI chip select gated properly with CS_SPI pin, and connected to SPI USB host controller.

Alternatively, if you have an open-source GBA cartridge dumper which can talk natively over SPI, you can short-circuit the need for an SPI USB HCI chip.

Software needs:
- A USB HCI driver for the SPI chip, to be included into open_agb_firm
- A driver for the GBA cartridge dumper, also to include in OAF (replacing fatfs)
- A modification of open_agb_firm to read its ROM and save data from the connected USB device.

No FPGA needed, and the implementation is very simple.

Also, if there's any open-source NTRCARD/NTRBOOT/NTRCARDHAX tools/chips out there (e.g., firmware for a microcontroller to emulate the DS card protocol, or gateware for a CPLD/small FPGA), it could be possible to have this version of OAF as an NTRBOOT payload, and run on stock 3DS consoles, as the card signals and SPI are multiplexed with a simple CS gate.

You could possibly also modify an existing NTRBOOT flashcard for this purpose, but they are getting harder to find, and they're not open-source.
What? Why would you want to over complicate something like this with USB, of all things.

Serial to USB and then back to serial is not a good idea.
 

sirocyl

Are we Geniuses or what?
Newcomer
Joined
Apr 30, 2012
Messages
92
Trophies
1
Age
31
XP
324
Country
United States
What? Why would you want to over complicate something like this with USB, of all things. Serial to USB and then back to serial is not a good idea.

GBA cartridges aren't serial, and GBA dumpers on the market today are USB. If there is a serial GBA cartridge dumper out there, by all means - use that. I even mention this in the post.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
    Psionic Roshambo @ Psionic Roshambo: It's always worth a shot