Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-16-2022, 07:21 AM   #1
tinman1
Junior Member
tinman1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2022
Device: pw4
Can OTA update package be modified?

Hi All,

I have been reading this forum for a few months now and it has been really useful for successfully jail breaking my Kindle so thanks very much for all your help.

I have been trying to modifying the OTA update packages available from amazon using KindleTool.

My Kindle has fw 5.11.2 and is jailbroken. I am trying to modify update_kindle_all_new_paperwhite_v2_5.13.7.bin.

So far I have extracted it using KindleTool and modified the rootfs.img.gz file. I then repacked it using the cmd:

./kindletool create recovery2 -c 0 -1 2048630901 -2 1897089723 -m 1 -p rex -b FB03 -d pw4lg imx6s11_rex/* rootfs.img.gz ../update_kindle_all_new_paperwhite_v2_5.13.7-mod.bin

I copy the .bin file to the Kindle root folder and reboot. The update fails with ERROR 4 and dmesg logs that the key length is incorrect (256 not 128). I have also tried it with the prod keys (-c 1 and -c 2) and with omitting the magic numbers and that also failed. I have also tried with 'Update Kindle' but that is always grayed out and also with MRPI.

Does anyone know if this is likely to be an error with my KindleTool args or if this is something that just can't be done on a PW4?
tinman1 is offline   Reply With Quote
Old 09-16-2022, 12:02 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,480
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
You can't run custom recovery packages without also patching the initrd to accept your signing key.

The only practical example of that ever having been done was in @yifanlu's FW 3.x-on-the-DX thingy, IIRC (which predates KindleTool, but the concept is still the same).

(Also, as the error says, current initrds *require* a 2K signing key, while our OTA JB key is 1K, because that's the length required for the dev key slot. IIRC, there's only one 2K slot: 2).

Last edited by NiLuJe; 09-16-2022 at 12:07 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 09-16-2022, 12:28 PM   #3
tinman1
Junior Member
tinman1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2022
Device: pw4
Thanks for your quick reply.
I'll take a look @yifanlu's thingy although I think I might be in a chicken-egg situation here as the reason I was looking to update the OTA package was because I think serial access is blocked on the PW4 so patching initrd may not be feasible.
tinman1 is offline   Reply With Quote
Old 09-16-2022, 03:36 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,480
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Indeed, this is not usable as a JB vector because it requires software modification (at least it's not usable as in entry point vector) .
NiLuJe is offline   Reply With Quote
Reply

Tags
kindletool, pw4, recovery2


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OTA update failure roger64 KOReader 1 02-06-2020 08:33 AM
EPUB3 Validation Error - Assertion failed: package dcterms:modified meta element mu grahamnaismith ePub 7 02-14-2019 09:44 AM
[Kindle 3G] No update by OTA since last firmware update THE DBX KOReader 0 07-01-2018 12:33 PM
Could this be the OTA update file? DalekVoid Kindle Developer's Corner 5 08-30-2015 10:25 AM
5.6.1 OTA Update lredgen Kindle Developer's Corner 2 12-17-2014 06:07 PM


All times are GMT -4. The time now is 08:01 PM.


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