Hacking Official [Release] CakesFW

seijinshu

...
Member
Joined
Jan 6, 2016
Messages
483
Trophies
0
Location
...
XP
238
Country
United States
Does this contain reboot patches that allow both smash and GBA games without disabling/re-enabling the patch?
EDIT: NVM, you still can't play GBA games yet :(
 
Last edited by seijinshu,

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
Now that it's possible to natively patch home menu to region free, do you think this is a feature that could be implemented in Cakes in the future?

Garbl. I'm excited about getting the new patch format working for this stuff. See the wip branch.
Does this contain reboot patches that allow both smash and GBA games without disabling/re-enabling the patch?
EDIT: NVM, you still can't play GBA games yet :(
If you'd like to port AuReiNAND's patches, go ahead. (It's really easy and I'd help you if you're interested. Just come to #Cakey or something). I'm just not interested yet since they don't support loading a patched AGB_FIRM and I'm currently doing other stuff.
 

Krude

Well-Known Member
Member
Joined
May 18, 2013
Messages
344
Trophies
0
XP
1,198
Country
Gambia, The
I made the mistake of immediately setting up A9LH on a new N3DS without going through CFW except for the sole purpose of setting um a emuNAND (using the old ReiNand 2.1 for quick 9.2 support). I threw Cakes at the finished thing and was momentarily terrified when i couldn't boot firmware due to lack of decryption.

Any word on when firmware decryption from A9LH will be possible? If we need to update the launched FIRM in the future, we'd be stuck with reflashing a pre-A9LH sysNAND and decrypting the new one that way first.
Or are there technical issues that prevent decryption from a A9LH environment?
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
I made the mistake of immediately setting up A9LH on a new N3DS without going through CFW except for the sole purpose of setting um a emuNAND (using the old ReiNand 2.1 for quick 9.2 support). I threw Cakes at the finished thing and was momentarily terrified when i couldn't boot firmware due to lack of decryption.

Any word on when firmware decryption from A9LH will be possible? If we need to update the launched FIRM in the future, we'd be stuck with reflashing a pre-A9LH sysNAND and decrypting the new one that way first.
Or are there technical issues that prevent decryption from a A9LH environment?

Get a firmkey(n3ds).bin from anywhere.
I haven't looked into it but it shouldn't be very hard to fix, just tedious.
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
810
Trophies
0
Age
35
XP
1,982
Country
Gambia, The
@mid-kid Why you don't just allow loading a decrypted firmware.bin? It would make things much easier. I don't see any benefits in decrypting it on boot time. you even need to have more files than necessary.

I would have patched it myself but it's not that important to me.

The code is already there. Just using a method smth like that: if exist firmware_dec.bin then load this to ram (and patch it) and execute.
 
Last edited by GothicIII,

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
@mid-kid Why you don't just allow loading a decrypted firmware.bin? It would make things much easier. I don't see any benefits in it. you even need to have more files than necessary.

I would have patched it myself but it's not that important to me.

Because when I was young, there weren't such things as decrypted firmwares going around everywhere, and rxTools used an encrypted one, so I did the same. Then Rei came around, and everything changed when the fire nation attacked.
On a more serious note, it's way easier to get encrypted firmwares from update dumps/straight from the CDN than to go through all the process to decrypt them. Sure right now you might have two or three firmwares because they're redistributed decrypted by other CFWs, but what about all the others which I test from time to time?
I wouldn't mind supporting loading decrypted firms too, though, but that's not on my to-do list as I have no gain from doing so.
 
  • Like
Reactions: Gray_Jack

seijinshu

...
Member
Joined
Jan 6, 2016
Messages
483
Trophies
0
Location
...
XP
238
Country
United States
Garbl. I'm excited about getting the new patch format working for this stuff. See the wip branch.

If you'd like to port AuReiNAND's patches, go ahead. (It's really easy and I'd help you if you're interested. Just come to #Cakey or something). I'm just not interested yet since they don't support loading a patched AGB_FIRM and I'm currently doing other stuff.
Might stick with AuReiNand. I do like the idea of messing with that, but I will need time, my spring break is almost over and I am super busy.
 

3xkrazy

Well-Known Member
Member
Joined
Jun 2, 2013
Messages
299
Trophies
0
XP
269
Country
United States
Now that it's possible to natively patch home menu to region free, do you think this is a feature that could be implemented in Cakes in the future?

Garbl. I'm excited about getting the new patch format working for this stuff. See the wip branch.

@mid-kid This sounds great. Also, have you considered putting a language emulation and clock speed(for n3ds) cake on your to-do list down the road? It would be nice to ditch BootNTR since it's closed source. :creep:
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
@mid-kid This sounds great. Also, have you considered putting a language emulation and clock speed(for n3ds) cake on your to-do list down the road? It would be nice to ditch BootNTR since it's closed source. :creep:
Pff, no to both. Maybe someday it can be added to DHS, but currently I won't even add them to my to-do.
 

Conan179

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
142
Trophies
0
Age
34
XP
799
Country
Germany
[email protected]
i becom a error massage when i boot cakes over arm9loaderhax

"Failed to decrypt the CETK
Please make sure the CETK is Right"

wrote on the Top screen

"Mounted SD Card
Faild to load the config.
Starting from scratch.
Loading NATIVE_FIRM...
Loaded FIRM
Failed to load FIRM key,
Will try to create it...
Loaded CETK
Failed to decrypt the CETK"

wrote on the touch screen.
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
[email protected]
i becom a error massage when i boot cakes over arm9loaderhax

"Failed to decrypt the CETK
Please make sure the CETK is Right"

wrote on the Top screen

"Mounted SD Card
Faild to load the config.
Starting from scratch.
Loading NATIVE_FIRM...
Loaded FIRM
Failed to load FIRM key,
Will try to create it...
Loaded CETK
Failed to decrypt the CETK"

wrote on the touch screen.

9066fb65fcbf4293acadfa8a60239880.png

Read the FAQ.
 

3xkrazy

Well-Known Member
Member
Joined
Jun 2, 2013
Messages
299
Trophies
0
XP
269
Country
United States
[email protected]
i becom a error massage when i boot cakes over arm9loaderhax

"Failed to decrypt the CETK
Please make sure the CETK is Right"

wrote on the Top screen

"Mounted SD Card
Faild to load the config.
Starting from scratch.
Loading NATIVE_FIRM...
Loaded FIRM
Failed to load FIRM key,
Will try to create it...
Loaded CETK
Failed to decrypt the CETK"

wrote on the touch screen.

You need the firmkey.bin file to decrypt CETK, which you should be able to obtain by running CakesFW pre-a9lh or finding it on the internet. I wonder if it would be possible to obtain by loading CakesFW through a9lh, without emunand enabled, then loading Cakes again through *hax and hbl. I'll try this out later.

*Edit: nvm, it won't work. It's a catch-22 issue
 
Last edited by 3xkrazy,

mariogamer

Well-Known Member
Member
Joined
Aug 12, 2015
Messages
1,258
Trophies
0
Age
27
XP
779
Country
Canada
Anyone ad a prebuilt armips for linux? I cannot build it by myself....

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

Oh no it's good
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
@mid-kid all your answers are neither funny nor really helpful. If you're not in the mood to help don't answer.

We might have a different sense of humor (I'm a bit cynical, I'm aware of that), but how are they not helpful? I just pointed him at a place where he can get the right answer AND more answers for possible future questions. As for the answer I gave you, it's the typical "too lazy" answer from any dev on the internet who's not interested in doing whatever you request, except I also explained the reason behind the status quo pretty clearly, which is what you asked. What did you want for an answer? "Yes, I'll support this because you don't feel like getting a proper firmware.bin"? If you can clearly point out what was missing from my answer, I'll be grateful because it'll actually improve my answers.
In any case, I'm never in the mood for answering stupid/why don't you do x to please me questions, which is why I tend to answer them with a bit of humor. It gets boring after a while otherwise.
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
810
Trophies
0
Age
35
XP
1,982
Country
Gambia, The
@mid-kid I'm just reading random stuff here, and I had the impression that you're not very helpful. If it's not the case I'm sorry. I know how it is to read the same questions all over again. I'm a guy who gives long explained answers and I copy/paste stuff if I already answered it but most of the time I'm ignoring those.

Btw you helped me a bit and I appreciate it. I also investigated 'my' problem a bit further and I think you've got maybe a bug in the code. If I have more time I will look into it. Because from my part I checked every file and they seem to be all valid.
For a N3DS it's not possible to use firmware.bin prior 9.6fw. I think it uses the wrong decryption keys (does it even try to use the console keys ?) or wrongly checks for a valid firmware.bin. I checked the cetk file and rebuild it from the cia (offset 0x2040) and it's the same as the newest one on NUS. I deleted the firmkey.bin since it should be possible to generate one from the cetk+firmware.bin and cakesfw fails to do it. Tells that the cetk Cannot be decrypted if slot0x11key96.bin is present or failed to decrypt arm9 if the file is missing.

I wanted to dump the slotxxxxxxkeys myself but 3dsbrew said its not possible to read the keys software wise.
I dumped a 10.5 firmware.bin with the same method I did for the 9.0firm and it worked no problem.(ctrtool with meta arg.)
The cia I used to dump the firmware.bin is the same I used for the downgrade so this is valid too.
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
24
XP
1,153
Country
I had the good hidden rest ask from the Q & A does not actually seen.
Uhm, what? Can somebody translate?

Btw you helped me a bit and I appreciate it. I also investigated 'my' problem a bit further and I think you've got maybe a bug in the code. If I have more time I will look into it. Because from my part I checked every file and they seem to be all valid.
For a N3DS it's not possible to use firmware.bin prior 9.6fw. I think it uses the wrong decryption keys (does it even try to use the console keys ?) or wrongly checks for a valid firmware.bin. I checked the cetk file and rebuild it from the cia (offset 0x2040) and it's the same as the newest one on NUS. I deleted the firmkey.bin since it should be possible to generate one from the cetk+firmware.bin and cakesfw fails to do it. Tells that the cetk Cannot be decrypted if slot0x11key96.bin is present or failed to decrypt arm9 if the file is missing.

I wanted to dump the slotxxxxxxkeys myself but 3dsbrew said its not possible to read the keys software wise.
I dumped a 10.5 firmware.bin with the same method I did for the 9.0firm and it worked no problem.(ctrtool with meta arg.)
The cia I used to dump the firmware.bin is the same I used for the downgrade so this is valid too.

Hm. I don't own an n3ds so I can't reproduce, though I've added checks around it so the key isn't being loaded when decrypting any firm lower than 9.6. Try removing the key from your SD card, and try again.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Hope they made lots of spaget