Page 16 of 30

Re: Fully automated rooting script

Posted: Tue Feb 12, 2019 11:32 pm
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

Re: Fully automated rooting script

Posted: Wed Feb 13, 2019 11:22 pm
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?

Re: Fully automated rooting script

Posted: Thu Feb 14, 2019 9:43 am
by TheHogNL
Did you succesfully install python-cryptography? See the README on https://github.com/martenjacobs/ToonRooter

Re: Fully automated rooting script

Posted: Thu Feb 14, 2019 10:50 pm
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.

Re: Fully automated rooting script

Posted: Thu Feb 14, 2019 11:01 pm
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)

Re: Fully automated rooting script

Posted: Fri Feb 15, 2019 6:47 pm
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!

Re: Fully automated rooting script

Posted: Fri Feb 15, 2019 8:34 pm
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.

Re: Fully automated rooting script

Posted: Fri Feb 15, 2019 8:37 pm
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

Re: Fully automated rooting script

Posted: Fri Feb 15, 2019 9:08 pm
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

Re: Fully automated rooting script

Posted: Fri Feb 15, 2019 9:21 pm
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!

Re: Fully automated rooting script

Posted: Sun Feb 17, 2019 10:23 am
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.

Re: Fully automated rooting script

Posted: Mon Feb 18, 2019 10:36 am
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. :)

Re: Fully automated rooting script

Posted: Mon Feb 18, 2019 2:01 pm
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.

Re: Fully automated rooting script

Posted: Mon Feb 18, 2019 4:24 pm
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!

Re: Fully automated rooting script

Posted: Mon Feb 18, 2019 6:35 pm
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.