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 10-24-2012, 12:15 AM   #166
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
Worked example of the k3flasher unbricking a K3 to a 3.0.2 via Linux Mint ...
The pastebin has a 3.4 with jailbreak and combined developer keys preinstalled. I successfully debricked a K3 demo with it. Unfortunately, it is a two-part zip on Mediafire, with that new troublesome 10 downloads/week limitation. Too bad there is no mirror for 3.4+jb+keys... (Hint... Hint...)
geekmaster is offline   Reply With Quote
Old 10-24-2012, 07:41 AM   #167
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Quote:
Originally Posted by geekmaster View Post
Too bad there is no mirror for 3.4+jb+keys... (Hint... Hint...)
I would upload it to http://ge.tt/ but the limit prevents me from downloading
dsmid is offline   Reply With Quote
Advert
Old 10-24-2012, 07:45 AM   #168
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
...
Each write cycle is worth 2Mb. so 300 Mb = 150 loops...
each cycle takes about 30 seconds. so 4MB per minute.

681.6Mb = ~341 loops = 170.4 minutes = 2.84 hours

keep waiting... when it's done - reboot.
...
I was thinking we can speed this up in some cases, such as debricking by replacing a damaged partition with a clean copy of the SAME VERSION. All we have to do is modify k3_flasher to READ and compare blocks (perhaps 2MB blocks) and SKIP them unless there is a mismatch. Only write blocks that changed. Reads should be MUCH faster than block erase and write cycles.

Also, it might be worth verifying that the write blocks are aligned to erase block boundaries. If the start address causes an offset, it could be doing slow read/erase/write cycles across the boundaries. Better to align to erase block boundaries to skip the otherwise unneeded read (if they occur). This can be a huge problem for flash drives formatted on XP (the 53 sector/track size) not aligned to flash erase block boundaries. Not sure if a problem here, but worth investigating.

EDIT: What I did not make clear is that each block gets erased and rewritten TWICE when misaligned. Each erase block gets a read/erase/write for the tail end of an overlapped data block, plus ANOTHER read/erase/write for the beginning of the next overlapped data block. Alignment can eliminate not only ALL reads, but also a much slower extra erase and write. It can more than double the speed even when rewriting ALL blocks, compared to misaligned writes.


Whatever the case, more than two hours is too long (especially if it is draining the kindle battery). We should at least skip the write if the block does not need to change. Fast debricking using this would require reflashing an undamaged copy of your bricked firmware version, but that can be arranged.

Last edited by geekmaster; 10-24-2012 at 08:56 AM.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 08:13 AM   #169
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by dsmid View Post
I would upload it to http://ge.tt/ but the limit prevents me from downloading
In progress...

EDIT: (84% uploaded)

Last edited by geekmaster; 10-24-2012 at 09:00 AM.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 08:19 AM   #170
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by geekmaster View Post
Thoughts on stuff (see below).
excellent thoughts.

Last edited by twobob; 10-24-2012 at 09:06 AM.
twobob is offline   Reply With Quote
Advert
Old 10-24-2012, 08:54 AM   #171
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
excellent thoughts.
I added an edit to the quoted post to clarify the erase block misalignment problem. It is worth reposting here too:
Quote:
EDIT: What I did not make clear is that each block gets erased and rewritten TWICE when misaligned. Each erase block gets a read/erase/write for the tail end of an overlapped data block, plus ANOTHER read/erase/write for the beginning of the next overlapped data block. Alignment can eliminate not only ALL reads, but also a much slower extra erase and write. It can more than double the speed even when rewriting ALL blocks, compared to misaligned writes.
Of course, it is better to read and compare first, and NOT write blocks that already contain the desired contents.

Last edited by geekmaster; 10-24-2012 at 09:00 AM.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 09:58 AM   #172
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 geekmaster View Post
I added an edit to the quoted post to clarify the erase block misalignment problem. It is worth reposting here too:Of course, it is better to read and compare first, and NOT write blocks that already contain the desired contents.
There are advantages to doing that on the host side.
Read the "broken" image to the host, compare by erase block size or a reasonable multiple there-of, only send the blocks that need to be re-written, and then:

Keep the "broken" image so that it can be determined what "broke".
It may be possible to find things that would be "fixable" without a full image re-flash.
Maybe even things that could be prevented to begin with.
knc1 is offline   Reply With Quote
Old 10-24-2012, 01:11 PM   #173
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
...
The Freescale binary remains a "blob" - just like other firmware blobs.
...
Speaking of proprietary firmware blobs, Broadcom just opensourced their video drivers that were previously available only as a binary blob:
http://www.raspberrypi.org/archives/2221

Let's hope they do this with other devices too, and that other chipset vendors opensource their blobs too.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 01:31 PM   #174
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by geekmaster View Post
Speaking of proprietary firmware blobs, Broadcom just opensourced their video drivers that were previously available only as a binary blob:
http://www.raspberrypi.org/archives/2221

Let's hope they do this with other devices too, and that other chipset vendors opensource their blobs too.
Open source easy-ride Pi owners *grumble grumble*

twobob is offline   Reply With Quote
Old 10-28-2012, 01:22 PM   #175
shihman
Member
shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.shihman got an A in P-Chem.
 
Posts: 14
Karma: 6344
Join Date: Apr 2011
Device: Kindle 3
Hello All:

I am a newbie and read through all Kindle 3 debrick posts and could not make them work. I use an XP machine and OSX Mt. Lion. I have zero background in programming and downloaded K3 flasher and downloaded it but I have no idea how to proceed. I have also tried K3 Noob's Guide and the download files there but XP would not install USB drivers.

Any help would be greatly appreciated! K3 is stuck for days now on boot image with child reading under tree. It cannot be identified on both my machines when connected via USB. Tried resetting, opening it too and removing battery. Nothing works.

THANKS!
shihman is offline   Reply With Quote
Old 10-28-2012, 01:34 PM   #176
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 shihman View Post
Hello All:

I am a newbie and read through all Kindle 3 debrick posts and could not make them work. I use an XP machine and OSX Mt. Lion. I have zero background in programming and downloaded K3 flasher and downloaded it but I have no idea how to proceed. I have also tried K3 Noob's Guide and the download files there but XP would not install USB drivers.

Any help would be greatly appreciated! K3 is stuck for days now on boot image with child reading under tree. It cannot be identified on both my machines when connected via USB. Tried resetting, opening it too and removing battery. Nothing works.

THANKS!
Keep it connected to a charger or a powered USB port while waiting to solve this problem! ! ! !

You can't tell what the K3 (or any e-ink machine) is doing until it updates the screen. The e-ink screens are "meta-stable", you could remove the screen (or just the battery) and set it on a shelf, it will continue to display what was last written to it for months (or perhaps years).
knc1 is offline   Reply With Quote
Old 11-03-2012, 01:04 AM   #177
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
chalk me up for one more rootfs wipe.

thanks Hawhill really glad of this tool. went for 3.4 this time
twobob is offline   Reply With Quote
Old 11-08-2012, 10:35 PM   #178
littelbro14
Junior Member
littelbro14 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2012
Device: Kindle 3 (Keyboard)
So I've searched this entire thread for a solution to this issue. I'm not sure if I'm missing something, but I still haven't found one. I'm on Ubuntu 12.10, 64-bit. I compiled k3flasher from source (couldn't get the provided binary to work, not sure why), and I extracted the RAM kernel myself, directly from the latest ATK exe. Here's my in/output.

Code:
root@TARDIS:/home/colten/Downloads/k3flasher# ./k3flasher mx35to2_mmc.bin program 0x00041000 kernel.bin
I: found suitable device
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
I: above error can be ignored, it's due to the device being in ROM kernel mode
I: RAM kernel should be running now. Trying to re-open device: .
I: got it.
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
E: aborting. It is suggested you power-cycle the device.
Any help on this would be fantastic....
littelbro14 is offline   Reply With Quote
Old 11-08-2012, 10:49 PM   #179
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by littelbro14 View Post
So I've searched this entire thread for a solution to this issue. I'm not sure if I'm missing something, but I still haven't found one. I'm on Ubuntu 12.10, 64-bit. I compiled k3flasher from source (couldn't get the provided binary to work, not sure why), and I extracted the RAM kernel myself, directly from the latest ATK exe. Here's my in/output.

Code:
root@TARDIS:/home/colten/Downloads/k3flasher# ./k3flasher mx35to2_mmc.bin program 0x00041000 kernel.bin
I: found suitable device
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
I: above error can be ignored, it's due to the device being in ROM kernel mode
I: RAM kernel should be running now. Trying to re-open device: .
I: got it.
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
E: aborting. It is suggested you power-cycle the device.
Any help on this would be fantastic....
I recall GM saying something about this kind of thing. but don't recall what.
Assumedly you built the latest one from GIT so it's not an old version.

Ram kernel should be fine. it would just bork much earlier otherwise.

Hopefully one of the heavyweights can step up and guide you better.

EDIT: Is there any reason you are not just saying:
./k3flasher mx35to2_mmc.bin program kernel kernel.bin

???

Last edited by twobob; 11-08-2012 at 11:47 PM. Reason: use the alias - it's in the README
twobob is offline   Reply With Quote
Old 11-08-2012, 10:54 PM   #180
littelbro14
Junior Member
littelbro14 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2012
Device: Kindle 3 (Keyboard)
Quote:
Originally Posted by twobob View Post
I recall GM saying something about this kind of thing. but don't recall what.
Assumedly you built the latest one from GIT so it's not an old version.

Ram kernel should be fine. it would just bork much earlier otherwise.

Hopefully one of the heavyweights can step up and guide you better.

EDIT: Is there any reason you are not just saying:
./k3flasher mx35to2_mmc.bin program kernel kernel.bin

???
Actually, I assumed the .zip from the first post was up-to-date, so I built from that. Could you direct me to the git repo?

As for the actual command, didn't know I could do that, but it makes it a bit easier. Thanks.
littelbro14 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kindle Touch] Boot over USB HID serial / "USB downloader" mode eureka Kindle Developer's Corner 16 02-25-2012 10:21 PM
USB Host Mode (Master Mode) on K3 ericepe Kindle Developer's Corner 1 01-24-2012 04:59 AM
USB Drive Mode copyrite Amazon Kindle 7 02-08-2011 10:47 AM
USB Drive Mode on K3 Paulinafrica Amazon Kindle 5 12-17-2010 12:43 AM
Where did the USB transfer mode go? codo coderson HanLin eBook 2 11-28-2010 07:04 AM


All times are GMT -4. The time now is 09:32 PM.


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