Hacking Official [Release] CakesFW

The Catboy

GBAtemp Official Catboy™: Boywife
Member
Joined
Sep 13, 2009
Messages
27,951
Trophies
4
Location
Making a non-binary fuss
XP
39,374
Country
Antarctica
i don't know what i need to do now, i cant hardmod for a dowgrade right?
You can only downgrade if you have a NAND backup from before 11.3
11.3 patched out all software downgrades, as well added a NATIVE_FIRM requirement to the homemenu. This basically made hardmod/dsiware downgrade impossible to do.
 

Pedrozun

Member
Newcomer
Joined
Feb 24, 2017
Messages
7
Trophies
0
Age
33
XP
53
Country
Brazil
You can only downgrade if you have a NAND backup from before 11.3
11.3 patched out all software downgrades, as well added a NATIVE_FIRM requirement to the homemenu. This basically made hardmod/dsiware downgrade impossible to do.

When i unlocked my 3ds first time i did a nand backup, now i need to search . thanks

1- Download http://chunk.io/f/014612541fa04235a6f7593c86a4a200.3dsx
2- Rename 014612541fa04235a6f7593c86a4a200.3dsx to Cakes.3dsx and overwrite your Cakes.3dsx on 3ds
3- Launch cakes from Homebrew Launcher

black screen 4evar :/
:(
 
Last edited by Pedrozun,

coldjacket

New Member
Newbie
Joined
Mar 8, 2017
Messages
1
Trophies
0
Age
39
XP
43
Country
United States
I updated to 11.3 and got black screen. I believe I am on arm9loaderhax and was on older version of cakes. I think I replaced all the proper files. Held L to get into CakesFW190 options. Set options Block FIRM..., Survive reboots..., Disable signature checks.

I select Boot CFW and get a black screen.

Bottom screen debug log is

Loaded config file
Loading NATIVE_FIRM. . .
Loaded FIRM
FIRM seems not encrypted
ARM9 FIRM binary seems not encrypted
Fixing arm9 entrypoint. . .
Loading TWL_FIRM. . .
Failed to load FIRM
Loading AGB_FIRM. . .
Failed to load FIRM
Loading cakes
Loaded selected cakes

any help appreciated.

edit: I'm not sure what I was doing wrong. Probably my fault with all the different guides out and not being completely up to date with info but I ended switching to Luma. Replaced the arm9loaderhax.bin with the latest Luma3D github release and it booted into Luma options and then I could boot into 3ds menu and games. Thanks to all the devs always.
 
Last edited by coldjacket,

The Catboy

GBAtemp Official Catboy™: Boywife
Member
Joined
Sep 13, 2009
Messages
27,951
Trophies
4
Location
Making a non-binary fuss
XP
39,374
Country
Antarctica

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,696
Trophies
1
Age
28
Location
Imola
XP
6,916
Country
Italy
@Wolfvak
So it appears your 3ds_injector actually doesn't work on 11.3. I made a mistake during my testing and completely overlooked this issue until I did further testing.
The version I built into my pack does work - at least the regionfree patch!

Not sure if I just took the 11.1/2 version and hacked the recipe to declare it as 11.3-kernel compatible (probably yes since I also already changed /injector to /cakes/injector) or I actually redownloaded the sources, but I'm running 11.3 and can run nico nico douga :)

--

Double checked, yep I used his 11.1 version and added 11.3 support, "Jerry-Shaw" on github actually posted one
 
Last edited by Ryccardo,

The Catboy

GBAtemp Official Catboy™: Boywife
Member
Joined
Sep 13, 2009
Messages
27,951
Trophies
4
Location
Making a non-binary fuss
XP
39,374
Country
Antarctica
The version I built into my pack does work - at least the regionfree patch!

Not sure if I just took the 11.1/2 version and hacked the recipe to declare it as 11.3-kernel compatible (probably yes since I also already changed /injector to /cakes/injector) or I actually redownloaded the sources, but I'm running 11.3 and can run nico nico douga :)

--

Double checked, yep I used his 11.1 version and added 11.3 support, "Jerry-Shaw" on github actually posted one
Tested out out patch and it is indeed working ^_^
It looks like when I was doing my tests, I accidentally booted into the CFW on my CTRNAND instead of CakesFW.
 

JerryShaw

Well-Known Member
Member
Joined
Feb 7, 2017
Messages
127
Trophies
0
Age
38
XP
503
Country
Switzerland
I just made little changes to the fork from @Wolfvak . Thanks to @Wolfvak and @mid-kid . Really need region free. What's more, I moved some paths from the root to cakes folder instead for better controlling.

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

BTW, is there anyone knowing what is "switching out nand header first..." when doing ctrnand transfer to 2.1 on N3DS, since I cannot find the otpless guide now.
One of my friends met this problem, and can do nothing on hacking to A9LH.
 

CrispyCola

zero-two
Member
Joined
Feb 8, 2017
Messages
320
Trophies
0
Location
the stars
XP
261
Country
United States
Quick question, probably already been asked, but if I use an older TWL_FIRM and older AGB_FIRM with a newer NATIVE_FIRM will i brick?


Sent from my iPhone using Tapatalk
 

JerryShaw

Well-Known Member
Member
Joined
Feb 7, 2017
Messages
127
Trophies
0
Age
38
XP
503
Country
Switzerland
Is there anyway for us to get the hash of firm's section[0] of any new firmware.bin? So that we could add new NATIVE_FIRM support ourselves. I tried but failed since I am not good at C anyway.
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
Is there anyway for us to get the hash of firm's section[0] of any new firmware.bin? So that we could add new NATIVE_FIRM support ourselves. I tried but failed since I am not good at C anyway.

The gist of it is: You decrypt the FIRM you downloaded from the CDN (CakesFW gives you a decrypted copy as firmware_unsupported.bin), then you get the first 0x10 bytes of the hash of the first section as according to this, which means bytes 0x50-0x60 in a hex editor.
That's just to make Cakes recognize the FIRM however, you need to adapt one or two more parts of the code that do different things for different versions (most notably in boot_firm()), and port all the patches.
If you need any further help, you're always welcome to ping me on #Cakey on freenode IRC.
 
Last edited by mid-kid,

JerryShaw

Well-Known Member
Member
Joined
Feb 7, 2017
Messages
127
Trophies
0
Age
38
XP
503
Country
Switzerland
The gist of it is: You decrypt the FIRM you downloaded from the CDN (CakesFW gives you a decrypted copy as firmware_unsupported.bin), then you get the first 0x10 bytes of the hash of the first section as according to this, which means bytes 0x50-0x60 in a hex editor.
That's just to make Cakes recognize the FIRM however, you need to adapt one or two more parts of the code that do different things for different versions (most notably in boot_firm()), and port all the patches.
If you need any further help, you're always welcome to ping me on #Cakey on freenode IRC.

Haha, thank you so much. I was stucked here in getting the hash right now. As for following code, I think I could manage to get over it.
Oops... Freenode IRC seems not to be available in my country...
 
Last edited by JerryShaw,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    DinohScene @ DinohScene: when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying