Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Ok so it is working now? :)

@martjenjacobs I will create a pull request to fix that password thing then (just replace the sed with a proper one)
Member of the Toon Software Collective
WilcoSnel
Starting Member
Starting Member
Posts: 11
Joined: Fri Jan 25, 2019 2:43 pm

Re: Fully automated rooting script

Post by WilcoSnel »

TheHogNL wrote:Ok so it is working now? :)

@martjenjacobs I will create a pull request to fix that password thing then (just replace the sed with a proper one)
Yes, it's working. It's rooted and I can connect to it directly without the pi now. Just have to make the rooted updater work so I can fix the files. Hopefully that will bypass the activation mode and I can use all the options I want for now. But if I can't make that work I'll post in that thread instead.

Thanks a lot for your help again! Enjoy your weekend :)
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Yes the update script will fix it for you (with the option -f it will do those fixes only, without this option it will do an update first and then apply the fix).
Member of the Toon Software Collective
dexternl
Starting Member
Starting Member
Posts: 12
Joined: Mon Feb 04, 2019 8:25 pm

Re: Fully automated rooting script

Post by dexternl »

I scrolled through all the pages so hopefully i am not asking a already asked question. I have bought a Toon and want to root it with a RPI2 B. But i find different pin layouts of the RPI2 so can someone please explain me how count the pins?

Image
user-images.githubusercontent.com/14648 ... eef8b2.jpg
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

See here: https://github.com/martenjacobs/ToonRooter

First just try with 3 wires only (the TX, RX and GND pins). If you are lucky and have a older toon you just need these 3-wires
Member of the Toon Software Collective
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

On the Pi, use the pin numbers from here: https://pinout.xyz/ (the numbers right next to the pins, not the "BCM" numbers)
dexternl
Starting Member
Starting Member
Posts: 12
Joined: Mon Feb 04, 2019 8:25 pm

Re: Fully automated rooting script

Post by dexternl »

Thanks for the quick respondenten i am going to try it this week
dexternl
Starting Member
Starting Member
Posts: 12
Joined: Mon Feb 04, 2019 8:25 pm

Re: Fully automated rooting script

Post by dexternl »

i have connected my pi2 to the toon using 3 wires. I can make a serial connection to the toon but when i start the script it hangs on logging into u-boot.
What am i missing?


pi@raspberrypi:~/ToonRooter $ sudo python . --serial-port /dev/ttyAMA0 --output-level DEBUG --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
DEBUG:__main__:{"has_jtag": true, "check_uboot": true, "boot_only": false, "reboot_after": true, "cleanup_payload": true, "port": "/dev/ttyAMA0", "jtag_hardware": "rpi2", "ssh_pubkey_data": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD1WSBXBNR2uqqO5Ek+6D2BtSmmoeSOt9WknXzmufdrMy1fB+k5hbbFU0ej2nPY8ZJmTXWF75187qD+ruOTbgIJbqWiz6dWUkyMHkuN2y/kQNR0UjsIZuqpxhjMKl0U7hi5ZNmoTh5o5r6BupSP4Hoas6/4EuyRk+R5zU4XxS1QwRLveuPz0o9ImlPABW+hB7ZXSfWMwXhqcf1sSerp3h+UEbFROoB32bv0ifUvH9w8pq0wxa8fTXF04z/2FNVBk+bAqCJwd7+CrfH90RJP5lHaC1hzQjwxKVGUlDEkwOojgyNgmlulAAV5cGBxd+9ZtcTXVFx3eft2NWUXncvyx9QX"}
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
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

Please check the wires. As you have the older u-boot the 3-wires are enough but probably the TX is not working (the one which is sending data from the Pi to the Toon). The RX is working fine as the Pi is receiving the data from the Toon (it knows the u-boot versions).

Also run with --output-level DEBUG if problems occur.
Member of the Toon Software Collective
hmostard
Starting Member
Starting Member
Posts: 13
Joined: Wed Feb 06, 2019 10:15 pm

Re: Fully automated rooting script

Post by hmostard »

Hello,
I am trying to root my Toon.
First tried it manually but I could not enter the password when i started the uboot.bin. I got a lot of messages but Toon did not respond.
Then I found the script and tried that one.
Unfortunately that also did not work. Maybe the same problem.

I got following messages:
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-R10
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
CRITICAL:__main__:(5, 'Input/output error')

Does anybody have a clue what is going wrong?

Update 7-2-2019: I did a reboot of my PI1 and now the script runs untill i got next problem. (See next post)
Last edited by hmostard on Thu Feb 07, 2019 11:26 am, edited 1 time in total.
hmostard
Starting Member
Starting Member
Posts: 13
Joined: Wed Feb 06, 2019 10:15 pm

Re: Fully automated rooting script

Post by hmostard »

Hi all,

I have got an issue and need some advise.
I started the script in debug mode, after i restarted my Pi1, because i first got critical error.
Now the logging is stalled at ' Patching Toon' for one hour.
Tried to connect network to see if SSH was already activated, but nothing.

What is the best thing to do? I do not want to brick my Toon.

Regards, Hugo.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

hmostard wrote:Hi all,

I have got an issue and need some advise.
I started the script in debug mode, after i restarted my Pi1, because i first got critical error.
Now the logging is stalled at ' Patching Toon' for one hour.
Tried to connect network to see if SSH was already activated, but nothing.

What is the best thing to do? I do not want to brick my Toon.

Regards, Hugo.
After that line the script runs: log.debug(port.read_until("/ # "))
So with debug on, you should see at least some more lines. Could you paste all debug logs?
Member of the Toon Software Collective
hmostard
Starting Member
Starting Member
Posts: 13
Joined: Wed Feb 06, 2019 10:15 pm

Re: Fully automated rooting script

Post by hmostard »

Thank you very much for your reply.

However….

I just rebooted my Pi and Toon and started the script again.

It just finished successfully, so i just rooted my Toon :D
I checked and could log on as root.

So conclusion is to just reboot and retry.

Thanks for the help and the script. Awesome.
rotzen
Starting Member
Starting Member
Posts: 9
Joined: Fri Feb 08, 2019 10:23 am

Re: Fully automated rooting script

Post by rotzen »

Hi all,

Started with some homeautomations recently and wanted to use the information Toon suplies too. So read about rooting the Toon and about this automated root script. I'm using a Raspberry PI 3 (B+) with clean install of Raspbian/NOOBS. Downloaded the rootscript as described and followed the manual. All looks good to me, but I'm not able to connect into Toon through SSH. When running the script with --output-level DEBUG I'm finding some /bin/sh: can't access tty; job control turned off messages. Perhaps this is some lead for someone?

Hope someone can help :-)
Attachments
toon.jpg
toon.jpg (55.78 KiB) Viewed 6650 times
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Fully automated rooting script

Post by TerrorSource »

rotzen wrote:Hi all,

Started with some homeautomations recently and wanted to use the information Toon suplies too. So read about rooting the Toon and about this automated root script. I'm using a Raspberry PI 3 (B+) with clean install of Raspbian/NOOBS. Downloaded the rootscript as described and followed the manual. All looks good to me, but I'm not able to connect into Toon through SSH. When running the script with --output-level DEBUG I'm finding some /bin/sh: can't access tty; job control turned off messages. Perhaps this is some lead for someone?

Hope someone can help :-)
TheHogNL and me already tried to look into this but no solution or cause was found.
It looks like something in the the patch script is causing this, it does create a random password but it does not set it in passwd. all steps later in the script will not be executed somehow.

You try rooting again or try it on a later moment. Trying it on a later moment fixed it for me. I know, not a real solution :D
Post Reply

Return to “Toon Rooting”