Page 15 of 23

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 11:27 am
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 ;-)

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 12:25 pm
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 :)

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 4:20 pm
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.

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 4:20 pm
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.

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 5:05 pm
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.

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 9:46 pm
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

Re: Fully automated rooting script

PostPosted: Fri Feb 08, 2019 11:26 pm
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 ;-)

Re: Fully automated rooting script

PostPosted: Sat Feb 09, 2019 1:21 pm
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

Re: Fully automated rooting script

PostPosted: Sat Feb 09, 2019 2:26 pm
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.

Re: Fully automated rooting script

PostPosted: Sun Feb 10, 2019 12:40 pm
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???

Re: Fully automated rooting script

PostPosted: Sun Feb 10, 2019 1:27 pm
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.

Re: Fully automated rooting script

PostPosted: Sun Feb 10, 2019 3:07 pm
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.

Re: Fully automated rooting script

PostPosted: Mon Feb 11, 2019 6:22 pm
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??

Re: Fully automated rooting script

PostPosted: Mon Feb 11, 2019 6:30 pm
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

Re: Fully automated rooting script

PostPosted: Tue Feb 12, 2019 8:04 pm
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.