Nice to stumble upon that issue. Already send you another patch for thatmartenjacobs 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.
Fully automated rooting script
Moderators: marcelr, TheHogNL, Toonz
Re: Fully automated rooting script
Member of the Toon Software Collective
Re: Fully automated rooting script
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?
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
Did you succesfully install python-cryptography? See the README on https://github.com/martenjacobs/ToonRooter
Member of the Toon Software Collective
Re: Fully automated rooting script
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.
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
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)
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
Re: Fully automated rooting script
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!
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
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.
Updating should be done with the rooted toon update script.
Member of the Toon Software Collective
Re: Fully automated rooting script
****.. did not see it..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.
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
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)
Your toon is only called 'rooted' when you have confirmed root access (so you have logged in with ssh)
Member of the Toon Software Collective
Re: Fully automated rooting script
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)
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!
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
Hi uibeltje,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?
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__)'
Re: Fully automated rooting script
This is the output:martenjacobs wrote:
Could you show me the output for this command:Perhaps reinstalling python-cryptography could help as well. It may have been corrupted in some way.Code: Select all
cat /etc/issue && python --version && python -c 'import cryptography as c ; print(c.__version__)'
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.
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
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.uibeltje wrote:This is the output:martenjacobs wrote:
Could you show me the output for this command:Perhaps reinstalling python-cryptography could help as well. It may have been corrupted in some way.Code: Select all
cat /etc/issue && python --version && python -c 'import cryptography as c ; print(c.__version__)'
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
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!
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
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.
With R8 you only need 3 wires, or indeed a USB serial device.
Member of the Toon Software Collective