Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

rotzen
Starting Member
Starting Member
Posts: 9
Joined: Fri Feb 08, 2019 10:23 am

Re: Fully automated rooting script

Post by rotzen »

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 ;-)
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: Fully automated rooting script

Post by mAiden »

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 :)
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Fully automated rooting script

Post by TerrorSource »

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.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
rotzen
Starting Member
Starting Member
Posts: 9
Joined: Fri Feb 08, 2019 10:23 am

Re: Fully automated rooting script

Post by rotzen »

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 ;-)
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Fully automated rooting script

Post by Toonz »

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
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
Kingnl
Starting Member
Starting Member
Posts: 3
Joined: Wed Jan 02, 2019 2:10 pm

Re: Fully automated rooting script

Post by Kingnl »

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???
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Fully automated rooting script

Post by TerrorSource »

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.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
Kingnl
Starting Member
Starting Member
Posts: 3
Joined: Wed Jan 02, 2019 2:10 pm

Re: Fully automated rooting script

Post by Kingnl »

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??
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
martenjacobs
Member
Member
Posts: 53
Joined: Fri Mar 09, 2018 4:13 pm

Re: Fully automated rooting script

Post by martenjacobs »

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.
Post Reply

Return to “Toon Rooting”