Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Fully automated rooting script

Postby rotzen » Fri Feb 08, 2019 11:27 am

Ah thats a pitty. So for now the only solution is doing a manual root I guess? Or isn't that also not guaranteed to work?

If you want to debug your script, you can use my Toon btw ;-)
rotzen
Starting Member
Starting Member
 
Posts: 9
Joined: February 2019

Re: Fully automated rooting script

Postby mAiden » Fri Feb 08, 2019 12:25 pm

Manual rooting will work, fortunately you have a U-Boot where the password is known, and in the manual.
Very important to take 3v3, no 5v. Would advise to take a usb to ttl 3.3v..
Connect jumper wires to the ports in the manual on Toon, and the USB to ttl. And then connect with Putty to Toon via serial port :)
mAiden
Member
Member
 
Posts: 239
Joined: July 2017

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 08, 2019 4:20 pm

mAiden wrote:Manual rooting will work, fortunately you have a U-Boot where the password is known, and in the manual.
Very important to take 3v3, no 5v. Would advise to take a usb to ttl 3.3v..
Connect jumper wires to the ports in the manual on Toon, and the USB to ttl. And then connect with Putty to Toon via serial port :)


No need for this as he already connected his Pi to the Toon. This has all the cables he need to do manual root :-) and have console access.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1078
Joined: August 2017

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 08, 2019 4:20 pm

rotzen wrote:Ah thats a pitty. So for now the only solution is doing a manual root I guess? Or isn't that also not guaranteed to work?

If you want to debug your script, you can use my Toon btw ;-)


Time for a teamviewer somewhere tonight? Just PM me your 06-number so I can whatsapp you.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1078
Joined: August 2017

Re: Fully automated rooting script

Postby TerrorSource » Fri Feb 08, 2019 5:05 pm

rotzen wrote:Ah thats a pitty. So for now the only solution is doing a manual root I guess? Or isn't that also not guaranteed to work?

If you want to debug your script, you can use my Toon btw ;-)


Tried the --boot-only parameter?
That will bring you in the console acces.
You can try "sudo screen /dev/serial0 115200" if you have screen installed.
TerrorSource
Member
Member
 
Posts: 281
Joined: May 2017

Re: Fully automated rooting script

Postby TheHogNL » Fri Feb 08, 2019 9:46 pm

Terrorsource and me found the cause. /dev/unrandom special file is missing in 5.0.4 u-booted toons.
This is necessary for random password generation and openssl to encrypt the password to write to /etc/passwd.

I have already send MartenJacobs a pull request for a fix. In the meanwhile use my version https://github.com/IgorYbema/ToonRooter
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1078
Joined: August 2017

Re: Fully automated rooting script

Postby rotzen » Fri Feb 08, 2019 11:26 pm

Thanks guys! Works like a charm now!

PS> Do you know how to change the root password. I will forget the generated password quite soon I'm afraid ;-)
rotzen
Starting Member
Starting Member
 
Posts: 9
Joined: February 2019

Re: Fully automated rooting script

Postby Toonz » Sat Feb 09, 2019 1:21 pm

rotzen wrote:Thanks guys! Works like a charm now!

PS> Do you know how to change the root password. I will forget the generated password quite soon I'm afraid ;-)

login to toon and enter: passwd
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1126
Joined: December 2016

Re: Fully automated rooting script

Postby TheHogNL » Sat Feb 09, 2019 2:26 pm

Toonz wrote:
rotzen wrote:Thanks guys! Works like a charm now!

PS> Do you know how to change the root password. I will forget the generated password quite soon I'm afraid ;-)

login to toon and enter: passwd


I'm not sure if the 'passwd' command is available from 5.0.4 toons. The earlier busybox removed the passwd command.

If not, you could go to this site: https://unix4lyfe.org/crypt/
Type your password twice, click on randomize DES and then Calculate DES. Paste the generated crypt password into the /etc/passwd file just after the root user name (between the two : ) where the current stored crypted password now is.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1078
Joined: August 2017

