The script should actually run fine on any Linux-based system that supports Python 2.7, especially if you don't need JTAG.TheHogNL wrote: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.
Fully automated rooting script
Moderators: marcelr, TheHogNL, Toonz
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
Re: Fully automated rooting script
Ohw yes indeed, you are right 

Member of the Toon Software Collective
Re: Fully automated rooting script
Successmartenjacobs wrote:uibeltje wrote:martenjacobs wrote:
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.

Used a fresh installation of Stretch and have SSH access
Re: Fully automated rooting script
Thanks,martenjacobs wrote:The script should actually run fine on any Linux-based system that supports Python 2.7, especially if you don't need JTAG.TheHogNL wrote: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.
So if i install Ubuntu 18.04 with Python 2.7, I can use the terminal inside Ubuntu to run the script?
So I attach the 3 serial cables to Toon and the USB-to-Serial adapter and connect to the (ubuntu) pc.
is the USB-to-serial supported by linux OS like Ubuntu, because on the website of Prolific, I only see the drivers for Windows based systems, not Linux based.
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
I think prolific USB serial adapters should be supported out of the box in Ubuntu. If not, you’ll have to find drivers somewhere. The adapter will probably show up as /dev/ttyUSB0 or something similar. Make sure to pass it to the script using the --serial-port argument.said0066 wrote: Thanks,
So if i install Ubuntu 18.04 with Python 2.7, I can use the terminal inside Ubuntu to run the script?
So I attach the 3 serial cables to Toon and the USB-to-Serial adapter and connect to the (ubuntu) pc.
is the USB-to-serial supported by linux OS like Ubuntu, because on the website of Prolific, I only see the drivers for Windows based systems, not Linux based.
Re: Fully automated rooting script
Yes it is supported. Even better then in Windows. Those chinese adapters work in Linux better 

Member of the Toon Software Collective
Re: Fully automated rooting script
Hi
I did run succesfully the fully automated script to root a toon R10.
After that i tryed to change the passwd, but passwd appl is not implemented
So i tryed to install a new version of busybox --> I looked at rooting toon (manual)
I downloaded: http://files.domoticaforum.eu/uploads/T ... r4_qb2.ipk
and tryed to install it .......
Get an return error 255 and a not installed busybox.
What can i do.
I don't know the password for U-boot - does anybody know? (It is not the same as the root passwd!)
Please some help
Here is the output of the ssh-connection.
I still have an ssh-connection, but it is possible windows will break that, going to sleep-mode
eneco-001-361445:~# opkg install http://files.domoticaforum.eu/uploads/Toon/apps
/busybox-1.27.2-r4/busybox_1.27.2-r4_qb2.ipk
Downloading http://files.domoticaforum.eu/uploads/T ... r4_qb2.ipk.
Upgrading busybox on root from 1.27.2-r1 to 1.27.2-r4...
Installing libc6 (2.21-r0) to root...
Downloading http://feed.hae.int/feeds/qb2/oe/angeli ... armv5e.ipk.
Removing package glibc from root...
Removing package glibc-patch-dns from root...
Installing glibc (2.10.1-r37.1) to root...
Downloading http://feed.hae.int/feeds/qb2/oe/angeli ... .1_qb2.ipk.
Configuring dropbear.
Collected errors:
* pkg_run_script: package "glibc-patch-dns" postrm script returned status 255.
* opkg_install_pkg: Failed to verify the signature of /var/lib/opkg/oe-2.6.36-base-r17-splash2.
* opkg_install_cmd: Cannot install package busybox.
* pkg_run_script: package "dropbear" postinst script returned status 255.
* opkg_configure: dropbear.postinst returned 255.
eneco-001-361445:~# ls
-sh: /bin/ls: not found
I did run succesfully the fully automated script to root a toon R10.
After that i tryed to change the passwd, but passwd appl is not implemented
So i tryed to install a new version of busybox --> I looked at rooting toon (manual)
I downloaded: http://files.domoticaforum.eu/uploads/T ... r4_qb2.ipk
and tryed to install it .......
Get an return error 255 and a not installed busybox.
What can i do.
I don't know the password for U-boot - does anybody know? (It is not the same as the root passwd!)
Please some help
Here is the output of the ssh-connection.
I still have an ssh-connection, but it is possible windows will break that, going to sleep-mode
eneco-001-361445:~# opkg install http://files.domoticaforum.eu/uploads/Toon/apps
/busybox-1.27.2-r4/busybox_1.27.2-r4_qb2.ipk
Downloading http://files.domoticaforum.eu/uploads/T ... r4_qb2.ipk.
Upgrading busybox on root from 1.27.2-r1 to 1.27.2-r4...
Installing libc6 (2.21-r0) to root...
Downloading http://feed.hae.int/feeds/qb2/oe/angeli ... armv5e.ipk.
Removing package glibc from root...
Removing package glibc-patch-dns from root...
Installing glibc (2.10.1-r37.1) to root...
Downloading http://feed.hae.int/feeds/qb2/oe/angeli ... .1_qb2.ipk.
Configuring dropbear.
Collected errors:
* pkg_run_script: package "glibc-patch-dns" postrm script returned status 255.
* opkg_install_pkg: Failed to verify the signature of /var/lib/opkg/oe-2.6.36-base-r17-splash2.
* opkg_install_cmd: Cannot install package busybox.
* pkg_run_script: package "dropbear" postinst script returned status 255.
* opkg_configure: dropbear.postinst returned 255.
eneco-001-361445:~# ls
-sh: /bin/ls: not found
Re: Fully automated rooting script
And another broken toon due to libc6 being updated... people please shutdown your VPNs before running OPKG commands...
Or make sure you are already on 5.0.4
You need to recover your toon using the NFS and TFTPD recovery as a lot of others did lately.
Or make sure you are already on 5.0.4
You need to recover your toon using the NFS and TFTPD recovery as a lot of others did lately.
Member of the Toon Software Collective
Re: Fully automated rooting script
The R10 uboot password is unknown. Therefore you need the auto rooter python script to get into uboot or use openocd as the manual states.
Member of the Toon Software Collective
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
I just merged TheHogNL's pull request which automatically disables the VPN after rooting. This should keep many users from bricking their Toon.
-
- Starting Member
- Posts: 1
- Joined: Thu Feb 21, 2019 8:26 am
Re: Fully automated rooting script
Thanks for your support.
I managed to root my toon using the manual method.
I get a blue screen of death (BSOD) on Windows 10 because of the cheap China USB-to-serial adapter which is installed using the old Vista driver.
A workaround that worked for me is installing VM Virtualbox and installing a Vista OS on a VM, installing the old Prolific USB driver, and USB passthrough, and rooting if from there, worked perfect!
I managed to root my toon using the manual method.
I get a blue screen of death (BSOD) on Windows 10 because of the cheap China USB-to-serial adapter which is installed using the old Vista driver.
A workaround that worked for me is installing VM Virtualbox and installing a Vista OS on a VM, installing the old Prolific USB driver, and USB passthrough, and rooting if from there, worked perfect!
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
Even better is to use Linuxsaid0066 wrote:Thanks for your support.
I managed to root my toon using the manual method.
I get a blue screen of death (BSOD) on Windows 10 because of the cheap China USB-to-serial adapter which is installed using the old Vista driver.
A workaround that worked for me is installing VM Virtualbox and installing a Vista OS on a VM, installing the old Prolific USB driver, and USB passthrough, and rooting if from there, worked perfect!

