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-14-2015, 04:55 PM   #181
knc1
Helpdesk Junkie
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: 8,081
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
libpng16 **should** support all of the symbols of libpng12

The easiest way is to try it.

Go to the directory that has libpng12 -
Enter the command:
Code:
ln -s libpng16 libpng12
Then try Kterm again.

The symbols in ELF libraries are versioned, the dynamic loader can figure out the correct entry points.

- - - -

Otherwise, you'll have to download the earlier firmware version from Amazon -
Then use KindleTool to unpack the update, find libpng12, and move it to the same place on the Kindle that holds libpng16.

Note:
You shouldn't have to diddle LD_LIBRARY_PATH any more than it already gets diddled in either case.

Last edited by knc1; 08-14-2015 at 04:58 PM.
knc1 is offline   Reply With Quote
Old 08-14-2015, 05:18 PM   #182
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,857
Karma: 53676858
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by knc1 View Post
Note:
You shouldn't have to diddle LD_LIBRARY_PATH any more than it already gets diddled in either case.
Unless you simply want to keep the "mntroot rw && add_random_stuff && mntoroot ro" to a minimum.
But it could be safely assumed a symlink is not going to fill up the empty space on the system partition.

Thought I'd mention it anyway.
eschwartz is online now   Reply With Quote
Old 08-16-2015, 07:57 PM   #183
ssholloway
Connoisseur
ssholloway has a complete set of Star Wars action figures.ssholloway has a complete set of Star Wars action figures.ssholloway has a complete set of Star Wars action figures.
 
ssholloway's Avatar
 
Posts: 64
Karma: 280
Join Date: Nov 2010
Device: iPhone5, iPadMiniRetina, KindlePW2
Thanks, knc1 and eachwartz. I appreciate your help. Unfortunately I haven't been able to find the directory containing libpng12. I found libpng.so and libpng16.so in /usr/lib but not libpng12. Thoughts?
ssholloway is offline   Reply With Quote
Old 08-16-2015, 09:19 PM   #184
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,857
Karma: 53676858
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
There is no libpng12.so -- create it, as a link to libpng16.so

Code:
cd /usr/lib
mntroot rw && ln -s libpng.16.so libpng.12.so && mntroot ro

Last edited by eschwartz; 08-16-2015 at 09:24 PM.
eschwartz is online now   Reply With Quote
Old 08-16-2015, 09:20 PM   #185
knc1
Helpdesk Junkie
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: 8,081
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by ssholloway View Post
Thanks, knc1 and eachwartz. I appreciate your help. Unfortunately I haven't been able to find the directory containing libpng12. I found libpng.so and libpng16.so in /usr/lib but not libpng12. Thoughts?
As user 'root' -
Code:
mntroot rw
cd /usr/lib
ln -s libpng16.so libpng12.so
mntroot ro
Then restart the machine
knc1 is offline   Reply With Quote
Old 08-22-2015, 05:00 PM   #186
ssholloway
Connoisseur
ssholloway has a complete set of Star Wars action figures.ssholloway has a complete set of Star Wars action figures.ssholloway has a complete set of Star Wars action figures.
 
ssholloway's Avatar
 
Posts: 64
Karma: 280
Join Date: Nov 2010
Device: iPhone5, iPadMiniRetina, KindlePW2
Quote:
Originally Posted by knc1 View Post
As user 'root' -
Code:
mntroot rw
cd /usr/lib
ln -s libpng16.so libpng12.so
mntroot ro
Then restart the machine
I tried this but it kterm still won't run so I probably did something wrong.

Thank you, knc1 and eschwartz, for trying to help. Kterm is not something I used very often so I'll wait to see if someone else is able to get it to work.
ssholloway is offline   Reply With Quote
Old 08-22-2015, 06:01 PM   #187
knc1
Helpdesk Junkie
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: 8,081
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
hmm...
libpng16.so might not be the file,
So just do:
Code:
cd /usr/lib
ls -l libpng*
(that is dash-ell, not dash-one)

then post the result here.
it will be small enough to in-line here, inside of a code - /code pair of tags.
You will see an example of the tags when quote this message.
knc1 is offline   Reply With Quote
Old 08-27-2015, 06:11 PM   #188
normanr
Junior Member
normanr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: Kindle PW2
PW2 with 5.6.5:
Quote:
lrwxrwxrwx 1 root root 11 Aug 1 00:53 /usr/lib/libpng.so -> libpng16.so
lrwxrwxrwx 1 root root 19 Aug 1 00:53 /usr/lib/libpng16.so -> libpng16.so.16.15.0
lrwxrwxrwx 1 root root 19 Aug 1 00:53 /usr/lib/libpng16.so.16 -> libpng16.so.16.15.0
-rwxr-xr-x 1 root root 158032 Aug 1 00:50 /usr/lib/libpng16.so.16.15.0
I tried binary patching matchbox keyboard to use libpng16.so, and got the following instead:
Quote:
/mnt/us/extensions/kterm/bin/matchbox-keyboard: /usr/lib/libpng16.so: version `PNG12_0' not found (required by /mnt/us/extensions/kterm/bin/matchbox-keyboard)
More binary patching just produces:
Quote:
/mnt/us/extensions/kterm/bin/matchbox-keyboard: /usr/lib/libpng16.so: version `PNG16_0' not found (required by /mnt/us/extensions/kterm/bin/matchbox-keyboard)
My process:
Quote:
mv matchbox-keyboard matchbox-keyboard.libpng12
cat matchbox-keyboard.libpng12 | sed -e 's/png12/png16/' -e 's/PNG12/PNG16/' > matchbox-keyboard
dd if=/dev/zero of=matchbox-keyboard bs=1 count=2 seek=4496 conv=notrunc
diff <(hd matchbox-keyboard.libpng12) <(hd matchbox-keyboard)

Last edited by normanr; 08-27-2015 at 06:52 PM.
normanr is offline   Reply With Quote
Old 08-27-2015, 07:22 PM   #189
Micky Wicky
Junior Member
Micky Wicky began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
I've worked out a solution here: http://www.mobileread.com/forums/sho...=1#post3159397
Micky Wicky is offline   Reply With Quote
Reply

Tags
kindle touch, kindle touch hacks, terminal emulator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3 One more terminal emulator for kindle. Matan Kindle Developer's Corner 149 08-23-2015 03:15 AM
PRS-T1 Terminal Emulator in rupor-minimal jcromero Sony Reader Dev Corner 2 09-26-2012 02:07 PM
K5 Anybody working on terminal for Kindle Touch? markatlnk Kindle Developer's Corner 3 06-02-2012 10:07 AM
Development Terminal Emulator oddity twichy enTourage Archive 5 05-01-2011 11:51 AM
DR800 rxvt (terminal emulator) for DR800 GregorRichards iRex 13 01-04-2011 06:56 AM


All times are GMT -4. The time now is 01:14 PM.


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