Hacking Question Switch won't boot after restore nand but can run RCM

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
Greetings,
Just yesterday I would to restore my NAND backup, but I backup BOOT 0/1 and Partitions only,
Then i cannot turn on my switch after restore those, I tried to spend almost 20 hours to solving this problem, of course, I failed.

The firmware version was 6.02 when I did the backup, but the switch's real version should be 7.0,
yes, fuse burnt 8/64, but this not important,

My backup NAND data might be corrupted, because the size of BOOT 1/0 both are 4096 kb, so I am not sure is the Partitions has same problem,
I didn't realize these problems when I restore it,

Now switch won't turn on, it just show the white Nintendo logo 1 sec,
I would to update my switch by ChoiDujour to refresh the system, but not sure how to use ChoiDujour at RCM.

then I referenced a thread by rajkosto, but I cannot get device key and bis key by biskeydump or Lockpick_RCM because the key was corrupted.

Is anyone had same question or have some suggest?:(
 

toxic9

Well-Known Member
Member
Joined
Dec 13, 2016
Messages
819
Trophies
0
Age
44
XP
1,297
Country
Boot 0/1 are 4Mb in size.
They should be OK. but you don't need them without a Nand backup.

And why people love to mess with things they are not familiar with!?

https://github.com/mattytrog/Switchboot_PART_2/blob/master/BOOT_REPAIR_PACKAGE_iha2.7z

1) Unzip file

2) Make folders on SD card like this...

a) Make "backup" folder
b) Go into backup folder and make a BACKUP_1 folder inside of it
c) Go into backup/BACKUP_1 folder and make another folder called BOOTS
d) Drop the included 8.0.1 BOOT0/1 into this BOOTS folder

3) Launch included switchboot with tegraRCMsmash... Go to backup/restore

4) Go to restore

5) go to restore with no size check

6) New boot0/1 will be written...

7) It will take you to RCM menu if you want to enable autoRCM or not... all on screen

8) boot normally.
 
Last edited by toxic9,
  • Like
Reactions: vividiorem

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
thanks, i
Boot 0/1 are 4Mb in size.
They should be OK. but you don't need them without a Nand backup.

And why people love to mess with things they are not familiar with!?


1) Unzip file

2) Make folders on SD card like this...

a) Make "backup" folder
b) Go into backup folder and make a BACKUP_1 folder inside of it
c) Go into backup/BACKUP_1 folder and make another folder called BOOTS
d) Drop the included 8.0.1 BOOT0/1 into this BOOTS folder

3) Launch included switchboot with tegraRCMsmash... Go to backup/restore

4) Go to restore

5) go to restore with no size check

6) New boot0/1 will be written...

7) It will take you to RCM menu if you want to enable autoRCM or not... all on screen

8) boot normally.

Thank you a lot,
it need a password when I unzip this file,
I tried to search it from the explain thread and replay but I didn't find it.
 

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
Boot 0/1 are 4Mb in size.
They should be OK. but you don't need them without a Nand backup.

And why people love to mess with things they are not familiar with!?

1) Unzip file

2) Make folders on SD card like this...

a) Make "backup" folder
b) Go into backup folder and make a BACKUP_1 folder inside of it
c) Go into backup/BACKUP_1 folder and make another folder called BOOTS
d) Drop the included 8.0.1 BOOT0/1 into this BOOTS folder

3) Launch included switchboot with tegraRCMsmash... Go to backup/restore

4) Go to restore

5) go to restore with no size check

6) New boot0/1 will be written...

7) It will take you to RCM menu if you want to enable autoRCM or not... all on screen

8) boot normally.

I restore the new boot,
then its total blue color when I boot normally
 
Last edited by vividiorem,

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,236
Country
Gambia, The
If biskeydump shows corrupted keys and you dont have a working nand backup nor the BIS keys - you are screwed. When you restored your nand you overwrote the section with the console specific bis keys.

Without the correct consolespecific BIS keys you can't run horizon.

I am sorry but atm there is no bringing back the console to life. You can use it as a ubuntu tablet now, though.

EDIT: I am no switch developer I could be wrong. For me I don't get why the bis key dump doesn't work. Are they really saved on the emmc? If yes you are screwed if not you need to find out why biskeydump does not work.

