03-28-2016, 09:20 PM | #136 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Here is one, possibly useful bit of Windows trivia I read just recently:
Quote:
Code:
local home = getenv('HOME') if not home then -- has to be Windows home = getenv 'USERPROFILE' or (getenv 'HOMEDRIVE' .. getenv 'HOMEPATH') |
|
03-28-2016, 09:26 PM | #137 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Good to know .
But again, we'd have to deal with wchar crap for non-ASCII paths :/. |
Advert | |
|
03-28-2016, 09:48 PM | #138 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I just read what I quoted - -
get 'homedrive' ??? Does that mean it is possible to install Windows on something other than C:\ ? |
03-29-2016, 11:18 AM | #139 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I wrote a paper on that, long, long, long ago in another universe ... I'll see what I can turn up that might be of help. The usual disclaimer follows: Don't Hold Your Breath (tm). Right now, I'm only waiting on feed-back about my cpu report on various device/firmware combinations that are having the short battery run-time problem. (I can (did) write it, but I can't make anyone run it. ) Last edited by knc1; 03-29-2016 at 11:20 AM. |
|
04-03-2016, 07:46 PM | #140 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Today's kindletool_mingw works great on my win7x64, but the cywin version is missing DLLs. I tried using the cygwin DLLs from yifanlu's kindletool package, but that gives "entry point errors" from incompatible cygwin version. Searching my computer for "cygwin.dll" shows many different versions packaged in many different app folders, and history shows that trying to test all the cygwin DLL sets to find one that works with a fussy app ranges between difficult and overtly annoying. I strongly suggest you package cygwin DLLs known to work with this app into the kindletool-cygwin zip file). Meanwhile, back on the hunt for compatible DLL sets from the many on my computer...
Though for me, I am only DLL-hunting to test it for you and those who may download it. The mingw version works great as-is, so I no longer need to run it in a win32 VM. Thanks for the update. Last edited by geekmaster; 04-04-2016 at 12:51 PM. |
Advert | |
|
04-04-2016, 08:07 AM | #141 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@GM:
Great! Thanks for the patch & testing . As for the Cygwin build, I'm not sure shipping the DLL would help, it simply cannot be run from a classic shell, it has to be run from the Cygwin shell. Which reminds me, I need to reinstall Cygwin *somewhere*, I don't have it installed anywhere on my new box, which explains why the Cygwin snapshots are lagging behind... |
04-04-2016, 12:54 PM | #142 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
And yes, it always works best when a complant is accompanied by a solution. Thanks for provinding this tool, and especially ready-to-rock binaries. Last edited by geekmaster; 04-04-2016 at 12:59 PM. |
|
04-04-2016, 01:15 PM | #143 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Okay, I just installed cygwin32, and kindletool_cygwin (running in the cygwin shell) gives me "error while loading shared libraries: cygnettle-4.dll: cannot open shared object file: No such file or directory".
It needs extra stuff installed into cygwin (or in the kindletool folder). This is not noob-friendly. It should have all its required dlls packaged with it, IMHO. It should work without a cygwin install, and especially without needing cygwin add-ons (such as nettle), just like yifanlu's kindletool. Or just skip the cygwin two-step altogether, seeing as how kindletool_mingw works just fine, and not provide the cygwin binaries to save wasted noob brain cells? This option is simpler. Last edited by geekmaster; 04-04-2016 at 01:17 PM. |
04-04-2016, 02:30 PM | #144 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yup, the Cygwin build is a dynamic build, that was mostly on purpose, since the build is mostly there as a gadget now that the MinGW port is done . It's at the end of the list for that reason, I suppose if people are choosing it over the native binary, that's because they know what they're doing .
I seem to remember writing down the deps somewhere, but, heh, I might have dreamed that up (basically: nettle. Possibly libarchive too, in the future). Last edited by NiLuJe; 04-04-2016 at 02:33 PM. |
04-04-2016, 02:37 PM | #145 |
Guru
Posts: 885
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
|
|
04-16-2016, 12:06 AM | #147 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Regarding the comments I made last night, perhaps I was just using kindletool incorrectly. To keep file permissions, it makes more sense to pack payload files (including executables) in a tar.gz file, and unpack that with the install script (which not only preserves file permissions, but can also move files where they are needed).
Previous post content: Spoiler:
Last edited by geekmaster; 04-16-2016 at 09:37 AM. |
04-16-2016, 10:55 AM | #148 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@geekmaster: Yeah, I was going to answer you that it's by design, and not win32 specific .
The permissions are normalized, and only install scripts end up with the exec bit, so, the usual idea is, either as you mentioned, tarball the payload yourself beforehand, or, set the exec bit on your binaries in your install scripts . (I usually do both ^^). |
04-16-2016, 12:33 PM | #149 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Also, I can only find full-flash update. Contrast 7 does not work, nor does eips '', however, like the K5, trying to display a missing image with eips (-b option instead of -g) does force a page refresh (as does echo 1 > /proc/eink_fb/update_display), though I only tested from scripts so no ioctl attempts yet. gmplay will need an update to support /dev/fb/0 on the K1 instead of /dev/fb0 on all the newer kindles. Anyway, I am getting K1 "animation" with dd in my update install script, though at only about ONE FPS full-flash updates (if you can even call that "animation"). Enough for awhile -- I have outdoors chores awaiting, not that the snow seems to be gone for now... Thanks much for keeping the kindletool up to date. I eventually want a KUAL-like jailbreak "substitute" that will use the same tricks as jailbreak, but will launch a root GUI menu like KUAL from an "Update Your Kindle", so it can be used by folks who wish to not mod their root or var filesystems (and the K1 does not even have persistent /var/ anyway)... Last edited by geekmaster; 04-16-2016 at 12:36 PM. |
|
04-16-2016, 01:13 PM | #150 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@geekmaster: That's usually what happens when the kernel doesn't know what to do with the binary (wrong arch), but, err, that seems unlikely here?
I'm not sure anyone here ever had any experience with a K1 though, so, good luck ;p. |
Tags |
kindletool, update |
|
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 |