martenjacobs / ToonRooter

This script roots your Toon
MIT License
38 stars 17 forks source link

No bootloader change and no SSH access after run #9

Closed Geo-Ron closed 5 years ago

Geo-Ron commented 5 years ago

Hey Marten,

First of all, great and fun piece of work! Thanks for this!

I wanted to let you know, it didn't work for me. The instructions are clear and very useful.

Everything seems to run ok, but I see no changes after the script ran. To me it seems that the OCD part didn't work, as the bootloader remains the same, to be exact: U-Boot 2010.09-R10 (Dec 14 2015 - 19:28:18)

How can I gather logging to find out what is going wrong?

Setup:

The script output:

pi@PI3_kamer:~/ToonRooter $ sudo python . --jtag-available
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
INFO:rooter:Patching U-Boot
INFO:rooter:Waiting for boot up
INFO:rooter:Transferring payload
INFO:rooter:Patching Toon
INFO:rooter:Cleaning up
INFO:rooter:Rebooting
INFO:rooter:Your Toon is now rooted. Please wait for it to boot up and try to log in using SSH
pi@PI3_kamer:~/ToonRooter $ 
Geo-Ron commented 5 years ago

Update: I have found the domoticaforum again and learned that the bootloader downgrade is temporary.

I will output the verbose logging this weekend on my next try. Had to give up because of the drop in temperature 😉

martenjacobs commented 5 years ago

Hi Ron,

Please make sure you're trying to connect to the Toon with the key pair. With the output you're getting it's not to be expected that something went wrong during rooting and your wiring and OpenOCD are working fine as well (otherwise it would hang at Waiting for Toon to restart). Also make sure you're using the latest version of ToonRooter. I've just yesterday merged #8 which is required to enable SSH on 5.0.4.

Please let me know if you get it working, so I can close this issue.

Cheers, Marten

Geo-Ron commented 5 years ago

Marten,

I ran the application again today with logging level DEBUG, after I fetched the latest version. Nothing to see in the output. Everything seems to run as normal.

I went into the device using the serial and applied every step in patch_toon.sh manually. Now I have got everything working. I was not able to run the script, it errored out with the notification /dev/urandom is unavailable. Manually providing the hashed password did not help either. No output from the script.

But I am good to go now. Your script helped me a lot, because of the bootloader downgrade.

martenjacobs commented 5 years ago

Okay, closing because there's not enough information here to reproduce