Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Fully automated rooting script

Postby Ishimaru » Sat Sep 14, 2019 2:32 pm

Hi,

can someone help me with this issue?

root@raspberrypi:~/ToonRooter# sudo python . --jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:Cannot autodetect jtag hardware

root@raspberrypi:~/ToonRooter# sudo python . --jtag-hardware rpi3
INFO:__main__:Starting up...
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
--- waiting forever :-) --


root@raspberrypi:~/ToonRooter# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2835
Revision : 2a02082
Serial : 0000000003d4f64b
Ishimaru
Starting Member
Starting Member
 
Posts: 1
Joined: September 2019

Re: Fully automated rooting script

Postby TheHogNL » Sat Sep 14, 2019 7:02 pm

Ishimaru wrote:Hi,

can someone help me with this issue?

root@raspberrypi:~/ToonRooter# sudo python . --jtag-hardware rpi3
INFO:__main__:Starting up...
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
--- waiting forever :-) --


Did you restart your Toon at that point? If yes, then check your (serial) cabling from your Pi to the Toon. This part is just serial line output checks and if that doesn't work the script can't do anything.

Also the reason why the script isn't detecting your Pi3 is because your warranty-bit is set in the revision number 2a02082 (normal pi3-b is a02082).
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1161
Joined: August 2017

Re: Fully automated rooting script

Postby finalcut62 » Tue Sep 17, 2019 10:09 am

Marten, jouw script heeft t gisteren perfect gedaan. Heb jij nog een donatie-optie, zodat ik je op z'n minst een paar biertjes kan doneren via Paypal?
finalcut62
Starting Member
Starting Member
 
Posts: 4
Joined: September 2019

Re: Fully automated rooting script

Postby martenjacobs » Fri Sep 27, 2019 11:46 am

finalcut62 wrote:Marten, jouw script heeft t gisteren perfect gedaan. Heb jij nog een donatie-optie, zodat ik je op z'n minst een paar biertjes kan doneren via Paypal?


Hi finalcut62,

You're welcome. No need to donate anything.
martenjacobs
Member
Member
 
Posts: 52
Joined: March 2018

Re: Fully automated rooting script

Postby Maanbaviaan » Fri Sep 27, 2019 9:00 pm

I got the script working on 1 Toon and it is rooted.
But my second Toon seems to hang
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi3'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
INFO:rooter:Waiting for 10 seconds
INFO:rooter:Halting CPU
INFO:rooter:Loading new image to RAM
INFO:rooter:Starting up new image
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09
INFO:rooter:Using password to log in
INFO:rooter:Logging in to U-Boot


What's wrong?
Maanbaviaan
Starting Member
Starting Member
 
Posts: 6
Joined: October 2018

Re: Fully automated rooting script

Postby TheHogNL » Sat Sep 28, 2019 7:22 am

Try with log-level DEBUG and show us the output
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1161
Joined: August 2017

Re: Fully automated rooting script

Postby Maanbaviaan » Sat Sep 28, 2019 12:16 pm

I recompiled openocd and it seems to work.

Just for my info. In TSC the tariff button is not working right?
Maanbaviaan
Starting Member
Starting Member
 
Posts: 6
Joined: October 2018

Re: Fully automated rooting script

Postby TheHogNL » Sat Sep 28, 2019 12:40 pm

Maanbaviaan wrote:I recompiled openocd and it seems to work.

Just for my info. In TSC the tariff button is not working right?


It should work. What happens in your Toon when you press it?
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1161
Joined: August 2017

Re: Fully automated rooting script

Postby Maanbaviaan » Sat Sep 28, 2019 1:57 pm

It opens and I see nothing. Just a grey background.
Maanbaviaan
Starting Member
Starting Member
 
Posts: 6
Joined: October 2018

Re: Fully automated rooting script

Postby TheHogNL » Sat Sep 28, 2019 3:46 pm

Maanbaviaan wrote:It opens and I see nothing. Just a grey background.


Toon1 or Toon2 and on which firmware?
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1161
Joined: August 2017

Re: Fully automated rooting script

Postby Maanbaviaan » Sun Sep 29, 2019 10:42 am

I just received a message to install tsc 2.0.1 and firmware .5.9.6
Seems to work with the tariffs. But don't have buienradar or afvalkalender.
All data is empty. Did I miss something?
Why is it working out-of-the-box on my other toon and this one isn't
Maanbaviaan
Starting Member
Starting Member
 
Posts: 6
Joined: October 2018

Re: Fully automated rooting script

Postby TheHogNL » Sun Sep 29, 2019 11:57 am

Maanbaviaan wrote:I just received a message to install tsc 2.0.1 and firmware .5.9.6
Seems to work with the tariffs. But don't have buienradar or afvalkalender.
All data is empty. Did I miss something?
Why is it working out-of-the-box on my other toon and this one isn't


Should work. Maybe something failed during upgrade of those apps while updating the firmware. Try removing and reinstalling the apps using toonstore.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1161
Joined: August 2017

Re: Fully automated rooting script

Postby Monoposto013 » Tue Oct 01, 2019 6:23 pm

Hi, new here, learned a lot already from just browsing the forum, but now in need of the cavalry.. :D

Tried to root my Toon with the automated script... but got stuck and sadly didn't get any wiser reading through this topic :cry:
I found 1 similar issue that implied a flash memory containing bad blocks.. hope that's not the case..

Debug output from the script:

pi@raspberrypi:~ $ cd ToonRooter
pi@raspberrypi:~/ToonRooter $ sudo python . --output-level DEBUG
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi3'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
DEBUG:__main__:{"uboot_only": false, "has_jtag": false, "check_uboot": true, "boot_only": false, "reboot_after": true, "cleanup_payload": true, "port": "/dev/serial0", "jtag_hardware": "rpi3", "ssh_pubkey_data": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmwmuaWOAXl0By3XxspuKiQyv+0SYjUz3SELhBDK1PJ0a8A3P2reTko+nE8v0N7sNYTBcbZZEgNfLmEBtkm3+Tt2ZCujkFoHbouugr9un2+zO/Qkj2NmrN9oDD0zCOA0sfD6geRux9JrHcidyWmr/QXLVcMrN4xhiaVtFcNobqMzG6MIYpSWEVvuW0NfDkTd++jkfloAUIUudFgbX3xQokHgRdeddT7g04xulKLncadTCLwhk+5UzGu++U9ow6boATSjepILMPtz1kdv9DoiuISd4AoIhN2tw3WFgMvxPGG4NOSR1npy9VTYqLBYTcxOFafdBclQie3qm5aEscbFSf"}
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R8
INFO:rooter:Using password to log in
INFO:rooter:Logging in to U-Boot
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/ToonRooter/__main__.py", line 175, in <module>
main()
File "/home/pi/ToonRooter/__main__.py", line 171, in main
rooter.Rooter(**params).run()
File "./rooter.py", line 58, in run
self.access_uboot(uboot_passwords[uboot_version])
File "./rooter.py", line 97, in access_uboot
log.debug(self._port.read_until("U-Boot>"))
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 640, in read_until
c = self.read(1)
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 490, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
pi@raspberrypi:~/ToonRooter $

Could someone give me a hint please in the right direction? Thanks in advance,
Monoposto013
Starting Member
Starting Member
 
Posts: 5
Joined: October 2019

Re: Fully automated rooting script

Postby TheHogNL » Wed Oct 02, 2019 6:36 am

Monoposto013 wrote:Could someone give me a hint please in the right direction? Thanks in advance,


The hint is in the last line of the DEBUG message " or multiple access on port?" Check the README of the ToonRooter "Then make sure ... the serial console is disabled using raspi_config and reboot if necessary."
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1161
Joined: August 2017

Re: Fully automated rooting script

Postby Monoposto013 » Wed Oct 02, 2019 10:34 am

TheHogNL wrote:
Monoposto013 wrote:Could someone give me a hint please in the right direction? Thanks in advance,


The hint is in the last line of the DEBUG message " or multiple access on port?" Check the README of the ToonRooter "Then make sure ... the serial console is disabled using raspi_config and reboot if necessary."


And... it was as easy as that :roll:
Thought I saved some changes... but checked them and the problem was exactly the console.. Toon succesfully rooted, thanks!
Monoposto013
Starting Member
Starting Member
 
Posts: 5
Joined: October 2019

PreviousNext

Return to Toon Rooting

Who is online

Users browsing this forum: No registered users and 1 guest