Hacking SuperCard DSTwo SDK v1.2 released!

Mbmax

Homebrew addicted
Member
Joined
Nov 7, 2006
Messages
2,275
Trophies
1
Website
Visit site
XP
438
Country
I dont know if asiekiera has anything to do with it, because for all I know romman (Supercard team) accepted to release the stuff after a continued email discussion with me :P
no offense though. And thanks to Jakob95 for making me do this.
I don't count the number of time i asked romman for the iSmartMM SDK without luck. Could you give a try please ? ^_^
 

Buleste

Old Fart
Member
Joined
Dec 19, 2010
Messages
852
Trophies
0
Age
51
Website
www.redbubble.com
XP
590
Country
I dont know if asiekiera has anything to do with it, because for all I know romman (Supercard team) accepted to release the stuff after a continued email discussion with me :P
no offense though. And thanks to Jakob95 for making me do this.
I don't count the number of time i asked romman for the iSmartMM SDK without luck. Could you give a try please ? ^_^
I second that emotion. :P
 

Pate

Well-Known Member
OP
Member
Joined
Dec 23, 2010
Messages
108
Trophies
0
XP
82
Country
Finland
Has anyone managed to get the DS side (mp4play_test_16_souok_min30) compiled yet? I have been hunting for the proper devkitpro revision (using the svn repository) to get it to compile, and with my latest attempt using svn revision 1950 (from around July-August 2007) I managed to get the ARM7 side to compile (with a lot of warnings), but linking fails with the following problem:

Code:
linking mp4play_test_16_souok_min30.arm7.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.6.1/../../../../arm-eabi/bin/ld.exe: cannot find ds_arm7_mp4_crt0.o: No such file or directory
collect2: ld returned 1 exit status

I don't know how to create the ds_arm7_mp4_crt0.s. There are similar files in the \buildscripts\dkarm-eabi\crtls directory of devkitpro (again from revision 1950), but nothing with mp4 in their name.

I suspect I might be using too new devKitARM tools, as I have been trying to cut some corners and only use the old version of libnds with the latest versions of everything else (which may turn out to be a bad idea), but that mp4 in the name makes me suspect that this might be something specific to DSTwo.

Has anyone gotten further?

Pate

Ps. I have found out that devkitpro r1899 is too old, and r2599 is too new for this project, but I haven't narrowed down the correct revision further than that.
 

Normmatt

Former AKAIO Programmer
Member
Joined
Dec 14, 2004
Messages
2,161
Trophies
1
Age
33
Website
normmatt.com
XP
2,214
Country
New Zealand
Has anyone managed to get the DS side (mp4play_test_16_souok_min30) compiled yet? I have been hunting for the proper devkitpro revision (using the svn repository) to get it to compile, and with my latest attempt using svn revision 1950 (from around July-August 2007) I managed to get the ARM7 side to compile (with a lot of warnings), but linking fails with the following problem:

Code:
linking mp4play_test_16_souok_min30.arm7.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.6.1/../../../../arm-eabi/bin/ld.exe: cannot find ds_arm7_mp4_crt0.o: No such file or directory
collect2: ld returned 1 exit status

I don't know how to create the ds_arm7_mp4_crt0.s. There are similar files in the \buildscripts\dkarm-eabi\crtls directory of devkitpro (again from revision 1950), but nothing with mp4 in their name.

I suspect I might be using too new devKitARM tools, as I have been trying to cut some corners and only use the old version of libnds with the latest versions of everything else (which may turn out to be a bad idea), but that mp4 in the name makes me suspect that this might be something specific to DSTwo.

Has anyone gotten further?

Pate

Ps. I have found out that devkitpro r1899 is too old, and r2599 is too new for this project, but I haven't narrowed down the correct revision further than that.

I managed to get it to compile using some old devkitarm and libnds. I can package it all up if you want it.

EDIT: however it doesnt seem to encrypt the file so i can't test it out.
 

Pate

Well-Known Member
OP
Member
Joined
Dec 23, 2010
Messages
108
Trophies
0
XP
82
Country
Finland
I managed to get it to compile using some old devkitarm and libnds. I can package it all up if you want it.

EDIT: however it doesnt seem to encrypt the file so i can't test it out.

Yes please! Hopefully we can figure out the encrypt part as well.

Pate
 

Mbmax

Homebrew addicted
Member
Joined
Nov 7, 2006
Messages
2,275
Trophies
1
Website
Visit site
XP
438
Country
I managed to get it to compile using some old devkitarm and libnds. I can package it all up if you want it.

EDIT: however it doesnt seem to encrypt the file so i can't test it out.

Yes please! Hopefully we can figure out the encrypt part as well.

Pate
Isn't that already done ? http://gbatemp.net/topic/304420-dstwo-tool-for-windows/
 

Pate

Well-Known Member
OP
Member
Joined
Dec 23, 2010
Messages
108
Trophies
0
XP
82
Country
Finland
I managed to get it to compile using some old devkitarm and libnds. I can package it all up if you want it.

EDIT: however it doesnt seem to encrypt the file so i can't test it out.

Thanks again for that! It does indeed compile, and the resulting nds file seems to contain pretty much (though not quite) the same data as the original ds2_firmware.dat. I quickly compared the files with a hex editor, to see if the result is at all similar to ds2_firmware.dat.

I tested creating DS2x86.plg using that new .nds file created by your DevKitPro version, but it does not quite work. Both screens show random data and there is a constant screeching sound. It somehow seems like the MIPS side is running and sending data to the NDS side properly, as the top screen contents change at the same speed as the cursor should blink in DS2x86, but there is still some issue with the compilation.

Anyways, we are almost there! I would very much like to start converting the NDS side to use the latest DevKitPro, but it would be good to get it to work properly with the original sources first. :)

Pate
 

Mbmax

Homebrew addicted
Member
Joined
Nov 7, 2006
Messages
2,275
Trophies
1
Website
Visit site
XP
438
Country
Pate, be very careful when you play with the plg compilation. I bricked my dstwo when i tried the ismart linux plugin encrypted with the ds2 firmware.

Maybe you know what you are doing, but be aware that there is no proper unbricker released by sc team.

Good luck. :)
 

jimmyemunoz

Well-Known Member
Member
Joined
Feb 23, 2009
Messages
1,958
Trophies
0
Location
Louisiana
XP
487
Country
United States
I've been following this thread and will continue to do so because I have faith in the developers in this community. Good luck guys and I hope you keep us posted with your progress and set backs, should there be any more. A+++
 

Pate

Well-Known Member
OP
Member
Joined
Dec 23, 2010
Messages
108
Trophies
0
XP
82
Country
Finland
@mbmax: I have no idea what I am doing, so thanks for the warning. :)

It annoyed me quite a bit that even in the old DevKitARM version that Normmatt provided me, the ds_arm7_mp4_crt0.o still only existed in object format with no source. So, I decided to reverse-engineer it to see what is the difference between that and the normal ds_arm7_crt0.s. This is my best guess as to what the difference is:

First, the original code has this:

Code:
mov r0, #0x1F @ Switch to System Mode
msr cpsr, r0
ldr sp, =__sp_usr @ Set user stack

ldr r0, =__bss_start @ Clear BSS section to 0x00
ldr r1, =__bss_end
sub r1, r1, r0
bl ClearMem

In the mp4 -version, between those two code snippets is a new code that does some copying of the whole arm7 code area. I have no idea why, I just posted it here in case anyone is interested.

Code:
mov r0, #0x1F @ Switch to System Mode
msr cpsr, r0
ldr sp, =__sp_usr @ Set user stack

ldr r2, =__iwram_start @ mp4 stuff (__iwram_start = 0x37f8000)
ldr r1, =0x027ffe34 @ mp4 stuff
ldr r1, [r1] @ mp4 stuff
cmp r2, r1 @ mp4 stuff
ldrne r4, =__bss_end @ mp4 stuff
blne CopyMemCheck @ mp4 stuff

ldr r0, =__bss_start @ Clear BSS section to 0x00
ldr r1, =__bss_end
sub r1, r1, r0
bl ClearMem

I am just doing some preliminary work in trying to learn what I would need to do if/when I attempt to convert the NDS side to work with the latest DevKitPro.

I hope I am not the only one working on the new SDK, I would like to hear about your findings as well!

Pate
 

Pate

Well-Known Member
OP
Member
Joined
Dec 23, 2010
Messages
108
Trophies
0
XP
82
Country
Finland
Okay, some progress. It turned out that the problem with the corrupt screen and screeching audio was caused by my using DSTwo SDK version 0.13 on the MIPS side, and the new SDK 1.2 version only on the NDS side. Those two do not have a compatible I/O layer.

I switched to SDK 1.2 on both sides, and the NDS-side (compiled with the old DevKitPro) seems to almost work. DS2x86 boots up fine, and I can run some DOS programs, but every time there is disk activity the lower screen flashes strangely, until the system hangs. This does not happen with the original ds2_firmware.dat that is included in the 1.2 version package, so it seems that the compilation of the NDS side still does not go quite correct.

Strange that the SDK version 1.2 seems not to contain the changes they added to version 0.13. I had to change the DS2x86 code to work like in SDK 0.11 to get it to work with SDK 1.2!

Pate
 

DiscostewSM

Well-Known Member
Member
Joined
Feb 10, 2009
Messages
5,484
Trophies
2
Location
Sacramento, California
Website
lazerlight.x10.mx
XP
5,506
Country
United States
They already do have a good SNES emulator. BAGSFC and CATSFC are far better than Snemul but now maybe they can be improved even further.

Like moving the SPC700 emulation to the ARM7, since the SPC700 hardware unit can basically operate independently from the rest of the system.
 
  • Like
Reactions: Margen67

Auryn

Well-Known Member
Member
Joined
Jul 21, 2011
Messages
559
Trophies
1
Age
51
XP
706
Country
Swaziland
Sorry for the stupid question but i never used a SDK.
Does any part of this release allow to edit/modify commercial games graphics in NCGR, NCER, NSCR or NANR format???
 

Mbmax

Homebrew addicted
Member
Joined
Nov 7, 2006
Messages
2,275
Trophies
1
Website
Visit site
XP
438
Country
Sorry for the stupid question but i never used a SDK.
Does any part of this release allow to edit/modify commercial games graphics in NCGR, NCER, NSCR or NANR format???
Not at all.
Maybe take a look at this tool : http://filetrip.net/file.php?id=23649

@pate : if you have any contact with romman or some coder at SC team please give them this link : http://forum.superca...=8384&pid=68351
I think they should really consider to make an unbricker so every coders/beta testers feel secure to mess with this last sdk. ;)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
    rqkaiju2 @ rqkaiju2: i like physical media because it actually feels like you own it. thats why i plan on burning...