Homebrew R4 Stage2 TWL Flashcart Launcher(and perhaps other cards soon™)....

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
This one was done with minimal changes beyond what was needed to make it boot
so, to make it boot you have to change the memory addresses? I guess the only way then to make it work is manually rewrite the ARM7 ASM to use these new addresses cause if you open this up in IDA the functions are yet again only 14 and its just as broken.
 

Apache Thunder

I have cameras in your head!
OP
Member
Joined
Oct 7, 2007
Messages
4,426
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,790
Country
United States
Yeah that must be it. The arm7 code entry and arm7 ram entry addresses must be changed. If I leave them as is, it will cause an error has occured message. I don't do ASM, so rewriting the asm is definitely not something I can do. :P

oh,and a small correction.i have an r4 i that works on ndsi,ndsl and nds

Ok cool. Try the WoodR4 Launcher on the first post. The one marked under the greed "Confirmed Working" section.
 
Last edited by Apache Thunder,

alex61194

Well-Known Member
Member
Joined
Feb 13, 2016
Messages
633
Trophies
0
Age
29
XP
1,482
Country
Yeah that must be it. The arm7 code entry and arm7 ram entry addresses must be changed. If I leave them as is, it will cause an error has occured message. I don't do ASM, so rewriting the asm is definitely not something I can do. :P



Ok cool. Try the WoodR4 Launcher on the first post. The one marked under the greed "Confirmed Working" section.
any progress on the sdhc r4?
 

alex257

Well-Known Member
Newcomer
Joined
Dec 28, 2015
Messages
85
Trophies
0
Age
24
XP
119
Country
Greece
[QUOTE="
Ok cool. Try the WoodR4 Launcher on the first post. The one marked under the greed "Confirmed Working" section.[/QUOTE]unfortunately it didnt work either.do you need something for me and my card so you can make it work?
 

Apache Thunder

I have cameras in your head!
OP
Member
Joined
Oct 7, 2007
Messages
4,426
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,790
Country
United States
unfortunately it didnt work either.do you need something for me and my card so you can make it work?

What error do you get? If you get the "error has occurred" message, you need to use latest nightly of rxTools. If installing to emunand, you must also install the launcher to sysnand. If using an n3DS, install a prepatched TWL_FIRM to emunand. (prepatched TWL_FIRM not needed on sysnand if using emunand)


so, to make it boot you have to change the memory addresses? I guess the only way then to make it work is manually rewrite the ARM7 ASM to use these new addresses cause if you open this up in IDA the functions are yet again only 14 and its just as broken.
Perhaps rather then trying to rewrite the entire arm7 binary, perhaps some kind of "payload" could be created that reads the arm7 binary, moves it to the correct memory address then jumps to it. That way arm7 binary is in the memory space it was programmed to use. It would help get a LOT of stuff to work too like other flashcarts since this will get around the initial block of TWL_FIRM not allowing the original arm7 memory settings at launch.

I'm not a programmer though. Hoping someone could pickup on that idea to see if it's viable and maybe create a custom arm7 binary that acts as the main binary and simply loads the correct arm7 binary with the code entry/ram entry settings TWL_FIRM didn't initially allow.
 
Last edited by Apache Thunder,

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
I'm not a programmer though. Hoping someone could pickup on that idea to see if it's viable and maybe create a custom arm7 binary that acts as the main binary.
Alright so the area the ARM7 code normally lies in is the Shared IWRAM which I guess the 3ds wont directly load data in, the area you change it to is the Main Memory (as described on this page). I suppose I could write a little stub which moves the code back into that IWRAM and then jumps to it, though I am no ARM7 expert so it probably will take me a little.
 

Nikolay

Well-Known Member
Member
Joined
Mar 19, 2010
Messages
428
Trophies
1
XP
477
Country
United States
Yes, it's an R4i SDHC 3DS
It worked on the 3DS when it was just released ^^
And it still works on my DS lite, so I know the problem isn't the (old) flashcard :)
Then all you need is the patched TWL FIRM from that one site that cannot be named and your flashcart should work again.
 

AboveColin

Well-Known Member
Member
Joined
Jan 22, 2016
Messages
212
Trophies
0
Age
28
XP
107
Country
Netherlands
What error do you get? If you get the "error has occurred" message, you need to use latest nightly of rxTools. If installing to emunand, you must also install the launcher to sysnand. If using an n3DS, install a prepatched TWL_FIRM to emunand. (prepatched TWL_FIRM not needed on sysnand if using emunand).
*cough* *cough* nightly is down *cough* *cough*
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @BakerMan, I have a piano keyboard but I never use it