Progress on the DSi front
The other front would be, you know, getting 0.8.3 good for a release. Which means, fixing the goddamn audio output system. Have been rather unsuccessful at that task for now.

So instead, I did what I typically do in these situations: procrastinate and work on something else.

In this case, the DSi front.

If you remember, this was at a point where it needed wifi initialization to be able to launch titles. I was stuck at a particular point of the init procedure, where it waited for something and I had trouble figuring out what. But, regardless, I set to work.

In the meantime, googling some of the strings present in the firmware's wifi code brought me to this Atheros driver codebase which is very close to what the firmware uses. This helped me a lot in figuring out how things work and what the firmware was expecting.

And, well...

melonDSi config melonDSi flipnote

It's possible to boot shit from the firmware now!

Couple issues with this though.

* the system settings app boots, but it's impossible to get further due to the lack of touchscreen support
* Flipnote boots but freezes when starting a new flipnote
* pure DS-mode games seem to be bootable, DSi-enhanced games are not

Also, some DS-mode games suffer from audio issues for whatever reason. Well, it's worth noting that atm melonDSi does not support dynamic ARM9 clock adjustment, so DS games are basically running in forced DSi mode.

Well, we're getting there, I guess.
Spikelink says:
Aug 15th 2019
Just want to say that dsi emulation is important, specially for the games exclusive to dsi. It's the only way we will be able to preserve them for the future (I've been trying to find a way to play four swords adventures 25 aniversary ed. for years with no results). just want to say that your work is highly appreciated over here.
also is there an alpha version of the dsi build public? I would love to try it out :D
poudink says:
Aug 15th 2019
you can compile the source for the dsi branch, if that counts
Spikelink says:
Aug 16th 2019
Oh, didn't see it at first on the github, thanks!
kevincrans says:
Aug 16th 2019
Nice to hear that MelonDs is already capable of running on 32 bit.
Lol, I meant MelonDs as in 3ds Homebrew, TWLMenu ++ didn't work with some games for me before it was called TWLMenu ++.
I was look'n around and found the Rvl/Cafe/TWL SDks and was like :O, how do u devs use these things lmao.

Good luck, can't wait for the next progress report!
kevincrans says:
Aug 16th 2019
Spikelink, wow do u really have a DSI copy of that game? epic!
Spikelink says:
Aug 16th 2019
been buying random cheap ds' advertised as "with games installed" In hopes that they had it, and In one of them it was there! I wanted 4 of them but don't think that will happen. Not gonna stop me from trying tho! :D
dsibleh says:
Aug 17th 2019
The audio fix would be more important than DSI
Arisotura says:
Aug 17th 2019
calm the fuck down. audio is also being worked on and I have trouble getting that shit to work.
Guest says:
Aug 18th 2019
I understand that the MelonDSi branch isn't even prealpha status, however is it supposed to be able to boot the menu under Linux?
Since whenever I try doing so, MelonDSi completely freezes up X-Server, forcing me to kill LightDM, losing everything open in the process.
Arisotura says:
Aug 18th 2019
that... sounds bad

but otherwise it should be able to boot the menu, but you need certain files (dsikeys.bin, BIOS, firmware, NAND...)
Guest says:
Aug 18th 2019
That must be it, I don't have dsikeys.bin, and have no idea where to get it.
I managed to find the rest of the files (my main reason for using MelonDS is curiosity as to the emulation, not the games, so I do not really expect to truly play anything, and as such I am alright with using dumps from other DSs, rather than buying one for myself).
Guest says:
Aug 18th 2019
Nevermind, I just found out that the common key can be legally downloaded (though the key itself wont necessarily be legal), since it can be generated.
Guest says:
Aug 18th 2019
That is the weirdest way I have ever seen to generate a file. Seriously, a role-playing game that is a parody of Pokémon?
When I have time to boot Windows on my spare computer, I'll run it.
Arisotura says:
Aug 19th 2019
dsikeys.bin contains the initial keys that are in the AES engine after boot. I have a dumper that is able to dump them, but I want to add other dumping features.

there are also two other files, initmem9.bin and initmem7.bin that contain fragments of ITCM and ARM7 memory that are needed (keys and other shit).

I'm also unsure what to do. there are BIOS dumps out there that have been filled as much as possible, by dumping the lower half and adding back the known parts of the upper half that can be sourced from elsewhere, as seen there. NO$GBA expects these particular dumps. I might want to adopt that method too, but I'm afraid such dumps are less complete than dsikeys.bin/initmem7.bin/initmem9.bin.

ideally we'd just use full BIOS dumps, but you know how this goes.
Guest says:
Aug 20th 2019
Ah, that does it.
I have no DSi (or DS, or any gaming console, for that matter) at hand, so no wonder I do not have all the necessary files.
I agree with you, and having read your previous posts about dumping the firmware, I understand the hardships around that.
Post a comment
Name:
DO NOT TOUCH