EDIT2: Please somebody confirm/deny.
I read the switchbrew wiki and the github of lockpick. If I understand this correctly all your console unique BIS keys (and other keys) are inside BOOT0 in the keyblob area starting at 0x180000. There is just a problem: They are encrypted and nobody knows the package1 key to decrypt them.
To get the BIS keys there is some other trickery going on and it seems to require a (partly) working system to get those.
 
Last edited by GothicIII,

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
If biskeydump shows corrupted keys and you dont have a working nand backup nor the BIS keys - you are screwed. When you restored your nand you overwrote the section with the console specific bis keys.

Without the correct consolespecific BIS keys you can't run horizon.

I am sorry but atm there is no bringing back the console to life. You can use it as a ubuntu tablet now, though.

EDIT: I am no switch developer I could be wrong. For me I don't get why the bis key dump doesn't work. Are they really saved on the emmc? If yes you are screwed if not you need to find out why biskeydump does not work.

EDIT2: Please somebody confirm/deny.
I read the switchbrew wiki and the github of lockpick. If I understand this correctly all your console unique BIS keys (and other keys) are inside BOOT0 in the keyblob area starting at 0x180000. There is just a problem: They are encrypted and nobody knows the package1 key to decrypt them.
To get the BIS keys there is some other trickery going on and it seems to require a (partly) working system to get those.

Thanks for you replay ,
I tried many way to get the bis key,
Just before I extracted this list, but I never saw the uncorrupted keys,
Could you please tell me is this list looks can be use?
This account a newbie so I cannot update photo, Im not sure if you can see it.


a>

YhwG8gjJ)
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,236
Country
Gambia, The
EDIT: Corrected my information.

ZachyCatGames pointed out that the keys are readonly. You must be able to recreate your BIS-Keys as long there is no hardware error involved.
Look for bis_key_00 and it is everything you need to proceed.

The bis keys are needed to decrypt/encrypt your emmc partition(s).
If you have them you can recreate a new nand. But even if you have them you need PRODINFO partition because there is your unique console certificate. If it is missing even if you recreate a nand it won't boot past the nintendo logo.
To see if PRODINFO is intact you need
-hacdiskmount
-the keyfile you made a screenshot of
-bis key 0 crypt+tweak (which is derived of bis_key_00)

You load up hacdiskmount and point it to your nand backup. If it can't read any partitions or crashes etc. then this will be a problem and the cause of your brick.

Before you ask: No it is not possible to use a 2nd switch to restore the brick.
 
Last edited by GothicIII,

ZachyCatGames

Well-Known Member
Member
Joined
Jun 19, 2018
Messages
3,398
Trophies
1
Location
Hell
XP
4,209
Country
United States
If biskeydump shows corrupted keys and you dont have a working nand backup nor the BIS keys - you are screwed. When you restored your nand you overwrote the section with the console specific bis keys.

Without the correct consolespecific BIS keys you can't run horizon.

I am sorry but atm there is no bringing back the console to life. You can use it as a ubuntu tablet now, though.

EDIT: I am no switch developer I could be wrong. For me I don't get why the bis key dump doesn't work. Are they really saved on the emmc? If yes you are screwed if not you need to find out why biskeydump does not work.

EDIT2: Please somebody confirm/deny.
I read the switchbrew wiki and the github of lockpick. If I understand this correctly all your console unique BIS keys (and other keys) are inside BOOT0 in the keyblob area starting at 0x180000. There is just a problem: They are encrypted and nobody knows the package1 key to decrypt them.
To get the BIS keys there is some other trickery going on and it seems to require a (partly) working system to get those.
You’re wrong :P. BIS keys are generated using your device key, which is generated using your TSEC key and Secureboot key, and both of those are read only. You can recover from ANY software brick as long as you have a copy of your prodinfo ;)
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,236
Country
Gambia, The
You’re wrong :P. BIS keys are generated using your device key, which is generated using your TSEC key and Secureboot key, and both of those are read only. You can recover from ANY software brick as long as you have a copy of your prodinfo ;)

So this is good news for him. I am not that deep into the scene so I didn't know. Thanks for clearing this up!
 
  • Like
Reactions: ZachyCatGames

NoNAND

Give me back my legions!
Member
Joined
Aug 22, 2015
Messages
2,274
Trophies
1
Location
Somewhere
XP
5,064
Country
Albania
So it appears that the prodinfo partition is crucial to NAND decryption as ZachyCatGames implied above.
Here's hoping his PRODINFO partition is left intact and undamaged so that he nay unbrick his switch somehow if possible.
 

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
EDIT: Corrected my information.

