Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2012, 11:44 PM   #181
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,552
Karma: 6021142
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
ermm... you got me there. I would have to go look.

It's not in the top-post?


In other news: Here https://gist.github.com/3369924 that looks familiar so you are not alone.

EDIT: ERR. silly me I was thinking of k3libre. no, this one is from source.

Last edited by twobob; 11-08-2012 at 11:47 PM.
twobob is offline   Reply With Quote
Old 11-09-2012, 05:39 AM   #182
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,134
Karma: 2115387
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
ZIP is fine, I didn't bother to make a Github repo for k3flasher yet. I will if others jump aboard and start developing with it.

The error being shown seems to indicate that the device does not switch into RAM kernel mode. I would give it one or more tries to see if it never sees the RAM kernel, but I guess it's just another case of dead battery or hardware failure (i.e. the "endless reboot" situation). Host side / software-wise everything should be OK, I think.
hawhill is offline   Reply With Quote
Old 11-09-2012, 06:06 AM   #183
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by hawhill View Post
ZIP is fine, I didn't bother to make a Github repo for k3flasher yet. I will if others jump aboard and start developing with it.
Making a Github (or Bitbucket) repo is better than just zipping and attaching the source even if you're developing without collaborators. Just because it's more convenient to download the source (I mean git clone https://... is better then downloading attachment from Mobileread manually) and it will be possible to look at source without downloading. These services also provide direct download link for zipped (or tarballed) sources, so you doesn't lose anything.
eureka is offline   Reply With Quote
Old 11-09-2012, 07:20 AM   #184
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,134
Karma: 2115387
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I know pretty well. It started as a project that was untested and pretty able to allow people to shoot themselves in their feet, potentially bricking devices, yadda, yadda... I just wanted to go the ZIP-attached-to-post route in this case. Some of the reasons are now gone, especially the "untested" part, so I might shift it over to GH soon.
hawhill is offline   Reply With Quote
Old 11-09-2012, 07:32 AM   #185
knc1
Embedded Cheerleader
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: 6,664
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by hawhill View Post
I know pretty well. It started as a project that was untested and pretty able to allow people to shoot themselves in their feet, potentially bricking devices, yadda, yadda... I just wanted to go the ZIP-attached-to-post route in this case. Some of the reasons are now gone, especially the "untested" part, so I might shift it over to GH soon.
Have you given any thought to what license you will be using?

The reason I ask, is that using a viral license (such as the GPL) would prohibit the inclusion of Freescale's binary.
knc1 is offline   Reply With Quote
Old 11-09-2012, 07:44 AM   #186
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,134
Karma: 2115387
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I'm not really in love with viral licenses either, so it will probably MIT or similar. Though I like my "know-what-you're-doing" licence :-)
hawhill is offline   Reply With Quote
Old 11-09-2012, 08:05 AM   #187
knc1
Embedded Cheerleader
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: 6,664
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by hawhill View Post
I'm not really in love with viral licenses either, so it will probably MIT or similar. Though I like my "know-what-you're-doing" licence :-)
Not a matter of my opinion, it is a requirement of the Freescale object code license.

PS: Perhaps you could put the "Recharge the battery" warning in the top post here?
The Paperwhite "HowTo" has been updated with that information.
knc1 is offline   Reply With Quote
Old 11-09-2012, 04:45 PM   #188
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,552
Karma: 6021142
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
have a device that needs love:

/usr/local/src/k3flasher $ sudo ./k3flasher ./mx35to2_mmc.bin info
Quote:
W: cannot find device (is it in USB loader mode? are you root?) - waiting for it.........................
I: success.
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.
I: read info
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
E: aborting. It is suggested you power-cycle the device.
Will charge it overnight and try tomorrow. : )
twobob is offline   Reply With Quote
Old 11-11-2012, 11:39 AM   #189
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,552
Karma: 6021142
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
Light was green: (after a good day - or so - on charge )

Quote:
I: flashed 0x001d0000 (=1900544) bytes
I: flashed 0x001e0000 (=1966080) bytes
I: flashed 0x001f0000 (=2031616) bytes
I: flashed 0x00200000 (=2097152) bytes
I: flashing of 0x00200000 (=2097152) bytes complete
E: reading data from device: LIBUSB_ERROR_NO_DEVICE
E: flashing data
E: aborting. It is suggested you power-cycle the device.
Will try again tomorrow

EDIT: For the future reader - This device (above) was defective and was returned.

Last edited by twobob; 11-27-2012 at 06:41 AM.
twobob is offline   Reply With Quote
Old 12-11-2012, 09:12 PM   #190
CaelThunderwing
Connoisseur
CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40CaelThunderwing is slicker than a case of WD-40
 
