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 08-13-2012, 02:29 PM   #1
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
KindleTool: Create/Unpack Kindle update files

This has been living in a corner of the Wiki/a couple of posts lost in the middle of a sea of threads for a while, so I thought it was time to finally give it a proper home .

For those unfamiliar with it, it's the CLI tool we use to package our hacks in a somewhat user-friendly Kindle update file (.bin), and unpack and poke into official updates .
It's the successor of the trusty kindle_update_tool.py Python packager we used in the K1/2/3 days, and a fork of yifanlu's original KindleTool project (historically forked to fix the Linux support, and ultimately permit a native win32 port). So, as always, thanks to all those people .

It's living right here on GitHub.

I won't be rehashing the readme, but I'm available to answer any queries you might have .

If you don't want to/can't build it yourself, you'll always find a set of binaries here for every system supported:

* Linux x86 (32bit):
-linux-i686: Recommended binary.

* Linux x86_64 (64bit):
-linux-x86_64: Recommended binary.

* Windows:
-mingw: Recommended binary (native Win32).
-cygwin: Cygwin binary. Needs Cygwin installed, and should only be run from an up to date Cygwin shell.

* OS X:
-osx: Built on 10.10, might run on something older (provided it's at least 10.6). Standalone. (Mac Intel only, 64bit).
Attached Files
File Type: gz kindletool-v1.6.3.3-linux-i686.tar.gz (278.5 KB, 3 views)
File Type: gz kindletool-v1.6.3.3-linux-x86_64.tar.gz (295.1 KB, 3 views)
File Type: zip kindletool-v1.6.3.3-mingw.zip (317.7 KB, 5 views)
File Type: zip kindletool-v1.6.3.3-cygwin.zip (200.5 KB, 3 views)
File Type: zip kindletool-v1.6.3.3-osx.zip (290.2 KB, 2 views)

Last edited by NiLuJe; Yesterday at 09:13 PM. Reason: Bump to 1.6.3
NiLuJe is online now   Reply With Quote
Old 08-13-2012, 02:29 PM   #2
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
For 'live' examples of how one might use this to package something, here's the source to a minimal package that won't install anything, just run a script during the install process.
It's *very* Touch specific, don't use it on older devices.

For older devices, take a look at any of my hacks, the simplest being the 'dummy' one again .

On a completely unrelated note:
Please don't feed non-POSIXy paths to the native win32 port, it won't like it . That means no Windows drive letters, no weird // links, no weird extra \. and to be perfectly safe, only use /, not \ (although it *should* handle the backslash => slash conversion correctly).
It will also horribly dies if you pass a directory with a trailing path separator to the commandline...

EDIT: MKK is another example of a full package, this one supporting *every* devices... (And it's actually fully functional, it's a revamp of PoP's & ixtab's merged developer keystore & Kindlet Jailbreak files & installers).
I aimed for a cleaner/simpler/shorter buildscript, while still supporting every devices.
Attached Files
File Type: zip kindle-dummy-0.N.zip (8.1 KB, 1 views)

Last edited by NiLuJe; Yesterday at 09:14 PM. Reason: Updated build/install scripts (cosmetic changes)
NiLuJe is online now   Reply With Quote
 
Enthusiast
Old 08-13-2012, 02:38 PM   #3
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,048
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Thanks!
qlob is offline   Reply With Quote
Old 08-14-2012, 05:34 PM   #4
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Everything works!!
Thanks a lot!!!
silver18 is online now   Reply With Quote
Old 09-04-2012, 06:33 PM   #5
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Shameless bump for the 1.5.0 release/binaries .

(Yes, I switched to a more common versionning scheme, rather than my SVN-like workaround... It's a bit less abstract this way, now that I tag regular releases).

(As for the ChangeLog, it's bundled as always, but the key points of this release are a bunch of fixed minor memory leaks (in the handling of OpenSSL calls), and a legacy switch to make the archiving of directories similar to Yifan's KindleTool, and not like tar/the python tool like it does by default [cf. the -C switch description in the readme/manpage for more details] . And a smaller mingw binary.).

Last edited by NiLuJe; 09-04-2012 at 06:43 PM.
NiLuJe is online now   Reply With Quote
Old 09-09-2012, 09:40 PM   #6
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
Shameless bump for tomorrow to check these out.
and say thanks for all your great work and help.
twobob is offline   Reply With Quote
Old 09-12-2012, 07:07 PM   #7
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Call for testers:

If you happen to have a 'new' K4, the current git tree *should* support those. I've just repacked my stuff to handle both K4, shout at me if it actually works and/or breaks on 'old' K4.

Depending on if it works, and when new infos about the PaperWhite(s) will drop in my lap, I might do a new release soon.

EDIT: Yup, K4B support's good .

Last edited by NiLuJe; 09-16-2012 at 09:35 PM.
NiLuJe is online now   Reply With Quote
Old 09-22-2012, 07:39 PM   #8
hippy dave
Zealot
hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.
 
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
i just built this for os x 32bit, because my mac is old and creaky - sharing it just in case it's of any use to anyone else. edit: it's version 1.5.0-GIT
Attached Files
File Type: zip KindleTool-osx-32bit.zip (20.6 KB, 185 views)

Last edited by hippy dave; 09-22-2012 at 07:44 PM.
hippy dave is offline   Reply With Quote
Old 09-22-2012, 08:32 PM   #9
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 hippy dave View Post
i just built this for os x 32bit, because my mac is old and creaky - sharing it just in case it's of any use to anyone else. edit: it's version 1.5.0-GIT
Your post needs to be added to the Tools index wiki. Thanks.
geekmaster is offline   Reply With Quote
Old 09-22-2012, 09:12 PM   #10
hippy dave
Zealot
hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.
 
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
good idea, but maybe i should see if niluje wants to add it to his post, otherwise i should replace the zip attachment with one that has the readme/credits etc, rather than just the binary.
hippy dave is offline   Reply With Quote
Old 09-22-2012, 09:35 PM   #11
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@hippy dave: I'm not that familiar with all the different generations of Macs, but, err, why do you need an i386 binary? I'd understand a ppc32/ppc64 one, but was there ever an intel mac released without x86_64 support?

A bit of poking seems to reveal an i386 binary built against the 10.6 SDK with a freakishly ancient Clang build, so I'm genuinely curious as to why you need such a peculiar combo (well, it seems peculiar to me, but like I said, not really familiar with Apple stuff ).

Regardless, if you want me to add it to the first post (which I'll be glad to do, no questions there ), it'll need to bundle libarchive statically linked, and to be linked against system libs, not stuff from MacPorts/Homebrew/Fink. (I don't have a mac on hand, so no otool, so I can't really say anything about the PMS stuff, but I can tell that libarchive is not statically linked ).

Look at the kindletool-static-build.sh script in tools/ to see how I build the stuff in the first post .

Last edited by NiLuJe; 09-22-2012 at 09:43 PM.
NiLuJe is online now   Reply With Quote
Old 09-22-2012, 10:02 PM   #12
hippy dave
Zealot
hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.hippy dave can program the VCR without an owner's manual.
 
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
the first model of macbook, which was available for 6 months in 2006, is core duo so doesn't support 64bit. very annoying by this point, and i'm too skint to upgrade, oh well

oh good point about the static libraries, hadn't crossed my mind so the binary i posted is actually useless to anyone else.

i followed the build instructions to use macports to get the dependencies, god knows how it decided what versions. macports choked on the actual build so i compiled it using x-code. i also don't know why it came out as i386 rather than i686. maybe i'll quit while i'm behind, at least for tonight

thanks for the tool, anyway!
hippy dave is offline   Reply With Quote
Old 09-22-2012, 11:12 PM   #13
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@hippy dave: Ah, wasn't aware of that one, but that explains it, thanks .

I can't tell you much, besides the fact that it does work on a 10.7/10.8 MBA with Xcode 4+CLI tools with MacPorts . But the static build-script actually doesn't depend on MacPorts, that's the whole point, so it should hopefully only require Xcode & its CLI tools, although I haven't tested this on anything older than 10.7 .

(As for i386 vs i686, that's just how the Mach-O binaries refer to the arch, I have no idea what actual compiler settings it defaults to ).

(That said, if you can run the MacPort build in debug mode [-d] and forward me the build log, I can try to look at it & fix it . I suspect you'll encounter the same failure when building it manually/via the static script anyway, so, let's try to fix it ^^).

Last edited by NiLuJe; 09-22-2012 at 11:22 PM.
NiLuJe is online now   Reply With Quote
Old 09-24-2012, 07:11 PM   #14
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: 4,981
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Released 1.5.1, with K4B support .
NiLuJe is online now   Reply With Quote
Old 09-24-2012, 09:27 PM   #15
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 NiLuJe View Post
Released 1.5.1, with K4B support .
What K4B support. Amazon claims that the silver and black models are the same, other than color and price. Did you find a difference?
geekmaster is offline   Reply With Quote
Reply

Tags
kindletool, update

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BookCreator: Does anybody create IMP files using BC? =X= Workshop 0 01-07-2011 01:20 PM
Create readable .mobi files out of pdfs jordan13589 Amazon Kindle 3 12-21-2010 11:35 PM
Create catalogue without creating new files and folders? zaphod234 Calibre 4 07-21-2010 06:44 PM
Firmware Update Kindle dx not sorting recent files after 2.5 update,help nayito2 Amazon Kindle 8 06-05-2010 12:49 PM
unpack requires a string argument of length 2 Sannepan Calibre 2 02-23-2010 02:05 PM


All times are GMT -4. The time now is 12:48 PM.


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