Page 1 of 1

Uboot - set your own password

Posted: Mon Jul 29, 2019 7:20 pm
by TheHogNL
Hi all,
Yesterday I discovered that it is easy to set your own uboot password.
For the first time you need to get into the uboot with the well known R6 or R8 version password or with a R10 version, using openocd or the toonrooter (with option -uboot-only). This also means you only need to have a jtag connection to your R10 toon once.

Then, when in uboot you just type:

For R6 and R8 uboot versions, to set password to be 'toon':

Code: Select all

setenv bootstopkey toon
saveenv
For R10 uboot version, to set password to be 'toon':

Code: Select all

setenv bootstopkeysha256 b16f173eaf978090de28e9d135fc2e0ceb64a7b8dc35e726ee544e61e9bbf470
saveenv
If you want to set your own password other then toon you need to construct your own sha256 hash, for example with website https://www.xorbin.com/tools/sha256-hash-calculator

Re: Uboot - set your own password

Posted: Thu Aug 01, 2019 5:00 pm
by hvxl
TheHogNL wrote:If you want to set your own password other then toon you need to construct your own sha256 hash, for example with website https://www.xorbin.com/tools/sha256-hash-calculator
Or, if you have a linux computer nearby (like the Raspberry Pi you're using to root the toon), just run the command:
  • echo -n passwd | sha256sum
You can even run the command on toon itself. But it needs to be rooted before you can do that ...

Re: Uboot - set your own password

Posted: Thu Aug 22, 2019 6:31 pm
by Hussar_303
Thanks for the heads-up, I didn't know about that... :oops: I'll take care of that on my Raspberry Pi build.