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-25-2015, 11:53 AM   #1
idoit
Plus
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 486
Karma: 271624
Join Date: Jan 2012
Location: Iran - Canada
Device: Kindle DXG
Make your Kindle do dog tricks!

This would be a thread for tips and tricks, making unconventional stuff for Kindle etc. and I hope it can be updated occasionally when anyone finds/implements something interesting.

Eventually, maybe we'll find a way into the Wiki too.

The resources are really endless, with achievements made possible by people like knc1, geekmaster, twobob, NiLuJe, hawhill, ixtab, etc.
Modules in KUAL system etc

EDIT: It can also be a bookmark of links so we don't forget them!

Last edited by idoit; 08-25-2015 at 11:56 AM.
idoit is online now   Reply With Quote
Old 08-25-2015, 11:54 AM   #2
idoit
Plus
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 486
Karma: 271624
Join Date: Jan 2012
Location: Iran - Canada
Device: Kindle DXG
An interesting read about shared libraries: http://www.eyrie.org/~eagle/notes/rpath.html

I used LD_LIBRARY_PATH a lot in the past, we'll see.
idoit is online now   Reply With Quote
 
Advertisement
Old 08-25-2015, 12:27 PM   #3
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,037
Karma: 7025884
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by idoit View Post
An interesting read about shared libraries: http://www.eyrie.org/~eagle/notes/rpath.html

I used LD_LIBRARY_PATH a lot in the past, we'll see.
As implied in that text, using LD_LIBRARY_PATH to get the intended results when using more than one set of system libraries is difficult to impossible (when an application uses both system libraries).
knc1 is offline   Reply With Quote
Old 08-25-2015, 12:46 PM   #4
idoit
Plus
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 486
Karma: 271624
Join Date: Jan 2012
Location: Iran - Canada
Device: Kindle DXG
Quote:
Originally Posted by knc1 View Post
As implied in that text, using LD_LIBRARY_PATH to get the intended results when using more than one set of system libraries is difficult to impossible (when an application uses both system libraries).
Yup. That's why I found it good to read for me and some others who might not have known.

Now, I use /usr/local/lib for my shared libraries symlinked to /mnt/us/applications/lib. And it's very neat.

Last edited by idoit; 08-25-2015 at 07:29 PM.
idoit is online now   Reply With Quote
Old 08-26-2015, 11:02 PM   #5
idoit
Plus
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 486
Karma: 271624
Join Date: Jan 2012
Location: Iran - Canada
Device: Kindle DXG
Brick Safe init.d script

So I'm playing with init.d danger zone and you might already know Kindles are extremely fragile. As we don't have SSH access in the diags of DX(G), I thought of this. For scripts I want in /etc/init.d/, I just make a symlink to /mnt/us/ so that if a stupidity happens in my script, I still would have a chance to go to diag > mount usb > and comment the offending lines in the init.d script... Do you think, it is a good idea / safe?

I thought it's a clever idea, till we get Diag+SSH, eh?

For instance:
Code:
ln -s /mnt/base-us/applications/etc/init.d/myinitscript /etc/init.d/myinitscript

Last edited by idoit; 08-26-2015 at 11:21 PM.
idoit is online now   Reply With Quote
Old 08-27-2015, 06:13 AM   #6
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,037
Karma: 7025884
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by idoit View Post
So I'm playing with init.d danger zone and you might already know Kindles are extremely fragile. As we don't have SSH access in the diags of DX(G), I thought of this. For scripts I want in /etc/init.d/, I just make a symlink to /mnt/us/ so that if a stupidity happens in my script, I still would have a chance to go to diag > mount usb > and comment the offending lines in the init.d script... Do you think, it is a good idea / safe?

I thought it's a clever idea, till we get Diag+SSH, eh?

For instance:
Code:
ln -s /mnt/base-us/applications/etc/init.d/myinitscript /etc/init.d/myinitscript
Perhaps a variation on that -
Quote:
/etc/init.d/rc.local is run very early in the initialization process and at every runlevel change.
Of course, that was from the mainstream init docs and the Kindles use the Busybox init - -
But if Busybox init still acts that way (about running an rc.local) - -
then linking it to: /mnt/base-us/esys/etc/init.d/rc.local should put it into user storage.

- - - -

Note:
What you read here:
https://bitbucket.org/twobob/kual-sy...92e6?at=master

Had a directory tree change:
From: /mnt/base-us/extensions/system
To: /mnt/base-us/esys
(Paths where getting too long for the ELF headers with the old naming plan.)

I should have (did have) owner/admin status on that repo - but am having trouble getting back in as admin.
That problem is on my todo list of things I need to fix or clone that repo somewhere else.
knc1 is offline   Reply With Quote
Old 08-27-2015, 08:42 AM   #7
idoit
Plus
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 486
Karma: 271624
Join Date: Jan 2012
Location: Iran - Canada
Device: Kindle DXG
[Applicable only for DX/K2 devices]
Or if one has DX(G) v2.5.8, by doing step 1 of KindleUpdater to v3.2.1, it flashes a kernel with which diags will expose all MMC partition in USB mode. Briliant. But still having 2 brick safe strategies is better than one.

From its readme txt:
Spoiler:
The Kindle prepare process will take from anywhere between 30 minutes to an hour. In this time, it will first generate rootfs.img to use on the host (and also for manual recovery), update_restore-os.bin for restoring back to the client's original software version, and flash a custom kernel that allows unsigned recovery packages and no-password MMC export.
idoit is online now   Reply With Quote
Old 08-27-2015, 08:48 AM   #8
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: 5,883
Karma: 5578269
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
Can we actually create symlinks to a vfat partition?
NiLuJe is offline   Reply With Quote
Old 08-27-2015, 09:21 AM   #9
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,037
Karma: 7025884
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by knc1 View Post
- - - -
I should have (did have) owner/admin status on that repo - but am having trouble getting back in as admin.
That problem is on my todo list of things I need to fix or clone that repo somewhere else.
It gets worse:
**ALL** of our (twobob and I) Kindle repositories on bitbucket are without any owner.

And to add insult to injury, github has even forgotten my account.

Hmm...
And my private server is down to its last Tetrabyte of storage.
Ah, well, I suppose I had better clone all of them to my server just to be safe.
(Those repos on bitbucket include all of the "mainframe on Kindle" files.)

- - - -

Information post number 8,008 -
Guess we could call it: I8008
(I missed the opportunity @ post 4004 and 4040)

Last edited by knc1; 08-27-2015 at 09:39 AM.
knc1 is offline   Reply With Quote
Old 08-27-2015, 09:33 AM   #10
idoit
Plus
idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.idoit ought to be getting tired of karma fortunes by now.
 
idoit's Avatar
 
Posts: 486
Karma: 271624
Join Date: Jan 2012
Location: Iran - Canada
Device: Kindle DXG
Quote:
Originally Posted by NiLuJe View Post
Can we actually create symlinks to a vfat partition?
Yup! I'm doing it.

@knc1: That doesn't sound good!
idoit is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Teaching an Old Dog new tricks! Bompa65 General Discussions 0 10-14-2013 08:25 AM
Old Dog New Tricks forumshrew General Discussions 19 09-08-2013 08:06 PM
Kindle DX and K3 Tricks v.1.1 playful Amazon Kindle 11 12-18-2010 05:21 PM
Kindle DX and K3 Tricks v.1.2 playful Amazon Kindle 17 11-16-2010 08:53 PM
Kindle DX and K3 Tricks playful Amazon Kindle 7 10-07-2010 07:16 PM


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


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