Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 01, 2019 5:23 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1173
Joined: August 2017

Re: Fully automated rooting script

Postby WilcoSnel » Fri Feb 01, 2019 6:13 pm

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 :)
WilcoSnel
Starting Member
Starting Member
 
Posts: 11
Joined: January 2019

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 01, 2019 7:42 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1173
Joined: August 2017

Re: Fully automated rooting script

Postby dexternl » Mon Feb 04, 2019 7:40 pm

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
dexternl
Starting Member
Starting Member
 
Posts: 10
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Mon Feb 04, 2019 8:21 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1173
Joined: August 2017

Re: Fully automated rooting script

Postby martenjacobs » Mon Feb 04, 2019 8:22 pm

On the Pi, use the pin numbers from here: https://pinout.xyz/ (the numbers right next to the pins, not the "BCM" numbers)
martenjacobs
Member
Member
 
Posts: 52
Joined: March 2018

Re: Fully automated rooting script

Postby dexternl » Mon Feb 04, 2019 8:29 pm

Thanks for the quick respondenten i am going to try it this week
dexternl
Starting Member
Starting Member
 
Posts: 10
Joined: February 2019

Re: Fully automated rooting script

Postby dexternl » Tue Feb 05, 2019 7:04 pm

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
dexternl
Starting Member
Starting Member
 
Posts: 10
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Tue Feb 05, 2019 8:37 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1173
Joined: August 2017

Re: Fully automated rooting script

Postby hmostard » Wed Feb 06, 2019 9:25 pm

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 10:26 am, edited 1 time in total.
hmostard
Starting Member
Starting Member
 
Posts: 8
Joined: February 2019

Re: Fully automated rooting script

Postby hmostard » Wed Feb 06, 2019 10:56 pm

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.
hmostard
Starting Member
Starting Member
 
Posts: 8
Joined: February 2019

Re: Fully automated rooting script

Postby TheHogNL » Thu Feb 07, 2019 11:53 am

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1173
Joined: August 2017

Re: Fully automated rooting script

Postby hmostard » Thu Feb 07, 2019 8:46 pm

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.
hmostard
Starting Member
Starting Member
 
Posts: 8
Joined: February 2019

Re: Fully automated rooting script

Postby rotzen » Fri Feb 08, 2019 9:32 am

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 1756 times
rotzen
Starting Member
Starting Member
 
Posts: 9
Joined: February 2019

Re: Fully automated rooting script

Postby TerrorSource » Fri Feb 08, 2019 11:23 am

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
TerrorSource
Member
Member
 
Posts: 289
Joined: May 2017

PreviousNext

Return to Toon Rooting

Who is online

Users browsing this forum: No registered users and 1 guest