Hacking Manually updating romfs.bin for backups

GOTBLZ

Member
OP
Newcomer
Joined
Jul 2, 2018
Messages
13
Trophies
0
XP
153
Country
Australia
Hey guys,

I just worked out how to apply update nca files to original cartridge ncas. I'll use Kirby Star Allies as an example.

I used XCI-Explorer to pull the largest .nca out of the games .xci file (which I named kirbystock.nca), and then had the update .nca (which was named kirbyupdate.nca) file too and used hactool to dump Section1 from them both, which gave me a romfs.bin with a file size of >3GB.

So with hactool, your command would be something like

hactool.exe -k keys.dat --titlekey=3676***8E3725A*****837AC6F1***303 --basenca="kirbystock.nca" --section1="atmosphere\titles\01007E3006DDA000\romfs.bin" --exefsdir="atmosphere\titles\01007E3006DDA000\exefs" "kirbyupdate.nca"

I blanked out some of the update's title key, as i'm not sure if it's allowed to be posted here, but you can find it on Google i'm sure, or at least the way to find it yourself. So titlekey=(the title key that's used for the update.nca), you'll be then left with a folder ready to copy straight to your Switch, of course if your swapping it over another title, you need to edit the main.npdm to change the title ID.
 

Wiiunator

Well-Known Member
Member
Joined
Nov 13, 2015
Messages
319
Trophies
0
XP
846
Country
Australia
be interested to see if we can somehow rebuild these files back into XCI in order to load them with SX OS. There are some research made in that regard in the HACBuild thread
 

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,268
Country
United States
Hey guys,

I just worked out how to apply update nca files to original cartridge ncas. I'll use Kirby Star Allies as an example.

I used XCI-Explorer to pull the largest .nca out of the games .xci file (which I named kirbystock.nca), and then had the update .nca (which was named kirbyupdate.nca) file too and used hactool to dump Section1 from them both, which gave me a romfs.bin with a file size of >3GB.

So with hactool, your command would be something like

hactool.exe -k keys.dat --titlekey=3676***8E3725A*****837AC6F1***303 --basenca="kirbystock.nca" --section1="atmosphere\titles\01007E3006DDA000\romfs.bin" --exefsdir="atmosphere\titles\01007E3006DDA000\exefs" "kirbyupdate.nca"

I blanked out some of the update's title key, as i'm not sure if it's allowed to be posted here, but you can find it on Google i'm sure, or at least the way to find it yourself. So titlekey=(the title key that's used for the update.nca), you'll be then left with a folder ready to copy straight to your Switch, of course if your swapping it over another title, you need to edit the main.npdm to change the title ID.
OMG! So, it does work! Now, how did you get the key for the update? can i get a key, how does this works.
 

GOTBLZ

Member
OP
Newcomer
Joined
Jul 2, 2018
Messages
13
Trophies
0
XP
153
Country
Australia
Is the romfs.bin a folder now containing the update too or is it still a single file?

No, romfs.bin is still a file, for some reason hactool is able to join the two .ncas into one romfs.bin. Which is funny, cause I couldn't dump anything but the exefs files from the update .nca, it'd ignore any attempt to extract a romfs.bin from it, so I attempted extracting just sector1 as thats the romfs.bin anyway, and it extracted them both merged into one single file, which loads up perfectly, my main screen on Kirby says 2.0.0, and then I get the message to say about the new characters in the update.

The titlekey is linked to the update itself, its a damn pain to extract, but I bet if you Google something like ( kirby star allies "titlekey" ) no doubt someone has leaked it somewhere in the internet...

*Oh, and I don't see why this wouldn't work with DLC i'd image you could get it into a nca format pretty easily, and from there, you just need to follow those steps and I reckon it'd work*
 
Last edited by GOTBLZ,

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,268
Country
United States
Hey guys,

I just worked out how to apply update nca files to original cartridge ncas. I'll use Kirby Star Allies as an example.

I used XCI-Explorer to pull the largest .nca out of the games .xci file (which I named kirbystock.nca), and then had the update .nca (which was named kirbyupdate.nca) file too and used hactool to dump Section1 from them both, which gave me a romfs.bin with a file size of >3GB.

So with hactool, your command would be something like

hactool.exe -k keys.dat --titlekey=3676***8E3725A*****837AC6F1***303 --basenca="kirbystock.nca" --section1="atmosphere\titles\01007E3006DDA000\romfs.bin" --exefsdir="atmosphere\titles\01007E3006DDA000\exefs" "kirbyupdate.nca"

I blanked out some of the update's title key, as i'm not sure if it's allowed to be posted here, but you can find it on Google i'm sure, or at least the way to find it yourself. So titlekey=(the title key that's used for the update.nca), you'll be then left with a folder ready to copy straight to your Switch, of course if your swapping it over another title, you need to edit the main.npdm to change the title ID.


Everything cool and nice but this is what I get when I try that.


D:\Desktop\SWITCH\hactool>hactool.exe -k keys.dat --titlekey=7FD54*****4038AC2B39****B887E4 --basenca="stock.nca" --section1="atmosphere\titles\01007AD00013E000\romfs.bin" --exefsdir="atmosphere\titles\01007AD00013E000\exefs" "update.nca"
Invalid NCA header! Are keys correct?
Done!
 
  • Like
Reactions: Zaybokk

Type_O_Dev

Developer
Developer
Joined
Dec 12, 2017
Messages
683
Trophies
0
XP
1,469
Country
United States
Everything cool and nice but this is what I get when I try that.


D:\Desktop\SWITCH\hactool>hactool.exe -k keys.dat --titlekey=7FD54*****4038AC2B39****B887E4 --basenca="stock.nca" --section1="atmosphere\titles\01007AD00013E000\romfs.bin" --exefsdir="atmosphere\titles\01007AD00013E000\exefs" "update.nca"
Invalid NCA header! Are keys correct?
Done!
the problem i had was spaces in source folder names , remove them to run properly
 
  • Like
Reactions: Zaybokk

GOTBLZ

Member
OP
Newcomer
Joined
Jul 2, 2018
Messages
13
Trophies
0
XP
153
Country
Australia
Everything cool and nice but this is what I get when I try that.


D:\Desktop\SWITCH\hactool>hactool.exe -k keys.dat --titlekey=7FD54*****4038AC2B39****B887E4 --basenca="stock.nca" --section1="atmosphere\titles\01007AD00013E000\romfs.bin" --exefsdir="atmosphere\titles\01007AD00013E000\exefs" "update.nca"
Invalid NCA header! Are keys correct?
Done!


What update are you trying to use?

You don't have to remove spaces if you have any, just be sure to put a " after the = and " at the end of that variable, so ex, --basenca="kirby's stock file.nca"
 
Last edited by GOTBLZ,
  • Like
Reactions: Zaybokk

GOTBLZ

Member
OP
Newcomer
Joined
Jul 2, 2018
Messages
13
Trophies
0
XP
153
Country
Australia
I think you've got the right key, but maybe because its hex it might need to be backwards, i'll pm you what I get, and you can see if it works
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: The cybertruck is a death trap.