Fully automated rooting script
Moderators: marcelr, TheHogNL, Toonz
Re: Fully automated rooting script
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
If you want to debug your script, you can use my Toon btw
Re: Fully automated rooting script
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
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
Re: Fully automated rooting script
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.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
Member of the Toon Software Collective
Re: Fully automated rooting script
Time for a teamviewer somewhere tonight? Just PM me your 06-number so I can whatsapp you.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
Member of the Toon Software Collective
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Fully automated rooting script
Tried the --boot-only parameter?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
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
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
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
Re: Fully automated rooting script
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
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
login to toon and enter: passwdrotzen 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
member of the Toon Software Collective
Re: Fully automated rooting script
I'm not sure if the 'passwd' command is available from 5.0.4 toons. The earlier busybox removed the passwd command.Toonz wrote:login to toon and enter: passwdrotzen 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
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
Re: Fully automated rooting script
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
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???
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
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???
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Fully automated rooting script
it does not install busybox. the update-script can do that for you.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
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???
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
What do you mean with r9 and r10? The rooting script is not mine. It is marten jacobs script.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???
If you PM me, I could teamviewer you into fixing your bricked Toon 1.
Member of the Toon Software Collective
Re: Fully automated rooting script
sorry i make an mistake i did meen U-Boot version 2010.09-R8 and the r10 ubootTheHogNL wrote:What do you mean with r9 and r10? The rooting script is not mine. It is marten jacobs script.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???
If you PM me, I could teamviewer you into fixing your bricked Toon 1.
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
Nand backup is useless as on top of the nand a ubifs is created (on a toon1).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??
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
-
- Member
- Posts: 53
- Joined: Fri Mar 09, 2018 4:13 pm
Re: Fully automated rooting script
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.