Fully automated rooting script

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

Ishimaru
Starting Member
Starting Member
Posts: 1
Joined: Sat Sep 14, 2019 3:26 pm

Re: Fully automated rooting script

Post by Ishimaru »

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

Re: Fully automated rooting script

Post by TheHogNL »

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
finalcut62
Starting Member
Starting Member
Posts: 4
Joined: Sat Sep 14, 2019 4:59 pm

Re: Fully automated rooting script

Post by finalcut62 »

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

Re: Fully automated rooting script

Post by martenjacobs »

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.
Maanbaviaan
Starting Member
Starting Member
Posts: 6
Joined: Thu Oct 18, 2018 10:42 pm

Re: Fully automated rooting script

Post by Maanbaviaan »

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

Re: Fully automated rooting script

Post by TheHogNL »

Try with log-level DEBUG and show us the output
Member of the Toon Software Collective
Maanbaviaan
Starting Member
Starting Member
Posts: 6
Joined: Thu Oct 18, 2018 10:42 pm

Re: Fully automated rooting script

Post by Maanbaviaan »

I recompiled openocd and it seems to work.

Just for my info. In TSC the tariff button is not working right?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
Maanbaviaan
Starting Member
Starting Member
Posts: 6
Joined: Thu Oct 18, 2018 10:42 pm

Re: Fully automated rooting script

Post by Maanbaviaan »

It opens and I see nothing. Just a grey background.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Fully automated rooting script

Post by TheHogNL »

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
Maanbaviaan
Starting Member
Starting Member
Posts: 6
Joined: Thu Oct 18, 2018 10:42 pm

Re: Fully automated rooting script

Post by Maanbaviaan »

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

Re: Fully automated rooting script

Post by TheHogNL »

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
Monoposto013
Starting Member
Starting Member
Posts: 7
Joined: Tue Oct 01, 2019 7:15 pm

Re: Fully automated rooting script

Post by Monoposto013 »

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

Re: Fully automated rooting script

Post by TheHogNL »

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
Monoposto013
Starting Member
Starting Member
Posts: 7
Joined: Tue Oct 01, 2019 7:15 pm

Re: Fully automated rooting script

Post by Monoposto013 »

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

Return to “Toon Rooting”