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 05-10-2020, 09:10 AM   #1
Mini9
almost here...
Mini9 began at the beginning.
 
Mini9's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2020
Device: kindle pw2 PaperWhite 2 , KT2 - BASIC, Kindle 3 WiFi and a K3W
Talking unbricking or something with serial only access

Hi all,
I have a pw2 serial starting 9017*** which fails to boot completely the screen stays lit.
So soldered a serial cable on and have fastboot working complied from source.

I been at this a few days seem to remember flashing over fastboot something and was asking for login at one point which it does not seem to be for the moment I kind of feel like I walking backwards

what I can do:

Set up:
on linux: run script logfile.txt
then: screen /dev/ttyUSB0 115200


1. start with serial, no usb then reboot the pw2, interrupt by pressing a key early in boot,
enter uboot: U-Boot 2009.08-lab126 (Apr 23 2014 - 01:01:24)

bist mmcinfo
gives:
Spoiler:
Card did not respond to voltage select!
Device: FSL_ESDHC
Manufacturer ID: 0
OEM: 0
Name: Revision: 0x0
Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0
Bus Width: 1-bit
Current Partition for boot: Not bootable
Current boot width: 1-bit SDR



2. interrupt by pressing a key later in boot and getting the menu:
Spoiler:

Menu
====
3. Load MMC0 over USB storage
4. Erase MMC0
I. Initialize Partition Table (fdisk) and format FAT
O. Format and overwrite FAT partition
E. Export FAT partition
U. Update using update*.bin file on FAT partition
M. Update using update*.bin file on FAT partition of second MMC port
D. dmesg / kernel printk ring buffer.
Q. quit


letting it continue, with out pressing anything it halts at:
Spoiler:
BOOTING DEFAULT.
IP-Config: no devices to configure
[ 8.032768] EXT3-fs (mmcblk0p2): recovery required on readonly filesystem
[ 8.039625] EXT3-fs (mmcblk0p2): write access will be enabled during recovery
[ 8.047506] EXT3-fs: barriers not enabled
[ 8.052114] JBD: no valid journal superblock found
[ 8.056962] EXT3-fs (mmcblk0p2): error loading journal
[ 8.066333] EXT3-fs (mmcblk0p2): recovery required on readonly filesystem
[ 8.073146] EXT3-fs (mmcblk0p2): write access will be enabled during recovery
[ 8.080931] EXT3-fs: barriers not enabled
[ 8.085389] JBD: no valid journal superblock found
[ 8.090203] EXT3-fs (mmcblk0p2): error loading journal
[ 8.096185] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (4)
kinit: Unable to mount root fs on device dev(179,2)
kinit: init not found!


3. sudo ./fastboot setvar bootmode diags_kernel or diags, halts at same place as above
bootmode kernel gives:
Spoiler:
CHS=4/16/104512 size=3424649216 bytes
flag type first last lba first lba size
Partition p1:
0x00 0x0b 16 <large> 16 6688752
CHS: 0/1/1 - <large>
Partition p2:
Partition p3:
Partition p4:
BOOTING DEFAULT.
IP-Config: no devices to configure
[ 6.317409] EXT3-fs (mmcblk0p1): error loading journal
[ 6.340489] EXT3-fs (mmcblk0p1): error loading journal
kinit: Mounted root (ext2 filesystem) readonly.
[ 6.379594] EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 9634
[ 6.387275] EXT2-fs (mmcblk0p1): error: remounting filesystem read-only
[ 6.395128] EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 9634
[ 6.402850] EXT2-fs (mmcblk0p1): error: remounting filesystem read-only
kinit: init not found!


4. connected to USB port get the menu above:
Pressing E mounts for about 30s-1m USB the pw2 containing documents and system.


So anyway ... I been at this for a few days, think I should try again somehow flashing the mmcblk0p1.bin, mmcblk0p2.bin, main_kernel.img, diags_kernel.img from kindle_pw2_jb_5.4.0 or something else? can you load MMC over serial

kind of think I going down a long rabbit hole here...
Mini9 is offline   Reply With Quote
Old 05-10-2020, 01:49 PM   #2
Mini9
almost here...
Mini9 began at the beginning.
 
Mini9's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2020
Device: kindle pw2 PaperWhite 2 , KT2 - BASIC, Kindle 3 WiFi and a K3W
OK I maybe barking up the wrong tree, but I have an idea , could I do something like:

Code:
kindletool create ota --device paperwhite2 --platform wario --board unspecified diags_kernel.img main_kernel.img mmcblk0p1.bin mmcblk0p2.bin update_pw2_jb_5.4.0.bin
and then place the .bin on in the documents folder to repair the system, or is that too easy ? anyone any ideas?
Mini9 is offline   Reply With Quote
Advert
Old 05-10-2020, 01:56 PM   #3
Mini9
almost here...
Mini9 began at the beginning.
 
Mini9's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2020
Device: kindle pw2 PaperWhite 2 , KT2 - BASIC, Kindle 3 WiFi and a K3W
Or use the menu "Update using update*.bin file on FAT partition" ?
Spoiler:
Menu
====
3. Load MMC0 over USB storage
4. Erase MMC0
I. Initialize Partition Table (fdisk) and format FAT
O. Format and overwrite FAT partition
E. Export FAT partition
U. Update using update*.bin file on FAT partition
M. Update using update*.bin file on FAT partition of second MMC port
D. dmesg / kernel printk ring buffer.
Q. quit
Mini9 is offline   Reply With Quote
Old 05-10-2020, 02:17 PM   #4
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,058
Karma: 3581267
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
At first, try press E (Export FAT partition), copy there firmware update file and reboot the device.
As you can see the usb-disk for about a minute only, it may require some incremental copy (KillCopy, FAR manager or another program).
hius07 is offline   Reply With Quote
Old 05-10-2020, 06:18 PM   #5
Mini9
almost here...
Mini9 began at the beginning.
 
Mini9's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2020
Device: kindle pw2 PaperWhite 2 , KT2 - BASIC, Kindle 3 WiFi and a K3W
Thanks hius07,
I made an update.bin packaged with kindletool but got a message about not having a script file so it would do nothing! and while I don't mind having to write a script I not have much idea of what I need to do, maybe dd from somewhere the images?
So I left that idea.

Then I tried copying the fileupdate_PW2_5.4.3.2_initial.bin but only got 57mb and its 376mb.

then tried using rsync with the --append option but getting some mmc errors
end_request: I/O error, dev mmcblk0, sector 6125645
mmcblk0: timed out sending r/w cmd command, card status 0x400b00

I am wondering what a format of FAT would do or something ....
Mini9 is offline   Reply With Quote
Advert
Old 05-10-2020, 11:12 PM   #6
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,058
Karma: 3581267
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
Seems you've got a fatal problem with memory.
Anyway, if you manage to format it, try Amazon firmware file, it's about 200 MB
https://s3.amazonaws.com/firmwaredow..._v2_5.12.2.bin
Or the last jailbreakable version 5.8.7.0.1 (just replace 5.12.2 in the link).

Last edited by hius07; 05-10-2020 at 11:14 PM.
hius07 is offline   Reply With Quote
Old 05-11-2020, 12:31 PM   #7
Mini9
almost here...
Mini9 began at the beginning.
 
Mini9's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2020
Device: kindle pw2 PaperWhite 2 , KT2 - BASIC, Kindle 3 WiFi and a K3W
Thanks hius07,
I got v2_5.122.2.bin 215mb still seems like a lot so I decompressed, mounted and had a look around.. it looks like fonts.sqsh is about 81mb, could I remove some fonts
Spoiler:

# Just in case anyone else wants to.
gunzip -dv rootfs.img.gz
sudo mount -o loop rootfs.img [/mnt/somedir]
# then I copied the fonts file and decompressed it
unsquashfs fonts.sqsh