Re: Fully automated rooting script

Postby Kingnl » Sun Feb 10, 2019 12:40 pm

Hii
Just a couple questions. Does this script got the updated busybox and dropbear
I used this script for my toon and notice that FTP not worked. Pushed busybox Into it and bricked it :cry:
And that was with firmware 5.0.4
Okey got a new 1 with firmware 4.22.7
And again used this script and failed to install dropbear
And strange thing about it i use the same script on a r10 and it worked fine
But on a r9 it failes
So Does your script got the updated files thehognl???
Kingnl
Starting Member
Starting Member
 
Posts: 3
Joined: January 2019

Re: Fully automated rooting script

Postby TerrorSource » Sun Feb 10, 2019 1:27 pm

Kingnl wrote:Hii
Just a couple questions. Does this script got the updated busybox and dropbear
I used this script for my toon and notice that FTP not worked. Pushed busybox Into it and bricked it :cry:
And that was with firmware 5.0.4
Okey got a new 1 with firmware 4.22.7
And again used this script and failed to install dropbear
And strange thing about it i use the same script on a r10 and it worked fine
But on a r9 it failes
So Does your script got the updated files thehognl???


it does not install busybox. the update-script can do that for you.
dropbear is latest version, the one without dependencies. however there is an issue with Toonrooter on firmware 5.0.4. A Pull request was made by TheHogNL and me to solve it but martenjacobs needs to appy the pull before the changes are made in the original git.
TerrorSource
Member
Member
 
Posts: 281
Joined: May 2017

Re: Fully automated rooting script

Postby TheHogNL » Sun Feb 10, 2019 3:07 pm

Kingnl wrote:And strange thing about it i use the same script on a r10 and it worked fine
But on a r9 it failes
So Does your script got the updated files thehognl???


What do you mean with r9 and r10? The rooting script is not mine. It is marten jacobs script.

If you PM me, I could teamviewer you into fixing your bricked Toon 1.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1078
Joined: August 2017

Re: Fully automated rooting script

Postby Kingnl » Mon Feb 11, 2019 6:22 pm

TheHogNL wrote:
Kingnl wrote:And strange thing about it i use the same script on a r10 and it worked fine
But on a r9 it failes
So Does your script got the updated files thehognl???


What do you mean with r9 and r10? The rooting script is not mine. It is marten jacobs script.

If you PM me, I could teamviewer you into fixing your bricked Toon 1.


sorry i make an mistake i did meen U-Boot version 2010.09-R8 and the r10 uboot
it seem that the script need a few times befor it install the necessary files
its rooted now
do some1 know how to make a full nand back??
Kingnl
Starting Member
Starting Member
 
Posts: 3
Joined: January 2019

Re: Fully automated rooting script

Postby TheHogNL » Mon Feb 11, 2019 6:30 pm

Kingnl wrote:sorry i make an mistake i did meen U-Boot version 2010.09-R8 and the r10 uboot
it seem that the script need a few times befor it install the necessary files
its rooted now
do some1 know how to make a full nand back??


Nand backup is useless as on top of the nand a ubifs is created (on a toon1).
If you want to make a backup of your toon, just tar.gz all your files/dirs to a remote place. If you ever need to recover (u-boot/nfs/tftp method) you could easily restore your tar.gz to the toon1
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1078
Joined: August 2017

Re: Fully automated rooting script

Postby martenjacobs » Tue Feb 12, 2019 8:04 pm

I rooted a clean Toon with 5.0.4 today and made a few changes accordingly. The PR that TheHogNL made is also merged. I did notice a case where it may fail in some random cases (see the issue I created today). In these cases, rooting again should fix it.
martenjacobs
Member
Member
 
Posts: 51
Joined: March 2018

PreviousNext

Return to Toon Rooting

Who is online

Users browsing this forum: No registered users and 1 guest