Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2018, 01:37 AM   #16
hius07
Groupie
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 163
Karma: 453216
Join Date: Sep 2014
Device: Kindle PW2, PW3
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
hius07 is online now   Reply With Quote
Advert
Old 04-11-2018, 09:06 AM   #17
knc1
Analog Forever!
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 16,079
Karma: 17222570
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.
knc1 is offline   Reply With Quote
Old 04-11-2018, 10:38 AM   #18
hius07
Groupie
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 163
Karma: 453216
Join Date: Sep 2014
Device: Kindle PW2, PW3
Thank you, I have your backup script, I'll look at it. I see it is not a good idea to overwrite running system.
hius07 is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle 3 sysvinit scripts Feathers_McGraw Kindle Developer's Corner 10 08-29-2016 06:53 PM
Firmware upgrade scripts davidfor Kobo Developer's Corner 29 04-29-2014 04:34 PM
K4 My Kindle 4 NT does not execute RUNME.sh! HariSeldon85 Kindle Developer's Corner 15 09-03-2012 01:52 PM
K5 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


All times are GMT -4. The time now is 10:52 AM.


MobileRead.com is a privately owned, operated and funded community.