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 04-16-2016, 10:48 PM   #151
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by NiLuJe View Post
@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.
That binary is the same one in my "video player" thread. I wanted to see if it would at least run before modifying the framebuffer location (and I was even thinking of making a symlink from /dev/fb0 to /dev/fb/0 so the old gmplay would still work as-is. No "wrong arch" binary, so still a bit confuzzled about the problem on my K1. Will revisit later...

More puzzling is why my install.sh cannot source a companion script, even when copying similar code directly from the resident "otaup" script (where it should be safe to assume that it does indeed work).

I think it would be cool to launch a KUAL-like menu from an update-install.bin file, without any rooting or jailbreaking involved (other than borrowing from the jailbreak method of running root-code. Another thing I have wanted to do is a custom RAM-resident uboot and/or kernel to launch a root (native) menu system with MfgTool (usb downloader mode), to launch and run apps from user store (or SD card, in the case of the K1).

Last edited by geekmaster; 04-16-2016 at 10:55 PM.
geekmaster is offline   Reply With Quote
Old 04-16-2016, 11:00 PM   #152
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
@NiLuJe: Also, thanks again for providing binaries for the win32 kindletool, which is enabling my K1 (mis)adventures at the moment (until I build another linux hardware machine from my largish collection of quite capable computer hardware, before it all goes hopelessly obsolete).

Also, google shows that you (if indeed you) seem to be fond of taking panorama pictures. I have a collection of full 360 images I have been taking (some of which are online).
geekmaster is offline   Reply With Quote
Old 04-16-2016, 11:25 PM   #153
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@GM: Nope, that's not me .

The nickname is rather common though, since it happens to be the most commonly used anagram of "Julien" (... which isn't actually my name either. Don't ask ;p). As for actual homonyms, never looked into it, but yeah, probably a few, too.
NiLuJe is offline   Reply With Quote
Old 04-16-2016, 11:40 PM   #154
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by NiLuJe View Post
@GM: Nope, that's not me .

The nickname is rather common though, since it happens to be the most commonly used anagram of "Julien" (... which isn't actually my name either. Don't ask ;p). As for actual homonyms, never looked into it, but yeah, probably a few, too.
It was somebody who went by NiLuJe (complete with identical capitalization), who lives in Paris France. So just a coincidence? Well, lots of folks have hijacked "geekmaster" (which I have used for decades) in lots of forums, so...
geekmaster is offline   Reply With Quote
Old 04-16-2016, 11:42 PM   #155
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Since one of the origins of the nickname is a (now long defunct) obscure but cherished local radio show, most of them/us are around Paris, yeah .

Last edited by NiLuJe; 04-16-2016 at 11:44 PM.
NiLuJe is offline   Reply With Quote
Old 04-17-2016, 02:47 PM   #156
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I have been noticing something unusual on my K1 about residual update_install effects. I last used an install.sh that does "animation" on the eink display. Whenever my kindle wakes up from screensaver mode, my install animation runs, every time (including when I plug in the USB cable while it is showing a screensaver). None of the usual update install screens are displayed, so it seems otaup is not running. I wonder if this happens (but with no apparent visual evidence) on newer kindles...

I am curious though why waking up from a screensaver (or even launches a residual update_install script (firmware version 1.0.8). And when plugged into USB, it seems to wake itself up periodically (about every 3 or 4 screensavers) for no apparent reason, catching my attention because of my animation install scripts that keeps spontaneously running...

To be safe, I suppose install scripts should clean up and delete themselves, to prevent this (hidden in most cases) phenomenon.
geekmaster is offline   Reply With Quote
Old 04-17-2016, 04:10 PM   #157
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@geekmaster: You mentioned the lack of /var, which might indeed mean that, unlike on newer devices, otaup doesn't cleanup after itself .

That doesn't really explain why those scripts suddenly run for no apparent reason (unless they never got killed?), but, still ;p.
NiLuJe is offline   Reply With Quote
Old 04-17-2016, 05:29 PM   #158
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by NiLuJe View Post
@geekmaster: You mentioned the lack of /var, which might indeed mean that, unlike on newer devices, otaup doesn't cleanup after itself .

That doesn't really explain why those scripts suddenly run for no apparent reason (unless they never got killed?), but, still ;p.
They do not loop, and installs are unpacked into /tmp/ which I believe is one of the 10 RAM disks. It probably disappears if you do a hard reset, not just when it is in screensaver mode (mostly asleep). Turning the power switch off (which blanks the screen) does not prevent the install script running again after it goes into and comes out of screensaver mode. Strangely, though my script does not loop (just one pass and return 0, and it is in a directly name with unique process ID, it still RERUNS now and then. Also, when plugged into USB, it sometimes awakes unexpectly and runs the script before displaying the home screen.

K1 has enough differences to be interesting, including no var, no apparent keystores in the mounted file systems, and lots of unmounted partitions. Also, it uses the Samsung XRS flash manager, with bml0 (block management) devices that do not do write wear-levelling (only mounted read-only) and stl0 (sector translation layer) overlays with write wear-levelling and bad block removal (and spare sectors to replace them). Difficult to decide which level (raw or translated) to backup and restore, with potential device dependence (depending on flash wear and sector relocation). And an intel SoC instead of FreeScale (now NXP). Interestingly, the /test/ folder on my K3 seems to support a wide range of devices including K1 and K5, newer than K3, based on contained comments. I also have a /test/ folder on one of my K4 devices. I will eventually try copying K3 /test/ to my K1...

I suppose I should document this stuff in an independent thread, even though it is a derivative of this thread because my explorations began with kindletool. And we seem to be missing a K1 prefix and prefix index?
geekmaster is offline   Reply With Quote
Old 04-17-2016, 06:17 PM   #159
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I am confused now. After turning off backdoor lock (KUAL extension) on my K5g, any update.bin package I copy to its userstore gets deleted immediately on USB eject. Grey in UYK, and missing even if plugged into computer immediately after USB eject. Any file names "update*.bin" goes missing. Firmware version 5.1.2, wifi+3g, s/n B00F***). I even copied USBnet.xml to update_junk.bin and it was gone after USB eject and insert.

Ideas? Of course, I could re-do kubrick on it. Does 5.1.2 really require MRpi installs?

EDIT: Hmm... I tried MRpi, but it said "destroying package" while running, and no evidence that my install.sh script ran (no log file on /mnt/sh, nor any eink animation). Ideas?

Last edited by geekmaster; 04-17-2016 at 06:23 PM.
geekmaster is offline   Reply With Quote
Old 04-17-2016, 07:06 PM   #160
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@geekmaster: otacheck scraps invalid packages on userstore remount, and MRPI also honors the device check, so, I'd say you're not targeting the right model in your package?

You can check MRPI's logs to confirm: /mnt/us/extensions/MRInstaller/log/mrinstaller.log

Last edited by NiLuJe; 04-17-2016 at 07:10 PM.
NiLuJe is offline   Reply With Quote
Old 04-17-2016, 07:45 PM   #161
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
It is a K5 with 3G. I tried ALL the K5 variants that kindletool creates. And a K1 (because I had it), and then a renamed XML file. All deleted immediately on USB ejection on this K5 5.1.2 (airplane mode, then kubrick, KUAL, backdoor locked, 3G on to test lock -- no background OTA update, so backdoor lock worked).

Question: do I need a different update type? Now using:
..\..\kindletool create ota -d k5g * ../Update_autorun_k5g_0.1.GM_install.bin
from the folder containing only my install.sh script.

EDIT: Ahh... I see... You used OTA2 for K5 packages. I will try that now.

EDIT: Hmm... With OTA2 it fails with: "Error opening temp file: Invalid argument. Cannot write update to output." Probably another instance of trying to write to drive root instead of local directory. Need more of that patch of mine we added? Create OTA works, but create OTA2 fails.

EDIT3: I copied your K5 Dummy install, and it survived USB eject and replug. The K5 must validate any update packages it finds on userstore immediately after ejecting USB from a host PC. I will eject again and try UYK. Yes, it ran. So until we have a good win32 kindletool that uses non-root temp files for OTA2 updates, it looks like I need to use a linux version. My old K1 firmware works fine with OTA updates, but that may change after I update to newer firmware.

EDIT4: Nope, don't see it in the latest kindletool source. HOWEVER, I did see this file: kindletool_create_tarball_a03440 left sitting in my install directory along with install.sh, and I did see source code trying to MOVE tarball files to temp, so perhaps my win32 patch is causing this to fail while moving a tarball onto ITSELF in the current directory? Okay, perhaps that "." we added for win32 needs to change to ".." (which requires the current dir be at least two levels deep from root.

Last edited by geekmaster; 04-17-2016 at 08:38 PM.
geekmaster is offline   Reply With Quote
Old 04-17-2016, 08:51 PM   #162
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Okay, I changed win32 temp path from "." (current dir) to ".." (parent dir) to prevent OTA2 failing when moving the tarball file from current to temp dirs (which are the same for win32, until we build in my latest tiny patch). I think you can move a file to itself (just a redundant rename) on linux, but apparently not win32... Of course, I did not yet test this (no useful mingw toolchain yet). I sent you a pull request on kindletool.h.
geekmaster is offline   Reply With Quote
Old 04-17-2016, 09:27 PM   #163
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@geekmaster: otaup might indeed require otav2 packages, but MRPI certainly doesn't, so that's intriguing. Could you take a look at its log, to see how it actually complained?

I'll look into the win32 thing again (probably next week)... :].

EDIT: PR won't help, that's a standard(-ish) tmpfile() call failing.

Last edited by NiLuJe; 04-17-2016 at 09:31 PM.
NiLuJe is offline   Reply With Quote
Old 04-17-2016, 10:03 PM   #164
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I tried the cygwin version after installing the recommended packages, but when I run kindletool (in the cyg shell), I get a "cyghogweed-2.dll not found". The cygwin setup cannot find one in their archives (where I installed libnettle4 et al). Google only finds cyghogweed in a bunch of virus scanner websites... Whazzup wit dat?

Last edited by geekmaster; 04-17-2016 at 10:08 PM.
geekmaster is offline   Reply With Quote
Old 04-17-2016, 10:08 PM   #165
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,506
Karma: 26047202
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 the other bit from nettle. Install it (nettle) from the Cygwin package manager. IIRC, that's the only dep, libarchive is still statically linked.
NiLuJe is offline   Reply With Quote
Reply

Tags
kindletool, update


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 04:02 AM.


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