![]() |
#1 | |
Enhtusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 2332557
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
|
Restore ;log command for 5.12.* firmware
This will work if and only if recent jailbreak hotfix was installed before the update.
This script modifies debug_cmds.json file so it includes again ;log command. It also adds ;mrpi command that launches mrpi (has to be installed in the default extensions location) Code:
{ ";log" : "/usr/bin/logThis.sh", ";mrpi" : "/mnt/us/extensions/MRInstaller/bin/mrinstaller.sh launch_installer", KUAL installation requires MRPI and MRPI requires ;log command to install KUAL (or maybe there's an easier method I've missed somewhere?...) Installation:
If the files from 3. did not appear and you can still see emergency.sh file then try reinstalling the JB hotfix. After successful execution you can unpack MRPI to USB root, add KUAL package to mrpackages folder and run ;mrpi command. Note: if anything goes wrong, i.e new_debug_cmds.json looks malformed, copy emergency_revert.sh to USB root, rename it to emergency.sh and restart the Kindle. EDIT: this debug-list fix can probably be included in JB hotfix, but quoting logThis.sh code: Quote:
Last edited by MrTick; 12-09-2019 at 06:17 AM. |
|
![]() |
![]() |
![]() |
#2 | |
Nil adsuetudine maius
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
Quote:
;log command MIA in 5.12.2 I believe. NiLuJe made a hotfix variant of KUAL that can by installed by UYK (Update Your Kindle) instead. See here. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enhtusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 2332557
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
|
Quote:
![]() Last edited by MrTick; 12-09-2019 at 06:43 AM. |
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Sep 2017
Device: PW3/4
|
Wow, it restored the jailbreak on my PW4 5.12.2! Previously, I tried the UYK method but it didn't work (error 007).
Gorgeous, thanks a lot! Last edited by pavel-s; 12-09-2019 at 08:51 AM. |
![]() |
![]() |
![]() |
#5 |
Enhtusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 2332557
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,089
Karma: 25013698
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2 & PW5; Kobo H2O, Forma, Elipsa & Sage
|
Yeah, I didn't want to do it this way because that'd be one more thing to keep track of in the bridge and it's potentially a moving target, plus I'd have had to double-check the depgraph to check when best to patch it, hence that comment in the dispatcher
![]() But, it is an entirely viable approach if you want to bother with it. |
![]() |
![]() |
![]() |
#7 |
Nil adsuetudine maius
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
^ Typo. You spelt efficient "lazy"
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 48
Karma: 10
Join Date: Oct 2011
Device: PW2 3G, KV 3G
|
Thanks for this. Works like a charm.
|
![]() |
![]() |
![]() |
#9 | |
Enhtusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 2332557
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
|
Quote:
![]() Another hotfix-addon I was wondering recently (at least for PW4+) was the serial console access. New firmware, right after console startup executes /etc/upstart/custom-login: Code:
#!/bin/sh echo '--- SORRY, LOGIN IS DISABLED ON DEVICE ---' # Disable Ctrl-C trap '' 2 # Sleep indefinitely while true; do sleep 86400; done So maybe purging custom-login would be a nice hotfix-addon (backwards-compatible and probably easier to maintain also ![]() |
|
![]() |
![]() |
![]() |
#10 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Stray thought:
The only real reason for disabling the serial console at a specific point in the start-up sequence is because it was previously enabled in the start-up sequence. Can you trace back the upstart sequencing to find something else useful about the serial console along upstart's path. IIRC, there are tools to graph or trace the upstart sequence. Tools that can be run "cold", I.E: only the upstart directory structure is required, not actually executed. |
![]() |
![]() |
![]() |
#11 |
Enhtusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 2332557
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
|
The custom-login is executed by /etc/upstart/console.conf:
Code:
(...) # This feature is introduced from Zelda platform. For older platforms, we keep the login unlocked (...) if [ "$prodVersion" == "0" -o "$unlockedKernel" == "true" -o "$secureCpu" = "0" ]; then #Unlocked Prompt if: unlockedKernel or not prod or not secure cpu exec getty -L $BAUD /dev/$UART 2>> $STDERR else exec getty -L $BAUD /dev/$UART -i -n -l /etc/upstart/custom-login 2>> $STDERR fi Unfortunately I've left my Kindle at work so I need to wait with experiments till tomorrow ![]() |
![]() |
![]() |
![]() |
#12 | ||
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Quote:
I suggest that we trash everything of that 'if' statement except the: Code:
exec getty -L $BAUD /dev/$UART -i -n -l /etc/upstart/custom-login 2>> $STDERR |
||
![]() |
![]() |
![]() |
#13 |
Enhtusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 2332557
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
|
|
![]() |
![]() |
![]() |
#14 |
Nil adsuetudine maius
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
I don't know half of what knc1 does on the subject, but that does look like a typo.
Bad knc1. No posting until you've had coffee. ;p Code:
secure_cpu: 1, production: 1, unlocked: 0 So we'd want to keep the following: Code:
exec getty -L $BAUD /dev/$UART 2>> $STDERR |
![]() |
![]() |
![]() |
#15 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
If it does not say what it means, then all bets are off. |
|
![]() |
![]() |
![]() |
Tags |
;log |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle DXG B009 Restore firmware??? | blackwolf511 | Kindle Developer's Corner | 24 | 09-14-2016 04:31 PM |
Does anyone have a Kindle dxg firmware 2.5.8 restore file to downgrade from 3.2.1? | gczobel | Kindle Developer's Corner | 2 | 09-08-2015 10:22 AM |
does anyone have a kindle dxg firmware 2.5.8 restore file to downgrade from 3.2.1? | baruleluna | Kindle Developer's Corner | 3 | 09-30-2013 05:43 PM |
PRS-950 HELP PLZ! How to restore PRS-950's firmware back to ver.1 ? | hitman | Sony Reader Dev Corner | 0 | 02-26-2013 12:10 PM |
any one has kindle dx restore firmware?? | chinaet | Kindle Developer's Corner | 0 | 07-25-2009 05:14 AM |