04-11-2018, 01:37 AM | #16 |
Wizard
Posts: 1,058
Karma: 3581267
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Assume I am on the jailbroken device with 5.9.4 firmware and got uImage and rootfs.img from, say, 5.8.7.0.1 update bin. Will this script downgrade the firmware?
Code:
#!/bin/sh dd if=/mnt/us/uImage of=/dev/mmcblk0 bs=4096 seek=65 dd if=/mnt/us/rootfs.img of=/dev/mmcblk0p1 bs=4096 |
04-11-2018, 09:06 AM | #17 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Almost.
*) Take a look at my Backup script to confirm that offset (seek) of 65*4096 for the uImage (the backup script tests the recovered uImage to be certain of both its start and its length) *) The runme script is a function of the 'main' operating system and here you are replacing the system that is running. A *nix system allows open files that are in-use to be replaced (hot replacement), but I don't think replacing the entire system while it is running is a "good idea". That is something which has always been avoided in the series 5.x de-bricking and I feel best sticking with what geekmaster found should be avoided. Now a runme script that reboots the system into "diags", so that you can replace the "main" system when it is shut down (cold replacement), that is what geekmaster always posted in the past. (Note: He is in gamma knife surgery this morning, so it is not a good idea to be PM'ing him on this subject now.) Sorry, I don't have a link to the backup script, but it is in a thread started by myself, that should make it easier to find. Last edited by knc1; 04-11-2018 at 09:09 AM. |
Advert | |
|
04-11-2018, 10:38 AM | #18 |
Wizard
Posts: 1,058
Karma: 3581267
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Thank you, I have your backup script, I'll look at it. I see it is not a good idea to overwrite running system.
|
08-10-2018, 11:26 AM | #19 |
Groupie
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Has anyone tried to shutdown the device completely by using
Code:
#!/bin/sh halt |
08-10-2018, 11:57 AM | #20 | |
Grand Sorcerer
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
|
|
Advert | |
|
08-10-2018, 02:45 PM | #21 | |
Groupie
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Quote:
|
|
08-10-2018, 04:31 PM | #22 | |
Grand Sorcerer
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
It works fine on the Voyage, but it turns out I've never tried it on the KOA2. I just did. It halts fine, but it shows the boy sitting under a tree and says something like: "Please wait while your Kindle starts" even though it is off. When the power button is pressed, it boots as normal. ETA: It's been so long since I used it on the Voyage that I forgot the Voyage also shows the boy under the tree screen even though it is off. Last edited by j.p.s; 08-10-2018 at 04:53 PM. |
|
08-11-2018, 02:52 AM | #23 | |
Groupie
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Quote:
Thank you very much for testing and yes this is the same behavior as on the Voyage. I had one last year but it got broken, so I will try to get the new Oasis with factory fw. |
|
08-17-2018, 01:48 AM | #24 |
Groupie
Posts: 168
Karma: 100329
Join Date: Apr 2017
Location: Leipzig/Germany
Device: PW3, KT3 (fw 5.8.11 with jb)
|
|
Tags |
fake registration, runme |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 3 sysvinit scripts | Feathers_McGraw | Kindle Developer's Corner | 11 | 03-10-2021 02:05 AM |
Firmware upgrade scripts | davidfor | Kobo Developer's Corner | 29 | 04-29-2014 04:34 PM |
My Kindle 4 NT does not execute RUNME.sh! | HariSeldon85 | Kindle Developer's Corner | 15 | 09-03-2012 01:52 PM |
is it possible to run k5 launchpad scripts on k5 | techiemonkey | Kindle Developer's Corner | 3 | 07-30-2012 09:10 AM |
Network Control Scripts | synerr | iRex | 3 | 01-13-2008 06:54 AM |