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 01-31-2019, 12:56 PM   #76
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Quote:
Originally Posted by knc1 View Post
If a Kindle, then you have Linux.
If the Kindle has MrPI install, then you have the Kindle/Linux build of kindletool installed (it is part of MrPI).
So I am pretty sure everything is available on the Kindle itself.
Unless you do not have MrPI installed, but if you don't, then why do you need packages generated for it to use?
I meant Linux on PC.

Interesting. I didn't know you can build update.bin packages on the Kindle itself.

That said, instructions for building an update*.bin package for LibrarianSync using the Kindle itself (likely via kterm or something) just so MrPI can then copy/untar the librariansync folder to /mnt/us/extensions seem unnecessarily complicated.

Admittedly, I'm interested in trying to do it now.
ilovejedd is offline   Reply With Quote
Old 01-31-2019, 03:36 PM   #77
knc1
99.44/100% On Holiday
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: 16,945
Karma: 18016732
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
It does sound a bit of over-kill.
Unless your PC happens to be broke, or your working in the field ...

NiLuJe can correct me if I don't have this correct, but I don't think the Kindle build of kindletool is "special" (as in, only unpack).
knc1 is offline   Reply With Quote
Advert
Old 01-31-2019, 05:09 PM   #78
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Alas, the build script wasn't designed for running under kterm.

First, it looks for git to check for PKGREV. I just hard coded that one based on the latest commit.

Second, it expects kindletool to be in /usr/bin/. As far as I can tell, MrPI doesn't bother with creating a /usr/bin/kindletool symlink and just calls kindletool from the full path. (incidentally, I just noticed MrPI recognizes the PW4 as a K5 instead of a PW2)

Last: Unexpected "(" in Line 16.
I'm not at all familiar with Linux shell, though, so I'm stumped as to how to edit line 16 to make it palatable for the Kindle.
Code:
KT_PM_FLAGS=( "-xPackageName=${PKGNAME}" "-xPackageVersion=${PKGVER}-g${PKGREV}" "-xPackageAuthor=barsanuphe" "-xPackageMaintainer=barsanuphe" "-X" )
After that error, I gave up trying to package librariansync on the Kindle.

Of course, after switching to the PC and reading the kindletool readme, I realized that line was likely unnecessary. Alas, I'm way too tired of typing on the Kindle's onscreen keyboard to try again.
ilovejedd is offline   Reply With Quote
Old 01-31-2019, 05:41 PM   #79
j.p.s
Wizard
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 2,290
Karma: 36923809
Join Date: Apr 2011
Device: pb360
With usb networking and ssh, I've never felt the need for kterm.
j.p.s is offline   Reply With Quote
Old 01-31-2019, 06:29 PM   #80
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Quote:
Originally Posted by j.p.s View Post
With usb networking and ssh, I've never felt the need for kterm.
Lol, I'm on Windows so I figured unzipping kterm to /extensions was much simpler than installing and learning how to use usbnet and ssh.

I usually have no need for terminal access on the Kindle.
ilovejedd is offline   Reply With Quote
Advert
Old 01-31-2019, 08:02 PM   #81
knc1
99.44/100% On Holiday
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: 16,945
Karma: 18016732
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
I am not surprised that the scripting isn't for the Kindle environment.
But -
Quote:
(incidentally, I just noticed MrPI recognizes the PW4 as a K5 instead of a PW2)
That might well cause some of the problems that where reported early on with the PW4 support.

NiLuJe will stumble on this and add his insight to the matter.
knc1 is offline   Reply With Quote
Old 01-31-2019, 08:31 PM   #82
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: 9,055
Karma: 14555554
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Yup, KindleTool on ARM is a Real Boy .

As for MRPI's CPU detection, that's quite probable... What does /proc/cpuinfo look like on the PW4?

(And, yeah, no, my packaging scripts are pretty much desktop only, they may depend on Bash 3+, SVN, git, wget/curl, GNU tar, rar, xz, ...).
NiLuJe is online now   Reply With Quote
Old 01-31-2019, 09:06 PM   #83
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Now that I'm not completely clueless (just mostly clueless), edited the build script to make it more kterm-friendly as well as fixed some minor stuff. Would you look at that, it actually worked.

I used the PW2 kindletool binary for packaging. (extracted from: kual-mrinstaller-1.7.N-r15706.tar.xz/extensions/MRInstaller/data/mrpi-PW2.tar.gz/bin/PW2)

Tested working on a PW4 running 5.10.1.2 using latest snapshot versions (2019-01-28).
Attached Files
File Type: gz librariansync-20181228-g4c25ec9.tar.gz (14.5 KB, 55 views)
File Type: gz librariansync-20190102-niluje-gb3224ab.tar.gz (14.5 KB, 62 views)

Last edited by ilovejedd; 01-31-2019 at 09:54 PM.
ilovejedd is offline   Reply With Quote
Old 01-31-2019, 09:19 PM   #84
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Quote:
Originally Posted by NiLuJe View Post
Yup, KindleTool on ARM is a Real Boy .

As for MRPI's CPU detection, that's quite probable... What does /proc/cpuinfo look like on the PW4?

(And, yeah, no, my packaging scripts are pretty much desktop only, they may depend on Bash 3+, SVN, git, wget/curl, GNU tar, rar, xz, ...).
Code:
processor       : 0
model name      : ARMv7 Processor rev 1 (v71)
BogoMIPS        : 7.54
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

Hardware        : Freescale i.MX6 SoloLite (Device Tree)
Revision        : 0000
Serial          :
I noticed detection looks for "i.MX 6SoloLite". I wonder does FBInk also use this detection method? Because LibrarianSync logging on the PW4 kinda looks ugly after the switch to FBInk (big, bold, pixelated characters).

Last edited by ilovejedd; 01-31-2019 at 09:30 PM.
ilovejedd is offline   Reply With Quote
Old 01-31-2019, 09:49 PM   #85
knc1
99.44/100% On Holiday
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: 16,945
Karma: 18016732
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
When the switch was made to the i.MX6SoloLite - there was only one screen size / resolution.

Now there are several, plus the i.MX6Dual core and an even larger screen size / resolution.

Not exactly "bit rot", but more of a "bit race" problem.
Just detecting the processor type will no longer be unique to the model.
knc1 is offline   Reply With Quote
Old 01-31-2019, 09:57 PM   #86
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: 9,055
Karma: 14555554
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@ilovejedd:

Huh. Will have to fix that, thanks! (to match against someting like "i.MX[[:space:]]?[6-7]" instead)

That's mainly to pickup a potentially slightly better optimized binary, there's no functional change.

As far as logging goes, it's because eips is not accounting for dpi (and is still using the exact same cell size since the PW, which means it's been rendering text smaller and smaller as the years went on ), unlike FBInk, so, yeah, the font is going to be bigger (plus, it's already "bigger/blockier" to begin with, since the default font is ye olde IBM VGA font (as seen in your BIOS POST, f.g.), i.e., it's semi-bold), whereas eips's one is thin. Also, one of 'em is square (FBInk), the other tall-ish (eips).

The scaling tries to match the original intent of the PW days (as far as column width is concerned), as that looked perfectly fine at the time (and is what I roughly based the length of my messages on).
But, on 300dpi devices, we jump a scaling step, mainly to make things better on 7" & 8" devices, where eips is ridiculously unreadable.
Which means things might be a tad cramped on 6" 300dpi devices like the PW4, even if the maths still yields roughly the same amount of columns as expected (>= 32 IIRC).

Last edited by NiLuJe; 01-31-2019 at 10:40 PM.
NiLuJe is online now   Reply With Quote
Old 01-31-2019, 11:33 PM   #87
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Quote:
Originally Posted by NiLuJe View Post
As far as logging goes, it's because eips is not accounting for dpi (and is still using the exact same cell size since the PW, which means it's been rendering text smaller and smaller as the years went on ), unlike FBInk, so, yeah, the font is going to be bigger (plus, it's already "bigger/blockier" to begin with, since the default font is ye olde IBM VGA font (as seen in your BIOS POST, f.g.), i.e., it's semi-bold), whereas eips's one is thin. Also, one of 'em is square (FBInk), the other tall-ish (eips).

The scaling tries to match the original intent of the PW days (as far as column width is concerned), as that looked perfectly fine at the time (and is what I roughly based the length of my messages on).
But, on 300dpi devices, we jump a scaling step, mainly to make things better on 7" & 8" devices, where eips is ridiculously unreadable.
Which means things might be a tad cramped on 6" 300dpi devices like the PW4, even if the maths still yields roughly the same amount of columns as expected (>= 32 IIRC).
Thanks for the explanation!

Didn't realize the smallish text with eips was unintended behavior. I kinda prefer it since it's more discreet and doesn't block any of the menu items.

Lol, I just frankensteined my librariansync folder (latest from github with old eips logging from 12/08/18 commit).
ilovejedd is offline   Reply With Quote
Old 02-01-2019, 04:29 AM   #88
knc1
99.44/100% On Holiday
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: 16,945
Karma: 18016732
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by ilovejedd View Post
Now that I'm not completely clueless (just mostly clueless), edited the build script to make it more kterm-friendly as well as fixed some minor stuff. Would you look at that, it actually worked.

I used the PW2 kindletool binary for packaging. (extracted from: kual-mrinstaller-1.7.N-r15706.tar.xz/extensions/MRInstaller/data/mrpi-PW2.tar.gz/bin/PW2)

Tested working on a PW4 running 5.10.1.2 using latest snapshot versions (2019-01-28).
Hey, I got the overall correct, with only errors in all of the details.
knc1 is offline   Reply With Quote
Old 02-01-2019, 08:34 AM   #89
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: 9,055
Karma: 14555554
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@ilovejedd: You could arguably enforce a different scaling factor, but it's going to be tedious to maintain .

For ref.,

LS: After L#14 (the FBINK_CFG.row line), add
Code:
FBINK_CFG.fontmult = 3
For (almost) everything else, dig up libkh5 in the hack's folder, and switch L#202 to

Code:
        FBINK_BIN="${my_fbink} -S3"
NiLuJe is online now   Reply With Quote
Old 02-01-2019, 08:54 AM   #90
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 4,161
Karma: 11900000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, iPad 12.9
Quote:
Originally Posted by NiLuJe View Post
@ilovejedd: You could arguably enforce a different scaling factor, but it's going to be tedious to maintain .

For ref.,

LS: After L#14 (the FBINK_CFG.row line), add
Code:
FBINK_CFG.fontmult = 3
Thank you! I'll try that.

Shouldn't be tedious at all. LibrarianSync is stable and only gets updated when there's an incompatibility with new firmware. I don't update my firmware for it to be an issue.
ilovejedd is offline   Reply With Quote
Reply

Tags
jailbreak, pw3, pw3 jailbreak

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools Software Jailbreak for PW2, PW3, PW3W, KT2, KV, KOA and KT3 knc1 Kindle Developer's Corner 3350 09-12-2019 07:05 AM
Discussion about software jailbreak of newer fresh-out-of-the-box kindles coplate Kindle Developer's Corner 6 09-15-2018 04:38 PM
How to jailbreak DXG with 3.3 software? crazywong Kindle Developer's Corner 2 11-25-2014 09:19 PM


All times are GMT -4. The time now is 10:04 AM.


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