ZachyCatGames pointed out that the keys are readonly. You must be able to recreate your BIS-Keys as long there is no hardware error involved.
Look for bis_key_00 and it is everything you need to proceed.

The bis keys are needed to decrypt/encrypt your emmc partition(s).
If you have them you can recreate a new nand. But even if you have them you need PRODINFO partition because there is your unique console certificate. If it is missing even if you recreate a nand it won't boot past the nintendo logo.
To see if PRODINFO is intact you need
-hacdiskmount
-the keyfile you made a screenshot of
-bis key 0 crypt+tweak (which is derived of bis_key_00)

You load up hacdiskmount and point it to your nand backup. If it can't read any partitions or crashes etc. then this will be a problem and the cause of your brick.

Before you ask: No it is not possible to use a 2nd switch to restore the brick.

Thanks everyone who has seen this thread,
your replay was exciting,
but......................The keyfile looks doesn't have the keydate for key 0 tweak,
because its always notice me the keyblob 012345 was corrupt though it be listed,
may I have some way to get the key 0 tweak by myself?
In fact, i think if i can get the both key that ill fix this bricked switch.:rofl2:
I think I am almost succeeded.






a>
hXbVZ4qs)
fsafsaf.png

hXbVZ4qs)

hXbVZ4qs)
 
Last edited by vividiorem,

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,236
Country
Gambia, The
So in the end you got your BIS-Keys :) Only thing is missing is a valid PRODINFO.

take bis_key_00 It holds bis_key_0 tweak and crypt.

The first 32 characters are BIS KEY 0 (crypt) and the last 32 characters are BIS KEY 0 (tweak)

Use my post above to check for PRODINO. If it is valid and intact your Switch is recoverable.
 
Last edited by GothicIII,

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
So in the end you got your BIS-Keys :) Only thing is missing is a valid PRODINFO.

take bis_key_00 It holds bis_key_0 tweak and crypt.

The first 32 characters are BIS KEY 0 (crypt) and the last 32 characters are BIS KEY 0 (tweak)

Use my post above to check for PRODINO. If it is valid and intact your Switch is recoverable.


Its hardly to bring it up, but my bis key looks are corrupted,
I using HacDiskMount to operation on prodinef,
But the test failed, that means this key was incorrect what I extracted, in fact I am already restore the backup nand,
Its should be uncorrupted at that moment.
I guess I have seen the ending, a brick, forever.
Anyway, thank everyone who helped or replay.:bow:

And please let me ask last question,:toot:
is there have any way to get the original key?
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,236
Country
Gambia, The
Its hardly to bring it up, but my bis key looks are corrupted,
I using HacDiskMount to operation on prodinef,
But the test failed, that means this key was incorrect what I extracted, in fact I am already restore the backup nand,
Its should be uncorrupted at that moment.
I guess I have seen the ending, a brick, forever.
Anyway, thank everyone who helped or replay.:bow:

And please let me ask last question,:toot:
is there have any way to get the original key?

The Bis keys cannot be corrupted. They are readonly and can't be tempered with. The problems lies in your nand backup. It is messed up.

Are you sure this is the backup of your switch? If you open the nandbackup in hacdiskmount does it show PRODINFO in the main window?

You could zip/rar your nand backup, upload it somewhere and pm me with your keys. I could look into it and see how much of the backup is broken.
 

vividiorem

Member
OP
Newcomer
Joined
Jun 2, 2019
Messages
12
Trophies
0
XP
80
Country
Australia
The Bis keys cannot be corrupted. They are readonly and can't be tempered with. The problems lies in your nand backup. It is messed up.

Are you sure this is the backup of your switch? If you open the nandbackup in hacdiskmount does it show PRODINFO in the main window?

You could zip/rar your nand backup, upload it somewhere and pm me with your keys. I could look into it and see how much of the backup is broken.

thank you a lot:bow:,
it is succeed be open by hacdiskmount and showed every part in the main window,
but I dont know why, its cannot work.
:bow::bow:
*snip*
 
Last edited by porkiewpyne,
  • Like
Reactions: crazy_p

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    DinohScene @ DinohScene: Better start running in your hamster wheel