Page 14 of 30

Re: Fully automated rooting script

Posted: Fri Feb 01, 2019 6:23 pm
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)

Re: Fully automated rooting script

Posted: Fri Feb 01, 2019 7:13 pm
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 :)

Re: Fully automated rooting script

Posted: Fri Feb 01, 2019 8:42 pm
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).

Re: Fully automated rooting script

Posted: Mon Feb 04, 2019 8:40 pm
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

Re: Fully automated rooting script

Posted: Mon Feb 04, 2019 9:21 pm
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

Re: Fully automated rooting script

Posted: Mon Feb 04, 2019 9:22 pm
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)

Re: Fully automated rooting script

Posted: Mon Feb 04, 2019 9:29 pm
by dexternl
Thanks for the quick respondenten i am going to try it this week

Re: Fully automated rooting script

Posted: Tue Feb 05, 2019 8:04 pm
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

Re: Fully automated rooting script

Posted: Tue Feb 05, 2019 9:37 pm
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.

Re: Fully automated rooting script

Posted: Wed Feb 06, 2019 10:25 pm
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)

Re: Fully automated rooting script

Posted: Wed Feb 06, 2019 11:56 pm
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.

Re: Fully automated rooting script

Posted: Thu Feb 07, 2019 12:53 pm
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?

Re: Fully automated rooting script

Posted: Thu Feb 07, 2019 9:46 pm
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.

Re: Fully automated rooting script

Posted: Fri Feb 08, 2019 10:32 am
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 :-)

Re: Fully automated rooting script

Posted: Fri Feb 08, 2019 12:23 pm
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