Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

martenjacobs wrote:I did notice a case where it may fail in some random cases (see the issue I created today). In these cases, rooting again should fix it.
Nice to stumble upon that issue. Already send you another patch for that :D
Member of the Toon Software Collective
uibeltje
Starting Member
Starting Member
Posts: 4
Joined: Wed Feb 13, 2019 11:11 pm

Re: Fully automated rooting script

Post by uibeltje »

I want to root my Toon using the script from GitHub and a Raspberry Pi but after connecting everything I get the following error message:

INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi3'
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/ToonRooter/__main__.py", line 172, in <module>
main()
File "/home/pi/ToonRooter/__main__.py", line 148, in main
(pub, priv) = sshkeys.generate_key_pair(args.private_key_password)
File "./sshkeys.py", line 13, in generate_key_pair
key_encryption_algorithm = serialization.NoEncryption()
AttributeError: 'module' object has no attribute 'NoEncryption'




Any idea what's going wrong?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Did you succesfully install python-cryptography? See the README on https://github.com/martenjacobs/ToonRooter
Member of the Toon Software Collective
uibeltje
Starting Member
Starting Member
Posts: 4
Joined: Wed Feb 13, 2019 11:11 pm

Re: Fully automated rooting script

Post by uibeltje »

Yes, python-cryptography was successfully installed.

pi@Domoticz:~/ToonRooter $ sudo apt install python-serial python-cryptography
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-cryptography is already the newest version.
python-serial is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 110 not upgraded.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Hmm ok then it is up to @martenjacobs .. I'm not that big python coder as he is :-)

It looks to me a python installation issue but not sure. Maybe you just need to update your raspberry pi? (sudo apt update ; sudo apt upgrade)
Member of the Toon Software Collective
amo
Starting Member
Starting Member
Posts: 11
Joined: Fri Feb 08, 2019 9:39 pm

Re: Fully automated rooting script

Post by amo »

I have the TOOn rooted now with my RPI and automated Script

Now i did everything..@ the end it says that my toon is rooted.

I have a few questions:

1 - What is the Password when trying to connect with SSH?
2 - When i started it, i connected it to Wifi.. it wants to Update.. van 2.X.X tot 5.x.x can i do that on the TOON itself? or do i need to do it with SSH?

thanks!
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

The script would have told you the password in the end just before 'your toon is now rooted'.

Updating should be done with the rooted toon update script.
Member of the Toon Software Collective
amo
Starting Member
Starting Member
Posts: 11
Joined: Fri Feb 08, 2019 9:39 pm

Re: Fully automated rooting script

Post by amo »

TheHogNL wrote:The script would have told you the password in the end just before 'your toon is now rooted'.

Updating should be done with the rooted toon update script.
****.. did not see it.. :(
what options do i have now??

i need to do the whole root again, to get the new password?

thnx
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Yes that is the easiest way.
Your toon is only called 'rooted' when you have confirmed root access (so you have logged in with ssh) :D
Member of the Toon Software Collective
amo
Starting Member
Starting Member
Posts: 11
Joined: Fri Feb 08, 2019 9:39 pm

Re: Fully automated rooting script

Post by amo »

TheHogNL wrote:Yes that is the easiest way.
Your toon is only called 'rooted' when you have confirmed root access (so you have logged in with ssh) :D

Hahah, yes i know.. i was in a hurry to try and I was happy that i the script made it to the end...

Tomorow i will disconnect everyrhing, and do it all over again.

Thanks thehog!
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

uibeltje wrote:I want to root my Toon using the script from GitHub and a Raspberry Pi but after connecting everything I get the following error message:
(...)

Any idea what's going wrong?
Hi uibeltje,

I just checked what's happening on these lines, and on my machine everything works fine. Could you show me the output for this command:

Code: Select all

cat /etc/issue && python --version && python -c 'import cryptography as c ; print(c.__version__)'
Perhaps reinstalling python-cryptography could help as well. It may have been corrupted in some way.
uibeltje
Starting Member
Starting Member
Posts: 4
Joined: Wed Feb 13, 2019 11:11 pm

Re: Fully automated rooting script

Post by uibeltje »

martenjacobs wrote:
Could you show me the output for this command:

Code: Select all

cat /etc/issue && python --version && python -c 'import cryptography as c ; print(c.__version__)'
Perhaps reinstalling python-cryptography could help as well. It may have been corrupted in some way.
This is the output:

Raspbian GNU/Linux 8 \n \l

Python 2.7.9
0.6.1


Try to remove and reinstall python-cryptography but I do get same error message. I tested it this time with the Toon not connected to my Pi, is that a problem? Because I need Toon to control the heating in my house I am not able to have it disconnected for a couple of days. :)
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

uibeltje wrote:
martenjacobs wrote:
Could you show me the output for this command:

Code: Select all

cat /etc/issue && python --version && python -c 'import cryptography as c ; print(c.__version__)'
Perhaps reinstalling python-cryptography could help as well. It may have been corrupted in some way.
This is the output:

Raspbian GNU/Linux 8 \n \l

Python 2.7.9
0.6.1


Try to remove and reinstall python-cryptography but I do get same error message. I tested it this time with the Toon not connected to my Pi, is that a problem? Because I need Toon to control the heating in my house I am not able to have it disconnected for a couple of days. :)
Testing with the Toon disconnected shouldn’t be an issue. I see you’re running Raspbian Jessie, which is pretty old. The version of python-cryptography is even older. Upgrading to Stretch will probably solve your problem.
said0066
Starting Member
Starting Member
Posts: 13
Joined: Mon Feb 18, 2019 4:18 pm

Re: Fully automated rooting script

Post by said0066 »

Hi,

I have a question:
I have a R8 toon which I want to root.

is it true that I dont need a the JTAG procedure for this? So no jumper cables and raspberry pi?

Only Toon and USB to serial cable right?

Can I use the fully automated script with only Toon and Usb to serial cable (so without JTAG) or do I have to do it manually?

Thanks in advance!
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

For R8 you don't need jtag indeed. But if you want to use the auto rooter you need the Raspberry PI. The only difference between jtag and only serial is just a few dupont cables extra.
With R8 you only need 3 wires, or indeed a USB serial device.
Member of the Toon Software Collective
Post Reply

Return to “Toon Rooting”