![]() |
#1 |
rm -rf /
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 3333533
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
|
Possible new downgrade method
I was poking around recovery-util a while back and might have discovered a novel method of downgrading the firmware version used by a (jailbroken) device. recovery-util mounts the rootfs early in the boot process and when a update is found and processed by this program, the build number seems to be checked against the build number in the file /etc/version.txt.
This file looks something like this: Code:
System Software Version: 060-juno_1402_malbec_bellatrix-380729 Tue Feb 1 08:37:30 UTC 2022 com.lab126.eink.malbec.os It appears to be possible to trick the updater in recovery-util into applying an unmodified update binary by changing the build number used in the file above to the build number of the update before the update you wish to install (the build numbers can be found as part of the filename of the source tarballs found here). Note that I've only tested this a couple of times and on devices where you can actually access the serial port; you may or may not run the risk of bricking your device if you attempt to downgrade using this method. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: pw
|
Mmmhhh, this thread is interesting...
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2022
Device: KO3
|
Nice find katadelos!
But this might be useful only for jailbroken devices? |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
Karma: 100000
Join Date: Nov 2010
Device: None
|
Does this mean you need the serial port to perform this downgrade or that you might need the serial port if you accidently brick the device?
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,939
Karma: 91520672
Join Date: Apr 2011
Device: pb360
|
/etc/version.txt can only be accessed after jailbreak.
Serial port allows you to recover from bricking. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Kindle priest
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 50027
Join Date: Oct 2019
Location: Kharkiv,Ukraine
Device: Kindle Paperwhite 5
|
Paperwhite 5 SE with 5.14.3 - changed value to 3807290060 - got "UPDATE ERROR: 12"
also "380729","3783100001" doesnt work too. but "378310" is worked. downgraded from 5.14.3 to 5.14.2 1)Mount filesystem as writable "mntroot rw" 2)Open /etc/version.txt - replace 383089(if you on 5.14.3) to 378310 3)copy update file from 5.14.2 to mnt/us 4)Reboot After reboot ur Kindle "updated" to 5.14 2 Last edited by darkassassinua; 05-13-2022 at 12:58 PM. |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2022
Device: KO3
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 32
Karma: 50
Join Date: May 2022
Device: PW3 and PW5
|
sorry i'm noob.
How do I do step 1: 1)Mount filesystem as writable "mntroot rw" ? I used the KOreader text editor but I can't modify the version.txt file |
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 32
Karma: 50
Join Date: May 2022
Device: PW3 and PW5
|
1)Mount filesystem as writable "mntroot rw"
sorry, but how do i do that? ![]() |
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,939
Karma: 91520672
Join Date: Apr 2011
Device: pb360
|
Quote:
Do you know how to use the editor vi or nano? The instructions are there every time you ssh to the kindle: Code:
ssh root@pw3 ################################################# # N O T I C E * N O T I C E * N O T I C E # ################################################# Rootfs is mounted read-only. Invoke mntroot rw to switch back to a writable rootfs. ################################################# [root@kindle root]# And, of course, it needs to be set back to ro when you are finished. |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() Posts: 34
Karma: 100
Join Date: Jul 2016
Device: Booken Cybook Odyssey Frontlight 2
|
Okay, I'm excited about this, but for a completely different reason...
I believe by modifying the build values here, one could essentially block firmware updates completely (at least until Amazon catches up with the version number supplied), essentially making sure that your jailbreak doesn't get wiped out because Amazon forced an update even though you turned off auto updates. |
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 32
Karma: 50
Join Date: May 2022
Device: PW3 and PW5
|
|
![]() |
![]() |
![]() |
#13 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,207
Karma: 25767288
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Wiping (at least) some of the more database-y stuff from /var/local might be a good idea before attempting a significant (or maybe even a not so significant one) downgrade, because nothing in the process is intended to support database downgrades
![]() IIRC, back in the olden days, at worst it just broke stuff at runtime, but there is a non-zero chance it could break the boot, which would be bad ![]() |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,939
Karma: 91520672
Join Date: Apr 2011
Device: pb360
|
Presumably, someday, there will be step by step easy instructions, maybe even a KUAL extension. The latter might be tricky, because not all model, build number, and firmware version combinations would be compatible. But eventually, this should be among the simplest and easiest significant hacks.
|
![]() |
![]() |
![]() |
#15 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,939
Karma: 91520672
Join Date: Apr 2011
Device: pb360
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
Tags |
firmware, firmware downgrade |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Alternative method to downgrade KT2? | DanielSt | Kindle Developer's Corner | 12 | 02-26-2022 04:03 PM |
Firmware Update Is there any method to downgrade kindle paperwhite from 5.4.4 to 5.3.5? | mycityofsky | Amazon Kindle | 84 | 07-29-2015 04:45 AM |
How to downgrade fv. from 3.1 to 3.0.3 | apofview | Kindle Developer's Corner | 3 | 02-12-2011 09:56 AM |
downgrade to 1.0.0? | prsnOOb | Sony Reader | 1 | 10-08-2008 04:34 AM |