Fully automated rooting script

Forum about the tweaking of the Eneco Toon.

Moderator: marcelr

Re: Fully automated rooting script

Postby Markie13 » Thu May 10, 2018 7:54 am

marcelr wrote:It's not a JTAG problem. How do you load the custom bootloader through JTAG if you can't type anything in your serial console?


I open one console via Putty serial baud 115200
Other one via telnet 4444
And the last one an openocd console. So i have 3 consoles open.

The serial console is where i can see the password ect but cannot add some characters
Markie13
Starting Member
Starting Member
 
Posts: 11
Joined: May 2018

Re: Fully automated rooting script

Postby TheHogNL » Thu May 10, 2018 8:06 am

martenjacobs wrote:Hi everyone,

Over the last few days I've been busy working on a Python application that will automate the rooting process of Toon from a Raspberry Pi.
It supports rooting using just the serial port on Toons with U-Boot versions with a known password, and will use JTAG on any other Toon.

If you want to check it out, it's on GitHub.


Just posted a pull request for a modified version of your patching script so it will include a root password (which is 'password') instead of defaulting to no password.
TheHogNL
Member
Member
 
Posts: 261
Joined: August 2017

Re: Fully automated rooting script

Postby marcelr » Thu May 10, 2018 12:16 pm

@Markie13:

Sounds like a serial IO issue. Are you sure RxD and TxD are in the right place? Is your serial converter working properly with other hardware?
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Fully automated rooting script

Postby Markie13 » Thu May 10, 2018 1:14 pm

marcelr wrote:@Markie13:

Sounds like a serial IO issue. Are you sure RxD and TxD are in the right place? Is your serial converter working properly with other hardware?


I will answer this in your topic Marcel
Markie13
Starting Member
Starting Member
 
Posts: 11
Joined: May 2018

Re: Fully automated rooting script

Postby RoadXY » Thu May 10, 2018 8:26 pm

I had the same problem. Turns out you have to connect ground in order to be able to send data to your Toon
RoadXY
Starting Member
Starting Member
 
Posts: 5
Joined: October 2015

Re: Fully automated rooting script

Postby martenjacobs » Fri May 11, 2018 10:33 am

Just posted a pull request for a modified version of your patching script so it will include a root password (which is 'password') instead of defaulting to no password.


After a minor change (password is now randomly generated on the fly due to security reasons) this is now merged. I'll try to make some time in the coming weeks to change the generation of an SSH key pair to an option. For most users, it's easier to use a password. Maybe I'll add an option to let the user specify the password as well.
martenjacobs
Starting Member
Starting Member
 
Posts: 16
Joined: March 2018

Re: Fully automated rooting script

Postby martenjacobs » Fri May 11, 2018 10:37 am

Markie13 wrote:
marcelr wrote:It's not a JTAG problem. How do you load the custom bootloader through JTAG if you can't type anything in your serial console?


I open one console via Putty serial baud 115200
Other one via telnet 4444
And the last one an openocd console. So i have 3 consoles open.

The serial console is where i can see the password ect but cannot add some characters


A thought: you're not leaving the consoles open while running the script, right? If the socket is in use while the script tries to write data to it, it'll probably cause I/O errors much like the ones you're experiencing.
martenjacobs
Starting Member
Starting Member
 
Posts: 16
Joined: March 2018

Re: Fully automated rooting script

Postby rickvnl » Tue May 15, 2018 9:16 pm

Ran this script a while ago when I bought a second hand Toon. Was perfect and had a rooted toon... since yesterday I guess.

There was an update said Toon and my girlfriend had hit the update button. Now my apps are gone. Is it unrooted now?
rickvnl
Starting Member
Starting Member
 
Posts: 8
Joined: April 2018

Re: Fully automated rooting script

Postby marcelr » Tue May 15, 2018 9:19 pm

Nope.

But you will have to add the apps manually to /qmf/qml/qb/base/Globals.qml again.
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Fully automated rooting script

Postby Toonz » Tue May 15, 2018 9:57 pm

marcelr wrote:Nope.

But you will have to add the apps manually to /qmf/qml/qb/base/Globals.qml again.

But he cannot do this if the iptables config has been reset by the official update. I guess he will have to root again
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Re: Fully automated rooting script

Postby marcelr » Wed May 16, 2018 7:28 am

Toonz wrote:.. he cannot do this if the iptables config has been reset by the official update. I guess he will have to root again

Right. Forgot about that one...
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Previous

Return to Eneco Toon as Domotica controller

Who is online

Users browsing this forum: madpatrick and 1 guest