Fonts in fonts.sqsh
Spoiler:
total 130M
14M STSongBold.ttf
13M STSongMedium.ttf
12M STSongTCBold.ttf
11M STHeitiBold.ttf
11M STHeitiMedium.ttf
11M STSongTC.ttf
9.5M STHeitiTC.ttf
6.8M STHeitiTCBold.ttf
5.6M TBMinchoBold_213.ttf
5.5M TBMinchoMedium_213.ttf
3.9M NotoSerifKR-Medium.otf
3.7M TBGothicBold_213.ttf
3.7M TBGothicMed_213.ttf
2.9M NotoSerifKR-Black.otf
2.5M code2000.ttf
2.1M NotoSansKR-Black.otf
1.9M NotoSansKR-Regular.otf
448K Caecilia_LT_65_Medium.ttf
444K Caecilia_LT_67_Cond_Medium.ttf
412K Caecilia_LT_77_Cond_Bold.ttf
412K Caecilia_LT_75_Bold.ttf
408K Caecilia_LT_66_Medium_Italic.ttf
404K Caecilia_LT_78_Cond_Bold_Italic.ttf
404K Caecilia_LT_76_Bold_Italic.ttf
404K Caecilia_LT_68_Cond_Medium_Italic.ttf
400K Bookerly-Italic.ttf
396K Bookerly-BoldItalic.ttf
396K Bookerly-Regular.ttf
392K Bookerly-Bold.ttf
356K Futura-Bold.ttf
344K Helvetica_LT_75_Bold.ttf
328K Futura-Medium.ttf
324K Futura-BoldOblique.ttf
308K Futura-MediumOblique.ttf
300K Helvetica_LT_65_Medium.ttf
300K Helvetica_LT_66_Medium_Italic.ttf
292K Helvetica_LT_76_Bold_Italic.ttf
208K NotoSansDevanagari-Regular.ttf
200K Baskerville-Italic.ttf
192K SakkalKitab-Bold.ttf
188K SakkalKitab-Regular.ttf
188K NotoSansGujarati-Regular.ttf
184K Palatino-Regular.ttf
176K NotoSansBengali-Regular.ttf
168K NotoSansTelugu-Regular.ttf
164K Palatino-Bold.ttf
164K DiwanMuna-Regular.ttf
156K DiwanMuna-Bold.ttf
156K Baskerville-Regular.ttf
156K Palatino-Italic.ttf
148K Palatino-BoldItalic.ttf
140K NotoNaskhArabicUI-Regular.ttf
136K NotoNaskhArabicUI-Bold.ttf
136K NotoSansKannada-Regular.ttf
136K Baskerville-Bold.ttf
132K Baskerville-BoldItalic.ttf
124K Amazon-Ember-Medium.ttf
124K Amazon-Ember-MediumItalic.ttf
116K NotoNaskh-Regular.ttf
116K NotoNaskh-Bold.ttf
108K KindleBlackboxItalic.ttf
108K KindleBlackboxBoldItalic.ttf
104K Amazon-Ember-Regular.ttf
104K KindleBlackboxRegular.ttf
104K AmazonEmberBold-Regular.ttf
104K Amazon-Ember-Bold.ttf
104K Amazon-Ember-RegularItalic.ttf
104K KindleBlackboxBold.ttf
100K Amazon-Ember-BoldItalic.ttf
100K AmazonEmberBold-Italic.ttf
100K AmazonEmberBold-Bold.ttf
100K Amazon-Ember-Heavy.ttf
100K AmazonEmberBold-BoldItalic.ttf
100K MTChineseSurrogates.ttf
100K Amazon-Ember-HeavyItalic.ttf
92K NotoSansMalayalam-Regular.ttf
80K OpenDyslexic-BoldItalic.otf
72K OpenDyslexic-Italic.otf
68K Kindle_Symbol.ttf
60K NotoSansTamil-Regular.ttf
44K OpenDyslexic-Bold.otf
44K OpenDyslexic-Regular.otf
28K fonts.dir
24K Kindle_MonospacedSymbol.ttf


I coming to conclusion it may be mmc memory problem, maybe need a replacement chip or pcb!
Been reading this great article translation of https://www.zephray.me/post/kpw2_debrick_1
Mini9 is offline   Reply With Quote
Old 05-11-2020, 01:48 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,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
You can't repack anything, custom or official. Otherwise we wouldn't have to jump through fiery hoops for a JB.
NiLuJe is offline   Reply With Quote
Reply

Tags
pw2 brick fastboot kernel, serial, uboot


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW4 Help unbricking PW4 (Serial) SenorClean Kindle Developer's Corner 8 06-11-2019 06:29 PM
Need help for unbricking PW 5.3.1 szfisher Kindle Developer's Corner 22 07-12-2013 08:38 AM
Kindle DX Serial Access Question: blanketfighter Kindle Developer's Corner 6 01-28-2013 06:35 PM
HELP PLEASE!!! Unbricking EE Yellowman1 enTourage eDGe 8 07-21-2011 08:54 AM
Help with unbricking kindle via serial port yifanlu Kindle Developer's Corner 12 03-10-2011 07:51 AM


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


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