Hacking [IDEA] Launch a minimal CFW (like SaltFW) if no arm9loaderhax binary is found on SD

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
can't you just adjust the ncsd partition table to take up a small section of the twl partition, iirc the partition table has the offset and size so you could just shrink the twl partition and create a small void for housing the payload, although i have always liked the idea of the extra 700mb on some n3ds consoles being put to use, but i guess all these things are taking the system further and further from the original stock setup
 
Last edited by gamesquest1,

Pokéidiot

Well-Known Member
OP
Member
Joined
Dec 6, 2015
Messages
244
Trophies
0
Location
\n?
XP
209
Country
Brazil
Well, I will try ShadowNAND's solution to test my stage2 mod myself. Some users are saying that it's better to load a binary from CTRNAND. For those, I have good news: I created a folder on my sysNAND CTRNAND partition and nothing bad happened. Space will not be problem since ... a9lh payloads are small enough.
 
  • Like
Reactions: gamesquest1

xXDungeon_CrawlerXx

Well-Known Member
Member
Joined
Jul 29, 2015
Messages
2,092
Trophies
1
Age
28
Location
Liverpool
XP
3,724
Country
Well, I will try ShadowNAND's solution to test my stage2 mod myself. Some users are saying that it's better to load a binary from CTRNAND. For those, I have good news: I created a folder on my sysNAND CTRNAND partition and nothing bad happened. Space will not be problem since ... a9lh payloads are small enough.
it isn't a problem to add custom files into CTRNAND. Just added a txt called "HowToTrollNintendo.txt" some months ago and nothing bad happened.
 
  • Like
Reactions: Luigi64

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
Well, I will try ShadowNAND's solution to test my stage2 mod myself. Some users are saying that it's better to load a binary from CTRNAND. For those, I have good news: I created a folder on my sysNAND CTRNAND partition and nothing bad happened. Space will not be problem since ... a9lh payloads are small enough.

It's not space that others are worried about, it's fragmentation, apparently (you'd think FIRM would be intelligent enough to deal with it, but I guess this is Nintendo code we're dealing with).
 

Pokéidiot

Well-Known Member
OP
Member
Joined
Dec 6, 2015
Messages
244
Trophies
0
Location
\n?
XP
209
Country
Brazil
Sacrifice a bit of TWLNAND space to put payloads in it. You don't need all dat space to get DS games running.
 

GerbilSoft

Well-Known Member
Member
Joined
Mar 8, 2012
Messages
2,395
Trophies
2
Age
35
XP
4,268
Country
United States
can't you just adjust the ncsd partition table to take up a small section of the twl partition
The NCSD header (including the encrypted TWL MBR) is signed. Any modifications would cause a Boot ROM error.

(Sidenote: The O3DS NCSD injection used for 2.1 downgrades on N3DS work because it's using a valid NCSD header from an O3DS, so the signature passes verification.)
 

Pokéidiot

Well-Known Member
OP
Member
Joined
Dec 6, 2015
Messages
244
Trophies
0
Location
\n?
XP
209
Country
Brazil
The NCSD header (including the encrypted TWL MBR) is signed. Any modifications would cause a Boot ROM error.

(Sidenote: The O3DS NCSD injection used for 2.1 downgrades on N3DS work because it's using a valid NCSD header from an O3DS, so the signature passes verification.)
For patching signature checks at a level like that, we need a bootrom exploit.
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
yeah i figured with it being on a9lh sig checks would be bypassed anyway, or are those verified prior to a9lh kicking in?

if thats not possible i guess sticking it inside twl/ctr FS will probs be for the best then
 
Last edited by gamesquest1,

Pokéidiot

Well-Known Member
OP
Member
Joined
Dec 6, 2015
Messages
244
Trophies
0
Location
\n?
XP
209
Country
Brazil
yeah i figured with it being on a9lh sig checks would be bypassed anyway, or are those verified prior to a9lh kicking in?

if thats not possible i guess sticking it inside twl/ctr FS will probs be for the best then
A9LH isn't a bootrom exploit. A9LH is a pre-kernel (firmware loader) exploit.

--------------------- MERGED ---------------------------

I'm going to redo my A9LH mod, but I fell that I will need to borrow lots of code.
 

Jawertae

Active Member
Newcomer
Joined
Sep 17, 2009
Messages
32
Trophies
0
XP
203
Country
United States
It's not space that others are worried about, it's fragmentation, apparently (you'd think FIRM would be intelligent enough to deal with it, but I guess this is Nintendo code we're dealing with).

If there is one thing nintendo strives for, its stability.
 

Shadowhand

Slim, Alternative Dev.
Member
Joined
Feb 27, 2016
Messages
522
Trophies
0
Age
31
XP
1,958
Country
United Kingdom
If that's out, then could we not examine how much unused space there is in a typical NAND (being out of the boundaries of CTRNAND's free space/max size, of course) and install our own small FAT12 or FAT16 partition somewhere? If a common place could be agreed on, then I'd think support for it could easily be added to tools like GM9.
That is technically possible, but (don't quote me on this) some NAND types don't have extra available space on n3ds, and have no space on o3ds at all. I really find that it's safer to have the CFW in stage2 rather than somewhere else on the NAND.
 

Zan'

2F88744FEED717856386400A44BBA4B9CA62E76A32C715D4F
Member
Joined
Oct 8, 2015
Messages
387
Trophies
0
Age
32
XP
271
Country
That is technically possible, but (don't quote me on this) some NAND types don't have extra available space on n3ds, and have no space on o3ds at all. I really find that it's safer to have the CFW in stage2 rather than somewhere else on the NAND.
Even the snallest o3DS chip (943MB) has about 1MB spare.
The problem is, it wont be that easy to simply create a new partition in the end because it msy possibly kill your data.
However you could use a NAND backup and put a partition you want properly aligned in the end and reflash that NAND backup, which would basically give you exactly that.
 

Shadowhand

Slim, Alternative Dev.
Member
Joined
Feb 27, 2016
Messages
522
Trophies
0
Age
31
XP
1,958
Country
United Kingdom
Even the snallest o3DS chip (943MB) has about 1MB spare.
The problem is, it wont be that easy to simply create a new partition in the end because it msy possibly kill your data.
However you could use a NAND backup and put a partition you want properly aligned in the end and reflash that NAND backup, which would basically give you exactly that.
That's still way too risky and there won't be a way to recover from brick without hardmod.
 

zekepliskin

Well-Known Member
Member
Joined
Oct 13, 2015
Messages
251
Trophies
0
Age
40
Location
Hampshire UK
XP
155
Country
This is an interesting idea. I was thinking it might be nice to have something more basic though, i.e. if an SD card isn't inserted rather than black screen and console shutting down as it does now, how about a simple white text on black background message showing on the top screen :-

"Arm9LoaderHax.bin Not Found (No SD Card Inserted). Please Insert SD Card Containing Payload And Try Again."

Then after ten seconds or so it times out and shuts the console down.
 

Shadowhand

Slim, Alternative Dev.
Member
Joined
Feb 27, 2016
Messages
522
Trophies
0
Age
31
XP
1,958
Country
United Kingdom
This is an interesting idea. I was thinking it might be nice to have something more basic though, i.e. if an SD card isn't inserted rather than black screen and console shutting down as it does now, how about a simple white text on black background message showing on the top screen :-

"Arm9LoaderHax.bin Not Found (No SD Card Inserted). Please Insert SD Card Containing Payload And Try Again."

Then after ten seconds or so it times out and shuts the console down.
*cough*
 
  • Like
Reactions: The Catboy

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1