Re: Fully automated rooting script
Hello everyone,
The last two days I tried rooting my TOon. First manually, but I got stuck on the whole busybox thing. Then I found the autorouter. I reverted everything and I tried to Autoroot the Toon.
No matter what I tried, including switching PI's, reinstalling OpenOCD, checking all the wiring many times, I still get this behaviour (here I killed it). I am on firmware 5.0.4 with bootloader 2010-R10, by the way.
The new file gets written OK, in the serial terminal I see the new "password is toon" and I can even type this via serial to go to U-boot, but the Toonrooter script never finishes. It always gets stuck at "Waiting for Toon to reboot".
Can anyone point me in the right direction to solve this?
Thanks in advance for your help!
BR,
Bart
The last two days I tried rooting my TOon. First manually, but I got stuck on the whole busybox thing. Then I found the autorouter. I reverted everything and I tried to Autoroot the Toon.
No matter what I tried, including switching PI's, reinstalling OpenOCD, checking all the wiring many times, I still get this behaviour (here I killed it). I am on firmware 5.0.4 with bootloader 2010-R10, by the way.
Code: Select all
pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available --dont-check-uboot
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi1'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
INFO:rooter:Waiting for 10 seconds
INFO:rooter:Halting CPU
INFO:rooter:Loading new image to RAM
INFO:rooter:Starting up new image
INFO:rooter:Waiting for Toon to restart
^CTraceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, 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 175, in <module>
main()
File "/home/pi/ToonRooter/__main__.py", line 171, in main
rooter.Rooter(**params).run()
File "./rooter.py", line 80, in run
self.run()
File "./rooter.py", line 54, in run
uboot_version=self.read_uboot_version()
File "./rooter.py", line 88, in read_uboot_version
line = self._port.readline().strip()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 472, in read
ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt
Can anyone point me in the right direction to solve this?
Thanks in advance for your help!
BR,
Bart
Re: Fully automated rooting script
Why are you using --don't-check-uboot?
And please try with --output-level DEBUG before posting any issue to the forum.
And please try with --output-level DEBUG before posting any issue to the forum.
Member of the Toon Software Collective