View Single Post
Old 07-07-2015, 07:20 PM   #17
adonis
Member
adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.adonis ought to be getting tired of karma fortunes by now.
 
Posts: 11
Karma: 405744
Join Date: Jun 2015
Device: Kindle Paperwhite 2
Here is a summary how to solve the "BATTERY INVALID: -22" problem.

What I did:
- Overwrite the diags-images via fastboot
- Overwrite the main-images via USB

What you need:
CP2102 USB to TTL converter. I've got this one: http://www.amazon.de/USB-TTL-Konvert...FU/ref=sr_1_1?
Kindle images: http://ixtab.tk/kindle-touch-images/PW2/
Fastboot for kindle:

Fastboot for kindle:
Here you'll find some instructions how to get fastboot for kindle working on Windows or OS X.

OS X: https://github.com/TobiasWooldridge/Fastboot-Kindle
Windows: http://www.mediafire.com/view/?xrn3v3ln6cn2n75

Prepare your kindle:
1. Solder wires to the kindle serial pins. https://www.mobileread.com/forums/sho...25&postcount=3
2. Get a CP2102 USB to TTL converter. I've got this one: http://www.amazon.de/USB-TTL-Konvert...eywords=cp2102
3. Connect the soldered wires to the CP2102
4. Plug the USB into a USB 2.0 of your computer. *Don't use USB 3.0*

Overwrite diags-images:
I don't know if this is neccessary, but if you can't get your kindle into USB-mode, you should definitely do it

1. Connect with a terminal via serial to the TTL adapter.
2. Reboot your kindle and continuously hit ESC on your keyboard until you enter uboot on your kindle.
3. In uboot run "bist fastboot" and press enter
4. In a new terminal window navigate to the fastboot-executible on your computer (OS X or Windows and run "./fastboot devices", if you don't see anything, you haven't installed fastboot correctly.
5. If you see a device you can run
Code:
./fastboot flash diags mmcblk02p.bin
./fastboot flash diags_kernel diags_kernel.bin
Overwrite main-images:
1. Establish a serial connection to your kindle, because you will need it in the last step.
2. Reboot your kindle into diags mode. There are several ways how to do this.
If you're already in fastboot you can do this on your computers terminal
Code:
./fastboot setvar bootmode diags
./fastboot reboot
The other is via serial in uboot.
Code:
bist
idme bootmode diags
reset
3. When your kindle boots up in diags mode, hit "U" for USB device mode. Now your kindle should show up as a USB storage.

4. Copy mmcblk01p.img and main_kernel.bin into the root folder of your kindle.
5. Now hit "D" to go to "Exit, Reboot or Disable Diags" and there hit "L" to enter the login prompt.
6. You should be able to login as "root" with "mario" as password
7. Run these commands to flash the main images

A) if the partition image is gzipped (ends with .gz):
Code:
zcat /mnt/us/mmcblk01p.img.gz | dd of=/dev/mmcblk0p1 bs=4096
B) if the partition image is NOT gzipped:
Code:
 dd if=/mnt/us/mmcblk01p.img of=/dev/mmcblk0p1 bs=4096
8. Run these commands to flash the main kernel
A) if the kernel image is gzipped (ends with .gz):
Code:
zcat /mnt/us/kernel_main.bin.gz | dd of=/dev/mmcblk0 bs=4096 seek=65
B) if the kernel image is NOT gzipped:
Code:
dd if=/mnt/us/kernel_main.bin of=/dev/mmcblk0 bs=4096 seek=65
9. Set the bootmode back to main
Code:
idme -d --bootmode main
10. Reboot your kindle
Code:
reboot
Your kindle should now be fixed and should start normally.
adonis is offline   Reply With Quote