![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
Unbrick a PW3 (Fastboot)
Hello,
iam new in this Forum and need help by unbrick a PW3 (2015). I got a PW3 (G090 G1) and tryed to Jailbreak it. I failed ![]() I used the Dummies Tutorial (Serial Port) and get a Rapair Screen after erasing the root password. Unfortunatly i erase the MMC while playing around get it back to life. I read about the fastboot and flashing the kernel, system and diags. So i get the Kindle in the fastboot mode and install the driver on my Windows PC. Fastboot is working and i also can read the serial nr over fastboot. So far so good, but i cant get the images out of the update_kindle_5.6.1.1.bin. (5.6.1.1 ist the SW version that was installed on the PW3) I used the kindletool to extract the .bin but failed at unpack the fwo_rootfs.img to create the images for flasing. Can someone help me creating the images by a step by step tut or a link where i can get this images? Sorry for my bad english. Regards Max |
![]() |
![]() |
![]() |
#2 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
ALL means: all, as in everything. Including the information stored outside of the partitioned area of the eMMC storage and the bootstrap application. The Amazon Update packages do not include the information outside of the partitioned area, with a few exceptions. = = = = Note: there is one, possibly two exceptions to the above statement, depending on the firmware version of the "Erase All" command. 1) U-Boot, that is re-written to the flash from the copy running in RAM. 2) The device serial number and board ID is also re-written to the flash by only some versions of the firmware. = = = = First off, tell us about the update package you are trying to take apart - - Where did you get the update image file of 5.6.1.1 for the PW-3? Amazon does not post an update package of the initial firmware a device ships with. They do post update packages of 5.6.1.1 for other device models. Leaving the eMMC blank would be a better choice than using an image file for the wrong device. = = = = O.T: Where in the directions does it say to erase the root password? The directions do say to erase a single character from the root entry in the password file, and gives before and after pictures of that process. Last edited by knc1; 12-27-2015 at 05:28 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |||
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
Quote:
Is there a chance to get my Kindle back to life? Quote:
http://www.amazon.de/gp/help/custome...deId=201605570 Quote:
I now also do understand that this is not to delete the password. |
|||
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
Hi,
to extract the *.bin i used the kindletool 1.6.4 but the support for the PW3 were added in 1.6.5. Could that be the problem i cant unpack the fwo_rootfs.img? |
![]() |
![]() |
![]() |
#5 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
https://www.mobileread.com/forums/sho...d.php?t=225030 You will need a non-Microsoft archiver to unpack it, something like a very recent 7Zip, WinZip, or RAR. How to get older versions of the update packages from the Amazon server is a FGA, see: https://www.mobileread.com/forums/sho...postcount=1301 Keep in mind that Amazon does not post an update package of the initial version a model ships with - your only choice is something newer (with a few exceptions - none of which will help you with this problem). Note also that it is extremely rare for an Amazon update package to include the 'diags' system, they only update the 'main' system. (Mostly because 'diags' is written to the flash chip before the chip is put on the board, and then never changed.) So you will need to get a copy of that. = = = = but you can do nothing until you get the tools to work. So - Get the update package from Amazon that you want to use (record the link) - Get the KindleTool package you are going to use (record the link) - Try following the directions - Post what happens - if things fail include the names and links in your post. That way a person has a chance of duplicating your problem - which is a requirement to any sane answer. if things seem to work, then we can deal with how to find and transfer the image files. = = = = EDIT: Hmm... The German PW-3, 5.6.5 now posted is 26Mbyte smaller than the English(us) PW-3, 5.6.5 that was posted last September. I haven't tried unpacking and comparing both of them (yet) - But I know the Linux-32bit build of KindlTool, does unpack the (us) one. Will have to wait for MadMAXXX to report on the Windows build of KindleTool. EDIT 2: The English(us) version of the PW-3 is one of those we (NiLuJe and I) recovered the original factory, 5.6.1.1 firmware package (and it does not have diags in it). Ah, Crap! See my following post. Last edited by knc1; 12-28-2015 at 05:39 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
![]() Originally posted by Geekmaster on this erase all subject. Last edited by knc1; 12-28-2015 at 05:42 PM. |
|
![]() |
![]() |
![]() |
#7 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
Quote:
But still the same problem i got at beginning! Its not possible to open the rootfs.img. I tryed to mount in DAEMON Tools and to unpack with WinRAR, 7Zip and IsoBuster with no success. The error i get is always the same "unknown format or demaged file" |
|
![]() |
![]() |
![]() |
#8 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I thought you wanted to recover your erased Kindle. That does not require that you "open" the rootfs.img file, it is "ready to go" (onto mmcblk0p1) - that is why it is called an "image". The purpose of using an unmodified image of the system is to get a "known good" system written to flash. One that can be read back and compared to the image file if problems are suspected. But if you must, I guess you must . . . . (One useful thing you might want to do is jailbreak the image before flashing.) On Linux VM, do: Code:
sudo mkdir /mnt/tmp-p1 (the name does not matter) sudo mount /path/to/rootfs.img /mnt/tmp-p1 You may or may not get a warning about the missing /lost&found (I.E: /mnt/tmp-p1/lost&found) directory. Remember: The image is mounted read-write -- you can screw it up before flashing it. You must umount it when your done with it, repeat: MUST. The ext3 driver will take care of flushing buffers for you (there is no 'safely remove' command for this loop mount). You failed to mention **which** flavor of Linux (which distribution, name and version) you have running in your VM. It may make a difference and I can not see over your shoulder. You have also failed to mention **HOW** you get your PW-3 into fastboot mode. That may make a difference also. BIG NOTE: the rootfs.img is too large for the Kindle implementation of fastboot to transfer. Which is why you must run the Kindle in 'diags' system to flash rootfs.img. Ah, but you don't (yet) have a 'diags' kernel and root filesystem - so we will have to follow a procedure that I don't find documented in the 'simple debricking' thread. You have not mentioned flashing the main kernel (which is also in the Update that you unpacked). You have not mentioned flashing the u-boot image (which is also in the Update that you unpacked) - but you should not need that, since you have the Kindle running fastboot. Bigger Note: Post back here when done playing with the above since the 'main' rootfs.img file will be the LAST thing you have to flash, not the first or only. Last edited by knc1; 12-29-2015 at 05:10 AM. |
|
![]() |
![]() |
![]() |
#9 | ||
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
Quote:
Quote:
with "bist fastboot" i get into the fastboot mode. Code:
uboot > bist fastboot U-Boot 2009.08-lab126 (Apr 15 2015 - 07:39:13) CPU: Freescale i.MX6 family TO0.0 at 996 MHz Temperature: 32 C, calibration data 0x5805095f mx6sl pll1: 996MHz mx6sl pll2: 528MHz mx6sl pll3: 480MHz mx6sl pll8: 50MHz ipg clock : 66000000Hz ipg per clock : 66000000Hz uart clock : 80000000Hz cspi clock : 60000000Hz ahb clock : 132000000Hz axi clock : 198000000Hz emi_slow clock: 22000000Hz ddr clock : 396000000Hz usdhc1 clock : 198000000Hz usdhc2 clock : 198000000Hz usdhc3 clock : 198000000Hz usdhc4 clock : 198000000Hz MMC: FSL_ESDHC: 0,FSL_ESDHC: 1,FSL_ESDHC: 2 Board: Muscat WFO Boot Reason: [ POR ] Boot Device: NAND Board Id: "xxx" S/N: "xxx" I2C: ready DRAM: 512 MB Using default environment In: serial Out: serial Err: serial POST done in 0 ms Battery voltage: 3932 mV running cmd: fastboot Entering fastboot mode... Battery voltage: 3925 mV Battery voltage: 3923 mV USB speed: HIGH Connected to USB host! USB speed: HIGH Connected to USB host! Battery voltage: 3995 mV Can you please explain what i have to do first? What do i have to flash first/last? Actually i thought i can follow this Tut (link below) but i do not have the right files. On beginning i thought i can extract all files i will need from the update package but you disabused me. https://gist.github.com/TobiasWooldr...ca75190b9a473f |
||
![]() |
![]() |
![]() |
#10 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Nice choice, very complete but a little bit different than the others, so is good to know. Very much a "professional use" distribution, but that is good, keep your VM install after we are done, you will find uses for it. You didn't mention if 32 or 64 bit version, but I'll ask if it becomes neccessary to know. I will presume you are using minicom for your terminal emulation. Thanks for the capture of the u-boot messages, I can tell where the system is at from that. I will be asking for more of them (because we are working with a very new model - I will need them to spot differences). To get a good overview of what we will be doing is the "simple" (yeah, right!) debricking thread: (sticky) "Where Do I Start?" - (section) Debricking -> https://www.mobileread.com/forums/sho...d.php?t=170929 We can't follow it exactly because: *) Its old, last updated in the days of the very first touch screen device (K5). *) It assume you have a working 'diags' system. You do not, you erased both the 'main' and the 'diags' systems. (Kindles (5.+) are dual boot systems, you killed both of them. ![]() *) But on the good side, you seem to have a complete, working, u-boot install. Actually, both of them (there are two (2) u-boot builds installed). There is also a current thread here where someone has erased even more than you did, that device can not even run its own dynamic RAM. That one can also be recovered, but it is going to be a real job to get it running again. Yours is in much better shape - its only missing (both) operating systems. ![]() So far, of the things to be done:
This last point is where we start inventing the directions as we go along. Continued in next post - - Last edited by knc1; 12-29-2015 at 10:49 AM. |
|
![]() |
![]() |
![]() |
#11 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Continued from prior post above.
There are two builds of u-boot installed on your device: A small memory footprint one (which is the first one that runs) - A large memory footprint one (bist - Built In Self Test). Since I have to invent these directions as we go (and I don't want to disassemble my PW-3 just to fix yours ![]() I want a file with everything we can possible learn at this point. Please do the following:
For comparison, here is a list of the bist commands from a very early PW-2: https://www.mobileread.com/forums/sho...5&postcount=29 |
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
For the serial communication i will use PuTTY on Windows 7 x64.
Attached the Log File you asked for. |
![]() |
![]() |
![]() |
#13 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
See this part? Code:
Hit any key to stop autoboot: 0 Wrong Image Format for bootm command ERROR: can't get kernel image! it would have auto-booted it. You would have had to "press any key" within 1 second of start-up to have stopped the auto-boot. There are enough commands available that we could load the initial filesystem image over the serial port line. Which would take approximately forever. ![]() = = = background = = = There are two ways that a Linux kernel can be laid out - - With the kernel as one file and the initial (ram)filesystem as a second file. (look in your VM's /boot directory to see those examples) The other way is for those two file to be combined into a single file image. Amazon/Lab126 builds the kernel/initial filesystem image the second way, as a single file. (Which makes their initramfs code GPLv2 - O.T. at this point.) = = = = The initial (ram) filesystem embedded within the kernel image include the "recovery menu". Although I haven't seen it yet, I expect it to offer an easier way to get the 'main' filesytem image loaded. So the next step will be to flash the 'main' kernel using fastboot. At the top directory level where you un-packaged the update package, you should see a directory: imx60_wario Inside of that directory there will be a file named: uImage (or maybe uimage). **THAT** is the main kernel+initramfs image. (There is also a copy of the u-boot binary in that directory - you don't need it - the one installed is in fine shape.) So this step will be to use fastboot to flash that image file. Yuck - I have forgotten the command - I will have to look it up and that may take awhile - don't hold your breath. After that - then just re-booting the Kindle should load and run the just installed kernel. That will (or **should**) fail to find the run-time main filesystem and abort into the "recovery menu". Note: I don't recall where/when in this boot sequence the firmware checks /var/local and /mnt/us for the proper format. If it seems to take forever to get to the "recovery menu" - that is expected, the system is re-creating the third and fourth partitions for us. Keep a capture file setup on the serial port line - just in case something goes wrong or does not work like I expect it to. Also, because I will need to see what choices that menu has to offer. Last edited by knc1; 12-29-2015 at 01:19 PM. |
|
![]() |
![]() |
![]() |
#14 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Well, not what I was looking for, but might be useful information . . . .
The fastboot commands recognized by the u-boot in 5.6.5 firmware: Spoiler:
|
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite 3 (2015)
|
Do I have to flash the uImage to the primary kernel (cmd "kernel") or to the main system (root) partition (cmd "system") ?
The fastboot (Windows Version) commands: Spoiler:
Last edited by MadMAXXX; 12-30-2015 at 06:36 AM. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PW3 - First Look | knc1 | Kindle Developer's Corner | 23 | 02-03-2018 05:54 PM |
PW1 vs PW3 | apastuszak | Amazon Kindle | 8 | 12-10-2015 05:51 PM |
Duokan on PW3? | Feitosa | Amazon Kindle | 8 | 07-30-2015 10:34 AM |
Firmware Update Firmware of PW3 | Grey Ram | Amazon Kindle | 5 | 07-10-2015 03:25 PM |
Need help to unbrick KV | dhfmd | Kindle Developer's Corner | 5 | 03-04-2015 03:58 PM |