Posts: 92
Karma: 73434
Join Date: Jun 2011
Device: K3(Wifi+3G) K4NT(Wifi Only WSO)
the idea was mentioned in my topic in getting help to recover my K3, can k3flasher be modified to "resume"? or continute from changed erase blocks?
CaelThunderwing is offline   Reply With Quote
Old 12-11-2012, 10:17 PM   #191
geekmaster
Всё гениальное просто.
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: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by CaelThunderwing View Post
the idea was mentioned in my topic in getting help to recover my K3, can k3flasher be modified to "resume"? or continute from changed erase blocks?
It would need to be modified to log its progress, and add a command line flag to scan that progress log to see where to resume.

Another potential mod that was discussed previously would be to add an option to read before write and only write changed blocks. Because flashing is much slower than reading, this could significantly speed up the procedure when flashing a known good image of the same version as the broken image on the kindle.

EDIT: If nobody implements these k3flasher mods by the time I am ready to build my K3 eink wall (when I will need to flash a large quantity of K3s), I will do it then (when I need it). Like most unfunded software projects, significant code contributions published here are driven primarily by personal need or personal interest, or perhaps by a desire for recognition or fame, tempered by available time and resources. I must admit that all of these things motivate me.

Last edited by geekmaster; 12-11-2012 at 10:27 PM.
geekmaster is offline   Reply With Quote
Old 12-12-2012, 06:15 AM   #192
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,134
Karma: 2115387
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I think it *does* log its progress. In fact, it's awefully verbose, I guess :-)
The hardest part is probably to cut-and-slice the image to flash accordingly.

I really like the read-before-write idea. Besides being faster, reading should also consume much less energy. I still didn't get to implement it, though, and that is likely to stay that way until the free days over christmas. And in fact, I already planned to dedicate that time to kindlepdfviewer on my KPW....
hawhill is offline   Reply With Quote
Old 12-22-2012, 02:39 PM   #193
dpavlin
Connoisseur
dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.
 
dpavlin's Avatar
 
Posts: 59
Karma: 116622
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
Quote:
Originally Posted by twobob View Post
EDIT: For the future reader - This device (above) was defective and was returned.
Just a quick comment about

Code:
reading data from device: LIBUSB_ERROR_NO_DEVICE
I spent half a day fighting it and in the end it turned out to be Samsung USB cable which was sensitive to movement. I even implemented resume of download in k3flasher during this, but simple change of cable proved to be enough. Hopefully this hint will help someone.

In the process I wrote perl wrapper which can do incremental dumps, and then started hacking on k3flasher adding continuation of dump if file already exists, and ability to specify continue address and read before flash for programing flash. Reading of flash is turned off on first unsuccessful verify, mostly because additional reads beyond end of correctly flashed size showed down flashing a lot.

Code is at https://github.com/dpavlin/k3libre/t...ster/k3flasher

It would benefit from peer review, so be kind :-)

Last edited by dpavlin; 12-24-2012 at 07:02 PM. Reason: added link to code
dpavlin is offline   Reply With Quote
Old 02-20-2013, 10:41 PM   #194
(-_-)
( ͡° ͜ʖ ͡°)
(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'(-_-) knows the difference between 'who' and 'whom'
 
Posts: 39
Karma: 10000
Join Date: Aug 2012
Device: O_o
Question

I now nothing of Linux, please help me.


I burned a Ubuntu disk just to use k3flasher. ATK wasn't working for me.

I know you said this was for people who know what their doing, but my K3 is bricked!!
I've always had Windows, so I need a little direction here with this programmer's OS.



Running off live CD now.

I have all the files.(including libusbx & the atk file)


ReadMe says run 'make' to get a binary.
run it I get :
fatal error: libusb.h: No such file or directory
compilation terminated.



Maybe libusbx had installation issues..:
Code:
/usr/bin/install: cannot create regular file `/usr/local/lib/libusb-1.0.so.0.1.0': Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/ubuntu/Desktop/myname/k3flasher/libusbx-1.0.14/libusb'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/ubuntu/Desktop/myname/k3flasher/libusbx-1.0.14/libusb'
make: *** [install-recursive] Error 1







Last edited by (-_-); 02-21-2013 at 02:39 AM. Reason: x_x
(-_-) is offline   Reply With Quote
Old 02-21-2013, 07:04 AM   #195
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: 576
Karma: 2059117
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Here's my build of k3flasher, pretty selfcontained:

Code:
# ldd k3flasher
        linux-gate.so.1 =>  (0xb7702000)
        librt.so.1 => /lib/librt.so.1 (0xb76d3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb76b8000)
        libc.so.6 => /lib/libc.so.6 (0xb754b000)
        /lib/ld-linux.so.2 (0xb7703000)
It's from dpavlin's branch that adds some improvements - https://github.com/dpavlin/k3libre/t...ster/k3flasher .
Attached Files
File Type: zip k3flasher.zip (105.9 KB, 75 views)
dsmid is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:52 PM.


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