Hacking RELEASE How to build clean BOOT0/1 files

RealYoti

Well-Known Member
OP
Member
Joined
Aug 2, 2012
Messages
207
Trophies
1
XP
1,634
Country
Russia
What you need:
  • Firmware dump in a form of multiple .nca and .cnmt.nca files
  • The latest hactool utility: use autobuilds or my fork (bundled)
  • Dump prod.keys from the target firmware or newer w/ Lockpick

How to use:
  • Unpack firmware files to some dir (I will call it "working dir")
  • Put content of the reBoot_20220506 archive to the working dir
  • Put the prod.keys file to the working dir
  • Run the recreate_boot_by_yoti.bat file

In the end
you will have four new files: BOOT0_ERISTA, BOOT0_MARIKO, BOOT1_ERISTA and BOOT1_MARIKO. Get two of this for your Switch and rename them to BOOT0 and BOOT1. It's illegal to distribute this files here so feel free to make your own!​

Caution:
  • DO YOUR OWN BACKUP FIRST AND KEEP THEM IN A SAFE PLACE!!!
  • Do not use this script to create boots from firmwares prior to 6.2.0
  • This new boots will be with disabled AutoRCM ('cause they are clean)

Some examples:
All good (as of v20210719 and 12.1.0 OFW):

Code:
Recreate boot partitions script by Yoti (v20210719)
Wait...
1_66fc6e8b60142f07d33da61ff37cc9d6 [Normal]
2_753020bff878f29b66fcf840b96430b3 [SafeMode]
Done!!!

All good (as of v20210418 and 12.1.0 OFW):
Code:
Recreate boot partitions script by Yoti (v20210418)
Wait...
1_66fc6e8b60142f07d33da61ff37cc9d6 [FAT32 Normal]
2_753020bff878f29b66fcf840b96430b3 [FAT32 SafeMode]
3_25bb90ed24664b791d0e2cc1b707ea30 [exFAT Normal]
4_2e386f2d8ab6bbac6d1057d0b52746eb [exFAT SafeMode]
Done!!!

Missing hactool or prod.keys or firmware files:
Code:
Recreate boot partitions script by Yoti (v20210418)
Done!!!

Wrong (outdated) prod.keys file:
Code:
Recreate boot partitions script by Yoti (v20210418)
Wait...
Error: section 0 is corrupted!
Error: section 0 is corrupted!
Error: section 1 is corrupted!
<...>
Done!!!
 

Attachments

  • reBoot_20210418.7z
    512.5 KB · Views: 225
  • reBoot_20210719.7z
    544.4 KB · Views: 263
  • reBoot_20220506.7z
    544.4 KB · Views: 170
Last edited by RealYoti, , Reason: Thanks to SwitchBrew Wiki!

yyoossk

Well-Known Member
Member
Joined
Oct 18, 2017
Messages
193
Trophies
0
XP
2,212
Country
Japan
Exception EFOpenError in module injector.exe at 000AD0E3.
Cannot open file "D:\reBoot_20210418\BOOT0_ERISTA"

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

Recreate boot partitions script by Yoti (v20210418)
Done!!!


But nothing happens
12.1.0
is this real?
or fake?

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

what is keys.prod?
prod.keys?


There are too many unclear points
useless
 

RealYoti

Well-Known Member
OP
Member
Joined
Aug 2, 2012
Messages
207
Trophies
1
XP
1,634
Country
Russia
But nothing happens
You are doing something wrong.

is this real?
Yes for sure. Look at my screenshot.
reboot.png

what is keys.prod?
Fixed, thanks!
 

yyoossk

Well-Known Member
Member
Joined
Oct 18, 2017
Messages
193
Trophies
0
XP
2,212
Country
Japan
12.1.0
Exception EFOpenError in module injector.exe at 000AD0E3.
Cannot open file "D:\reBoot_20210418\BOOT0_ERISTA"
 

RealYoti

Well-Known Member
OP
Member
Joined
Aug 2, 2012
Messages
207
Trophies
1
XP
1,634
Country
Russia
@yyoossk BOOT0_ERISTA is made by copying BOOT file from the script archive. I will try to do it another way. Will provide an update after two or three days.
 

RealYoti

Well-Known Member
OP
Member
Joined
Aug 2, 2012
Messages
207
Trophies
1
XP
1,634
Country
Russia
@deejay87 open Windows command prompt, type "find /?" (without quotes), press Enter and show me result. I think you have some development software (like devkitPro Updater) that breaks Windows command line utilites. You must edit Windows environment variable named "Path" and put "devkitPro/msys2" lower than "C:\Windows" and "C:\Windows\system32".

@hausa51 great! You may also check your files with mine via MD5 hashes:
BOOT0_ERISTA 59dd8129de0c7f9c239d0111ae3ccd99
BOOT0_MARIKO a6b7442c0632d106094295f122252cd1
BOOT1_ERISTA 49c68f846b024a1cc57d916e9cc83dd9
BOOT1_MARIKO 2406cfa3162dad2c6620d93cb57726dc
 
Last edited by RealYoti,

hausa51

Well-Known Member
Newcomer
Joined
Jan 18, 2016
Messages
83
Trophies
0
Age
40
XP
488
Country
@hausa51 great! You may also check your files with mine via MD5 hashes:
BOOT0_ERISTA 59dd8129de0c7f9c239d0111ae3ccd99
BOOT0_MARIKO a6b7442c0632d106094295f122252cd1
BOOT1_ERISTA 49c68f846b024a1cc57d916e9cc83dd9
BOOT1_MARIKO 2406cfa3162dad2c6620d93cb57726dc

All files have identical MD5 hashes... :unsure:

reboot1.jpg
 
Last edited by hausa51,

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
496
Trophies
1
Age
42
Location
Spain
XP
1,111
Country
Spain
Solved.

I had to place the prod.keys file in my $HOME/.switch directory and delete the "- k prod.keys" from the bat
 

Attachments

  • reBoot_20210720.rar
    621.1 KB · Views: 134
  • Like
Reactions: RealYoti
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
    BentlyMods @ BentlyMods: My fav actvity is: