Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

Bassie
Starting Member
Starting Member
Posts: 16
Joined: Mon Nov 06, 2017 4:24 pm

Re: Fully automated rooting script

Post by Bassie »

Any ideas?

Code: Select all

pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi2'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
INFO:rooter:Waiting for 10 seconds
ERROR:rooter:
Traceback (most recent call last):
  File "./rooter.py", line 206, in start_bootloader
    client = telnetlib.Telnet('localhost', 4444)
  File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
    self.open(host, port, timeout)
  File "/usr/lib/python2.7/telnetlib.py", line 227, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 575, in create_connection
    raise err
error: [Errno 111] Connection refused
CRITICAL:__main__:[Errno 3] No such process
pi@raspberrypi:~/toon-root/ToonRooter $
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

@Bassie: it seems OpenOCD isn’t working properly. Could you try installing it again?
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

Maanbaviaan wrote:I've tried rooting my toon with the ToonRooter script. Everything seems fine, no errors.
But when booting Toon it still asks for an activation code.
Bootloader 2010-09 and software version 3.9.2.

Am I doing it wrong?
What do you mean ‘activation code’? Could you share a picture of the message you’re seeing?
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Fully automated rooting script

Post by TerrorSource »

martenjacobs wrote:
Maanbaviaan wrote:I've tried rooting my toon with the ToonRooter script. Everything seems fine, no errors.
But when booting Toon it still asks for an activation code.
Bootloader 2010-09 and software version 3.9.2.

Am I doing it wrong?
What do you mean ‘activation code’? Could you share a picture of the message you’re seeing?
He needs to run the update script with the -f parameter to fix all files including activation
Maanbaviaan
Starting Member
Starting Member
Posts: 6
Joined: Thu Oct 18, 2018 10:42 pm

Re: Fully automated rooting script

Post by Maanbaviaan »

TerrorSource wrote:
martenjacobs wrote:
Maanbaviaan wrote:I've tried rooting my toon with the ToonRooter script. Everything seems fine, no errors.
But when booting Toon it still asks for an activation code.
Bootloader 2010-09 and software version 3.9.2.

Am I doing it wrong?
What do you mean ‘activation code’? Could you share a picture of the message you’re seeing?
He needs to run the update script with the -f parameter to fix all files including activation
With activation code I meant the toon activation screen.
Going to try the -f parameter. Keeping you updated
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Or just read the rooting manual :)
Member of the Toon Software Collective
Bassie
Starting Member
Starting Member
Posts: 16
Joined: Mon Nov 06, 2017 4:24 pm

Re: Fully automated rooting script

Post by Bassie »

I had some trouble building the custom OpenOCD as stated here: https://github.com/martenjacobs/ToonRoo ... ll-openocd
For me it gave some errors with: usb_find_busses

This had to do with libusb-0.1 being present on my raspberry.
For me it helped to remove libusb-0.1 from my raspberry (libusb-1.0 was also on the system)
And also:
In the custom OpenOCD-commands it somehow kept reinstalling version 0.1 because off the dependency by libusb-dev.
Removing libusb-dev from that command helped completing the build.
Maybe this also helps someone else....
lievenco
Starting Member
Starting Member
Posts: 3
Joined: Fri Oct 19, 2018 10:40 am

Re: Fully automated rooting script

Post by lievenco »

I have another problem, checked the connections trough the Raspberry pi 1 board a few times.
Connections should be fine, but no result.

pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available
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:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R8
INFO:rooter:Using password to log in
INFO:rooter:Logging in to U-Boot
CRITICAL:__main__:device reports readiness to read but returned no data (device disconnected or multiple access on port?)


Does somebody has a solution of tips?
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

lievenco wrote:I have another problem, checked the connections trough the Raspberry pi 1 board a few times.
Connections should be fine, but no result.

pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available
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:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R8
INFO:rooter:Using password to log in
INFO:rooter:Logging in to U-Boot
CRITICAL:__main__:device reports readiness to read but returned no data (device disconnected or multiple access on port?)


Does somebody has a solution of tips?
Are you getting this exact error message consistently?
JacDomotica
Starting Member
Starting Member
Posts: 7
Joined: Tue Nov 07, 2017 10:12 pm

Re: Fully automated rooting script

Post by JacDomotica »

hello, i tried it today and the installation was oke. I think.

But when starting the proces it is waytin for the toon to start.

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:Waiting for Toon to restart

But i already started it many times. Some one can give me a hint?
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

JacDomotica wrote:hello, i tried it today and the installation was oke. I think.

But when starting the proces it is waytin for the toon to start.

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:Waiting for Toon to restart

But i already started it many times. Some one can give me a hint?
Something has probably gone wrong with installation. As mentioned many times before in this thread there is little to no checking on the output from OpenOCD. Please re-check your wiring and run with the debug flag set to get more info
WickedMaster
Member
Member
Posts: 76
Joined: Wed Nov 07, 2018 1:53 pm

Re: Fully automated rooting script

Post by WickedMaster »

Code: Select all

root@Raspberry:/home/pi/ToonRooter# python . --jtag-available --serial-port /dev/ttyUSB0
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi3'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
INFO:rooter:Waiting for 10 seconds
ERROR:rooter:
Traceback (most recent call last):
  File "./rooter.py", line 206, in start_bootloader
    client = telnetlib.Telnet('localhost', 4444)
  File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
    self.open(host, port, timeout)
  File "/usr/lib/python2.7/telnetlib.py", line 227, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 575, in create_connection
    raise err
error: [Errno 111] Connection refused
CRITICAL:__main__:[Errno 3] No such process
Any idea guys?

Edit: got it working. Had to compile openocd again. Probably I missed something while installing it.
JacDomotica
Starting Member
Starting Member
Posts: 7
Joined: Tue Nov 07, 2017 10:12 pm

Re: Fully automated rooting script

Post by JacDomotica »

Hello,

I tried it again and got the following error:

Code: Select all

 sudo python . --jtag-available --output-level DEBUG
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:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
INFO:rooter:Waiting for 10 seconds
DEBUG:rooter:Open On-Chip Debugger
>
INFO:rooter:Halting CPU
DEBUG:rooter:soft_reset_halt
requesting target halt and executing a soft reset
Failed to halt CPU after 1 sec
>
DEBUG:rooter:reset halt
JTAG scan chain interrogation failed: all zeroes
Check JTAG interface, timings, target power, etc.
Trying to use configured scan chain anyway...
imx27.etb: IR capture error; saw 0x00 not 0x01
Bypassing JTAG setup events due to errors
srst pulls trst - can not reset into halted mode. Issuing halt after reset.
timed out while waiting for target halted
TARGET: imx27.cpu - Not halted
in procedure 'reset'
in procedure 'ocd_bouncer'


>
INFO:rooter:Loading new image to RAM
DEBUG:roote>
INFO:rooter:Starting up new image
INFO:rooter:Waiting for Toon to restart
Some one can give me a hint?
Last edited by JacDomotica on Wed Nov 21, 2018 9:57 pm, edited 1 time in total.
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

JacDomotica wrote: Some one can give me a hint?
Looks like a wiring issue. Have you re-checked everything?
JacDomotica
Starting Member
Starting Member
Posts: 7
Joined: Tue Nov 07, 2017 10:12 pm

Re: Fully automated rooting script

Post by JacDomotica »

martenjacobs wrote:
JacDomotica wrote: Some one can give me a hint?
Looks like a wiring issue. Have you re-checked everything?
one wire wrong thank you!!!
Post Reply

Return to “Toon Rooting”