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 08-04-2015, 04:51 PM   #1
AirRaven
Member
AirRaven began at the beginning.
 
AirRaven's Avatar
 
Posts: 11
Karma: 10
Join Date: Aug 2015
Device: Kindle Paperwhite (1st gen), Kindle 3 (3G)
PW1 Brick Recovery - Rescue Pack installed, stuck on Tree/Logo Screen

Hey,

This is, obviously, self-inflicted - I was attempting to install the Screensaver Hack's Python package on my (downgraded) 5.3.9 Paperwhite 1 using MRPackageInstaller, and the installation process hung for upward of ten minutes - having taken leave of my senses, I decided to force-reboot the Kindle at that point to try and escape that process.

The result's that my Kindle's now hanging on the Kindle Logo/Tree screen with a spinning progress wheel underneath it - with no progress beyond that. I've already tried discharging/fully recharging my battery- obviously, that wouldn't have helped in this case, but it cropped up in every prior thread I could find as the first thing that ought to be tried.

I'd just installed the Rescue Pack package a single reboot before this happened, and I was hoping to be able to activate that - but the Kindle doesn't show up as an accessible drive in Windows Explorer. It's clearly recognised as a USB Storage device, and shows up in Explorer as a grayed-out drive, but attempting to open it doesn't seem to make anything happen. Thus, I've no immediately obvious way of getting into Diags mode/forcing a factory reset, since they require the ability to push files to the device to activate.

However, since something is being recognised at the other end of the USB link, I went and booted into Linux to check some logs. Here's the output of /var/log/syslog upon plugging in the Kindle:

Code:
Aug  4 20:04:07 ubuntu kernel: [  600.398194] usb 1-1: new high-speed USB device number 7 using xhci_hcd
Aug  4 20:04:07 ubuntu kernel: [  600.532601] usb 1-1: New USB device found, idVendor=1949, idProduct=0004
Aug  4 20:04:07 ubuntu kernel: [  600.532611] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug  4 20:04:07 ubuntu kernel: [  600.532617] usb 1-1: Product: Amazon Kindle
Aug  4 20:04:07 ubuntu kernel: [  600.532622] usb 1-1: Manufacturer: Amazon
Aug  4 20:04:07 ubuntu kernel: [  600.532626] usb 1-1: SerialNumber: B0241502247402Q0
Aug  4 20:04:07 ubuntu kernel: [  600.536671] usb-storage 1-1:1.0: USB Mass Storage device detected
Aug  4 20:04:07 ubuntu kernel: [  600.537055] scsi host10: usb-storage 1-1:1.0
Aug  4 20:04:07 ubuntu mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1"
Aug  4 20:04:07 ubuntu mtp-probe: bus: 1, device: 7 was not an MTP device
Aug  4 20:04:08 ubuntu kernel: [  601.536494] scsi 10:0:0:0: Direct-Access     Kindle   Internal Storage 0100 PQ: 0 ANSI: 2
Aug  4 20:04:08 ubuntu kernel: [  601.537770] sd 10:0:0:0: Attached scsi generic sg3 type 0
Aug  4 20:04:08 ubuntu kernel: [  601.546385] sd 10:0:0:0: [sdc] Attached SCSI removable disk
Aug  4 20:04:08 ubuntu systemd-udevd[4074]: error: /dev/sdc: No medium found
Is there any way forward possible here without a serial cable? Perhaps a way of forcing it to mount the device manually?

I mean, I'm probably out of luck here given the nature of what caused this in the first place- but it would be nice to know for certain.
AirRaven is offline   Reply With Quote
Old 08-04-2015, 07:40 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,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
If nothing ends up showing up as a usable USBMS device (which happens, depending on the timing/extent of the damage), you're probably out of luck.

The Coward's Rescue Pack might have helped, but, then again, maybe not, because, even with a hard-reboot such as this one, that shouldn't have screwed things up to that extent (*especially* in the case of Python, since that doesn't even ever touch the rootfs, so, all MrPi did was mount it rw & sync it, which should be pretty harmless), which, to me, has a slight whiff of hardware wonkyness. That, and the fact that you never ever hit the 'Your Kindle Needs Repair' screen, too.

Unlike hard-rebooting during a factory update, which *will* definitely screw things up, most of our custom packages should be pretty forgiving, barring external issues. (Not that I'd recommend doing hard-reboots just for fun, but, in this case, shouldn't have torn the house down :/).

See what @knc1 will have to say about the hardware side of things, .

Last edited by NiLuJe; 08-04-2015 at 07:45 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 08-04-2015, 07:43 PM   #3
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Corrupted USB storage area.
Put it on a wall charger (**NOT** a PC - a wall charger - it makes a difference - the file system recovery can not run while the area is connected to a PC) -
Let it sit there and run until it fully recovers the USB file system.

Note: The above may take days - so just leave it alone.
knc1 is offline   Reply With Quote
Old 08-04-2015, 08:52 PM   #4
AirRaven
Member
AirRaven began at the beginning.
 
AirRaven's Avatar
 
Posts: 11
Karma: 10
Join Date: Aug 2015
Device: Kindle Paperwhite (1st gen), Kindle 3 (3G)
Quote:
Originally Posted by knc1 View Post
Corrupted USB storage area.
Put it on a wall charger (**NOT** a PC - a wall charger - it makes a difference - the file system recovery can not run while the area is connected to a PC) -
Let it sit there and run until it fully recovers the USB file system.

Note: The above may take days - so just leave it alone.
Ah! That's what it's doing?

If that's the case, I'll try leaving it plugged in for a week or so. If I don't see much progress by then, I'll have to admit defeat.

Appreciate the heads-up there! At least it's cause for hope.
AirRaven is offline   Reply With Quote
Old 08-05-2015, 12:48 AM   #5
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by AirRaven View Post
Ah! That's what it's doing?

If that's the case, I'll try leaving it plugged in for a week or so. If I don't see much progress by then, I'll have to admit defeat.

Appreciate the heads-up there! At least it's cause for hope.
Of course I am only guessing, but read this recent thread (still on the first page of the index):
https://www.mobileread.com/forums/sho...d.php?t=262862

The thing that I am going by is that storage device discovery has found the "faked" USB storage media, but that the file system discovery has not (yet) been run.

Considering how the automation is set up -
The Kindle is programmed to rebuild /mnt/us when/if errors are detected;

A reasonable explanation is that the storage media does not have an error free file system on it (or any file system at all).

Plus, this is an PW-1 (I.E: An older machine), lots more opportunities to develop bad blocks in the flash storage.
And if you where just hit by an OTA update to 5.6.1.1 (which involves some big files) -
now is when the storage hardware problems would be found.

Last edited by knc1; 08-05-2015 at 01:02 AM.
knc1 is offline   Reply With Quote
Advert
Old 08-05-2015, 08:56 AM   #6
AirRaven
Member
AirRaven began at the beginning.
 
AirRaven's Avatar
 
Posts: 11
Karma: 10
Join Date: Aug 2015
Device: Kindle Paperwhite (1st gen), Kindle 3 (3G)
Quote:
Originally Posted by knc1 View Post
Of course I am only guessing, but read this recent thread (still on the first page of the index):
https://www.mobileread.com/forums/sho...d.php?t=262862

The thing that I am going by is that storage device discovery has found the "faked" USB storage media, but that the file system discovery has not (yet) been run.

Considering how the automation is set up -
The Kindle is programmed to rebuild /mnt/us when/if errors are detected;

A reasonable explanation is that the storage media does not have an error free file system on it (or any file system at all).

Plus, this is an PW-1 (I.E: An older machine), lots more opportunities to develop bad blocks in the flash storage.
And if you where just hit by an OTA update to 5.6.1.1 (which involves some big files) -
now is when the storage hardware problems would be found.
In this case, I'd just used this trick to downgrade from 5.6.1.1 to 5.3.9 - the first thing I did after jailbreaking was install and activate Backdoor Lock, without ever turning on Wi-fi - I'd be surprised if it had even had a chance to download the update. I do wonder if that particular downgrade process not have introduced some problems, though- suppose being the guinea pig for this sort of thing can't hurt if that process broke something.

For clarification, as well - I was using MRPackageInstaller to install the Python package and Screensaver Hack package at the same time, queued up - I assume that it was the Python package that caused it to hang, since the display stuck on that package's installation screen at the point where things screwed up.

But, yes. That thread looks exactly like the problem I'm experiencing right now- very reassuring! I'll report back if it works, in case anyone runs across this thread in the future looking for a solution.

Thanks!

Last edited by AirRaven; 08-05-2015 at 09:01 AM.
AirRaven is offline   Reply With Quote
Old 08-05-2015, 09:12 AM   #7
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by AirRaven View Post
In this case, I'd just used this trick to downgrade from 5.6.1.1 to 5.3.9 -
- - - -
It is good to hear independent confirmation of that "HowTo" post.
Nice to know that there isn't an inadvertent deadly typo or missing step.

Although be sure to post an update here if you find a definite problem with the procedure.
Our readers are our best Q.A. staff.

- - - - -

After these messages:
Code:
Aug  4 20:04:08 ubuntu kernel: [  601.536494] scsi 10:0:0:0: Direct-Access     Kindle   Internal Storage 0100 PQ: 0 ANSI: 2
Aug  4 20:04:08 ubuntu kernel: [  601.537770] sd 10:0:0:0: Attached scsi generic sg3 type 0
Aug  4 20:04:08 ubuntu kernel: [  601.546385] sd 10:0:0:0: [sdc] Attached SCSI removable disk
Aug  4 20:04:08 ubuntu systemd-udevd[4074]: error: /dev/sdc: No medium found
You should be able to copy whatever is on the storage media with:
Code:
dd if=/dev/sdc of=brokeUSB.bin bs=4096
That will be a big file, the entire USB storage area.

But if the problem can be found in the MBR, Partition table, or Directory, then adding a count=32 to the above command should capture all of that.

If you have the disk space on your Linux machine, it might be instructive to keep a copy of whatever it is that has the machine caught in a 'fix-up' loop.

If you have the time and space to do the above, PM me, I can give you a place to sftp it to where NiLuJe and I can look at it.

- - - -

IIRC - the dmesg stopping at that point means the drive was detected, but no partition table could be found by the FAT32 driver.
But we have forensic tools that can determine the contents without the aid of the partition table (and/or directory) in the file you create from it.

Last edited by knc1; 08-05-2015 at 09:18 AM.
knc1 is offline   Reply With Quote
Old 08-05-2015, 01:29 PM   #8
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,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
IIRC, that's also what happens when volumd hasn't yet come up or is being obtuse, so there's another layer of software wonkyness in the layers of stuff potentially going wrong .

Another thing to take into account: there's also the collection db schema changes between major FW versions that do *NOT* handle downgrades well. Although my guess is, that would have caused an issue later in the boot process, but, still.
NiLuJe is offline   Reply With Quote
Old 08-05-2015, 02:01 PM   #9
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
With that funky FUSE set-up, there are probably a lot of things that could result in not being able to see the media on the device.

One of the reasons I would like to see what is really on the storage medium while the start-up is misbehaving.

Even having a "can't read it now" result might tell something.
knc1 is offline   Reply With Quote
Old 08-05-2015, 04:17 PM   #10
AirRaven
Member
AirRaven began at the beginning.
 
AirRaven's Avatar
 
Posts: 11
Karma: 10
Join Date: Aug 2015
Device: Kindle Paperwhite (1st gen), Kindle 3 (3G)
Quote:
Originally Posted by knc1 View Post
You should be able to copy whatever is on the storage media with:
Code:
dd if=/dev/sdc of=brokeUSB.bin bs=4096
That will be a big file, the entire USB storage area.

But if the problem can be found in the MBR, Partition table, or Directory, then adding a count=32 to the above command should capture all of that.

If you have the disk space on your Linux machine, it might be instructive to keep a copy of whatever it is that has the machine caught in a 'fix-up' loop.

If you have the time and space to do the above, PM me, I can give you a place to sftp it to where NiLuJe and I can look at it.
Just gave it a try. No luck, unfortunately:

Code:
ubuntu@ubuntu:~$ sudo dd if=/dev/sdc of=/media/ubuntu/DED5-B8A5/KindleBak/brokeUSB.bin bs=4096
dd: failed to open ‘/dev/sdc’: No medium found
Edit: Identical result with count=32 appended, as well. I don't expect there'll be much luck there, by the look of things.

A glance at the thread linked earlier with a similar issue suggests that leaving my Kindle plugged in for the next month or so is the best option - I'll be leaving it like that, worst case.

In the meantime, I guess it's a chance to go back to my old Kindle 3. I've missed actual page-turn buttons. Appreciate the help given so far!

Last edited by AirRaven; 08-05-2015 at 05:13 PM.
AirRaven is offline   Reply With Quote
Old 08-12-2015, 11:37 PM   #11
AirRaven
Member
AirRaven began at the beginning.
 
AirRaven's Avatar
 
Posts: 11
Karma: 10
Join Date: Aug 2015
Device: Kindle Paperwhite (1st gen), Kindle 3 (3G)
The Kindle's been charging/running for five days so far, with no luck - I'll be leaving it for another week out of curiosity, but I suspect that the situation isn't salvagable.

I don't suppose there's a specific model of serial adaptor that I could try going for (purchasable in the UK), is there? Quite curious about trying to get serial access now, after all this fuss- it's a fraction of the cost of a new Kindle, and having the ability to unbrick it again in the future if I screw about too much would be worth the investment. I've seen a few around, but I worry I might not be able to get something with the right voltage and accidentally fry the circuit.

Apologies for asking something that's been asked countless times before, but it's not immediately clear what model of cable would be necessary elsewhere, particularly for the PW1!
AirRaven is offline   Reply With Quote
Old 08-13-2015, 09:32 AM   #12
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
The missing connector info:
https://www.mobileread.com/forums/sho...d.php?t=228044
Although mounting the connector is easier, making up the mating cable end without the help of a robot is next to impossible.

The cable info:
https://www.mobileread.com/forums/sho...d.php?t=170566
FTDI has distributors on your side of the pond - just search for the cable by name.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coward's Rescue Pack Addon dsmid Kindle Developer's Corner 44 04-07-2024 12:16 AM
please help for rescue pack sean_g Kindle Developer's Corner 1 02-04-2015 11:32 PM
K5 Rescue Pack or USBNetwork? datrix Kindle Developer's Corner 1 12-09-2014 09:04 AM
How could i re-install rescue pack? tommytian Kindle Developer's Corner 2 06-18-2013 08:41 PM
Kindle 3.1 pushed to my device, now stuck at tree screen? DavyL Amazon Kindle 18 10-30-2011 06:38 AM


All times are GMT -4. The time now is 05:07 PM.


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