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 Yesterday, 03:53 PM   #1
FalconFour
Member
FalconFour began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2018
Device: Kindle 7th Gen
Kindle Basic (2014, 7th Gen) Unbricking from "Boy and Tree" splash screen - Debug

So, my Kindle Basic (2014) - most similar to PW2 if not almost a direct rebrand of it - decided that instead of rebooting, it'd wedge itself at the "Boy and Tree" splash screen forever last night. I found this thread: https://www.mobileread.com/forums/sh...d.php?t=340387 - which showed what the internals looked like, and with some bezel peeling and a Torx T5 bit, I got to work. My symptom wasn't exactly the same - I had no reason for it not to be working, no flashing, just jailbroken. Most concerningly, I need to know if the extension I'm developing somehow had an effect on it (it doesn't do anything with the rootfs, any flashing, anything crazy - it just downloads a new "screensaver" image on a schedule every several minutes). So what could it be?

Soldered up wires to the "Serial Debug" pads, opened a terminal to the port at 115200 baud, and... I was greeted with open arms:


Cool. The battery is dead. Totally expected, since I left it sitting at boot overnight. This proceeded for a while...



Until eventually, "sufficient charge". Neat.


It proceeded to boot, but... That's not a normal Linux kernel boot log. There was a useful "recovery menu" that I could press a key at, but...



That's where it hangs. Just stuck here forever. OK, let's reset and watch for that recovery menu. I already know it's not the U-Boot "stop autoboot" I'm looking for (that's fine, that'll get me U-Boot, but I don't need that since I have a recovery menu that's offered). So what do we have there?


That's a handy toolkit. That ought to offer everything I need. Printing the buffer gives me the usual Linux boot messages I expect. So, that's attached (kindle-dmesg-log.txt).

Reboot (because it has a timer and I have to write things here, lol), and it gets hung again in the same place.

Sigh. "Export FAT partition"?



Kindle! There you are! The FAT filesystem appears on my PC. I can get my files (and more importantly... logs) off it! And there's no longer any timer counting down in the recovery menu - as long as the USB is mounted (it counts down if it's unplugged).

So, I bring over my Windows laptop (as I trust chkdsk far more than anything Mac can do), and run chkdsk. No errors. I back up the whole FAT volume. No errors.

I exit the recovery menu (reboot), and....?



Well, the console doesn't tell us much, but on-screen is now the happy USB message. Fully booted, connected, back to normal. Odd, the root password isn't blank, as it is over SSH. Probably usbnetwork does something neat there for SSH.

Moral of the story? I don't know. I think MacOS might have automatically/silently repaired the FAT partition when it was first connected. My extension's log file was now 0KB (completely empty), and the reason I rebooted it (at the start of this saga) was that it the log file was 2MB, but "corrupted" - which means the FAT filesystem had cross-links or other corruption (not the file itself), so the file couldn't be read, thus I rebooted. I still can't tell why that happens, but it does tell me I should probably be much more careful about writing log files (maybe write to a RAM-based /tmp folder & periodically copy it to the USB partition?).




But my Kindle is back, and now we've got some more info about the recovery options... if you've got the nerve to solder to those tiny pads.
Attached Files
File Type: txt kindle-dmesg-log.txt (24.3 KB, 7 views)
FalconFour is offline   Reply With Quote
Old Today, 12:54 PM   #2
FalconFour
Member
FalconFour began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2018
Device: Kindle 7th Gen
And with that, I've now updated the extension to probe for "userstoreIsAvailable" status before making any writes to its USB (FAT) files, which is a flag that goes to 0 whenever it's plugged-in to USB. Concurrent writes to a FAT volume can, as I've experienced, be fatal. So now the extension avoids those at every level. Could be a useful tip for anyone developing extensions of their own, too.

https://github.com/FalconFour/online...92fec8bddcf751
FalconFour is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KT3 "Bricked" Kindle Touch Basic 8th Gen KT3 dancingbear84 Kindle Developer's Corner 0 08-23-2023 06:16 AM
Amazon Kindle 7th Gen stuck on Tree Screen after deleting ".active_content_sandbox" thelink10 Amazon Kindle 10 11-09-2021 05:54 PM
Kindle Voyage can't proceed past the initial "tree" screen njt Kindle Developer's Corner 9 05-10-2016 12:34 PM
2014 basic "Kindle Touch" for sideloaded e-books? Max404 Which one should I buy? 2 01-13-2015 06:43 PM


All times are GMT -4. The time now is 06:02 PM.


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