Hacking RELEASE How to build clean BOOT0/1 files

RealYoti

Well-Known Member
OP
Member
Joined
Aug 2, 2012
Messages
243
Trophies
1
XP
1,879
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: 296
  • reBoot_20210719.7z
    544.4 KB · Views: 320
  • reBoot_20220506.7z
    544.4 KB · Views: 255
Last edited by RealYoti, , Reason: Thanks to SwitchBrew Wiki!

yyoossk

Well-Known Member
Member
Joined
Oct 18, 2017
Messages
200
Trophies
0
XP
2,418
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
243
Trophies
1
XP
1,879
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
200
Trophies
0
XP
2,418
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
243
Trophies
1
XP
1,879
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
243
Trophies
1
XP
1,879
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
41
XP
514
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
677
Trophies
1
Age
43
Location
Spain
XP
1,597
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: 169
  • Like
Reactions: RealYoti

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: