Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Fully automated rooting script

Postby TheHogNL » Tue Feb 12, 2019 10:32 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1056
Joined: August 2017

Re: Fully automated rooting script

Postby uibeltje » Wed Feb 13, 2019 10:22 pm

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?
uibeltje
Starting Member
Starting Member
 
Posts: 4
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Thu Feb 14, 2019 8:43 am

Did you succesfully install python-cryptography? See the README on https://github.com/martenjacobs/ToonRooter
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1056
Joined: August 2017

Re: Fully automated rooting script

Postby uibeltje » Thu Feb 14, 2019 9:50 pm

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.
uibeltje
Starting Member
Starting Member
 
Posts: 4
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Thu Feb 14, 2019 10:01 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1056
Joined: August 2017

Re: Fully automated rooting script

Postby amo » Fri Feb 15, 2019 5:47 pm

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!
amo
Starting Member
Starting Member
 
Posts: 11
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 15, 2019 7:34 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1056
Joined: August 2017

Re: Fully automated rooting script

Postby amo » Fri Feb 15, 2019 7:37 pm

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
amo
Starting Member
Starting Member
 
Posts: 11
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 15, 2019 8:08 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1056
Joined: August 2017

Re: Fully automated rooting script

Postby amo » Fri Feb 15, 2019 8:21 pm

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!
amo
Starting Member
Starting Member
 
Posts: 11
Joined: February 2019

Re: Fully automated rooting script

Postby martenjacobs » Sun Feb 17, 2019 9:23 am

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.
martenjacobs
Member
Member
 
Posts: 51
Joined: March 2018

Re: Fully automated rooting script

Postby uibeltje » Mon Feb 18, 2019 9:36 am

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. :)
uibeltje
Starting Member
Starting Member
 
Posts: 4
Joined: February 2019

Re: Fully automated rooting script

Postby martenjacobs » Mon Feb 18, 2019 1:01 pm

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.
martenjacobs
Member
Member
 
Posts: 51
Joined: March 2018

Re: Fully automated rooting script

Postby said0066 » Mon Feb 18, 2019 3:24 pm

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!
said0066
Starting Member
Starting Member
 
Posts: 13
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Mon Feb 18, 2019 5:35 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1056
Joined: August 2017

PreviousNext

Return to Toon Rooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron