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 06-14-2012, 02:09 AM   #1
ger1972
Member
ger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with others
 
Posts: 10
Karma: 2600
Join Date: Jun 2012
Device: Kindle NT
Developing kindlets on the K4 NT

Hi folks,

I have only recently (this week in fact) been given a Kindle 4 NT and would like to try developing a kindlet to run on it. I have been reading as many posts as I can find on the wiki, and followed the steps for jailbreaking and accessing the root via PuTTY. So far so good.

There's a few things I'm not clear on which I'd appreciate some help with. I'm a software developer by trade, but haven't used unix in 20 odd years, never used PuTTY and I'm new to the Kindle, so can somebody fill in the gaps for me?

1. Does I need to put my Kindle into Diagnostics mode every time I want to access it using PuTTY?
2. How do I copy my kindlet from my PC to the correct location on the Kindle? Do I just copy it to a directory I can access on the Kindle via USB and then copy it to another location using PuTTY?
3. Should I be able to run the "Hello World" kindlet on my Kindle 4 NT (https://www.mobileread.com/forums/sho...php?t=102386)? I have built the program on my PC, but through PuTTY the only directories I can see on the Kindle under /opt are eink, ar6k and factory. There is no amazon directory as per the steps detailed here.
4. The final step in the post above states "Copy signed jar into Kindle". Where do I copy it to?

Any advice appreciated,

Ger

Last edited by ger1972; 06-14-2012 at 02:16 AM.
ger1972 is offline   Reply With Quote
Old 06-14-2012, 02:41 AM   #2
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ger1972 View Post
Hi folks,

I have only recently (this week in fact) been given a Kindle 4 NT and would like to try developing a kindlet to run on it. I have been reading as many posts as I can find on the wiki, and followed the steps for jailbreaking and accessing the root via PuTTY. So far so good.

There's a few things I'm not clear on which I'd appreciate some help with. I'm a software developer by trade, but haven't used unix in 20 odd years, never used PuTTY and I'm new to the Kindle, so can somebody fill in the gaps for me?

1. Does I need to put my Kindle into Diagnostics mode every time I want to access it using PuTTY?
2. How do I copy my kindlet from my PC to the correct location on the Kindle? Do I just copy it to a directory I can access on the Kindle via USB and then copy it to another location using PuTTY?
3. Should I be able to run the "Hello World" kindlet on my Kindle 4 NT (https://www.mobileread.com/forums/sho...php?t=102386)? I have built the program on my PC, but through PuTTY the only directories I can see on the Kindle under /opt are eink, ar6k and factory. There is no amazon directory as per the steps detailed here.
4. The final step in the post above states "Copy signed jar into Kindle". Where do I copy it to?

Any advice appreciated,

Ger
You can add SSH to the main partition by starting diags SSH, then mount the main partition and copy the /usr/local folder across. This is described in more detail in some threads here, and perhaps in the K4 hacking wiki. You can get there from Master Index sticky, K4, then find the K4 hacking wiki link...

To run your own kindlets, you need to install the combined developer keys. Look in the kindlets wiki index.
geekmaster is offline   Reply With Quote
Advert
Old 06-14-2012, 05:12 AM   #3
ger1972
Member
ger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with others
 
Posts: 10
Karma: 2600
Join Date: Jun 2012
Device: Kindle NT
Thanks geekmaster. That answers question 2. Can you help with the other questions. The more specific you can be the better.

1. Do I need to put my Kindle into Diagnostics mode every time I want to access it using PuTTY?
3. Should I be able to run the "Hello World" kindlet on my Kindle 4 NT (https://www.mobileread.com/forums/sho...php?t=102386)? I have built the program on my PC, but through PuTTY the only directories I can see on the Kindle under /opt are eink, ar6k and factory. There is no amazon directory as per the steps detailed here.
4. The final step in the post above states "Copy signed jar into Kindle". Where do I copy it to?

Regards, Ger
ger1972 is offline   Reply With Quote
Old 06-14-2012, 05:34 AM   #4
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ger1972 View Post
Thanks geekmaster. That answers question 2. Can you help with the other questions. The more specific you can be the better.

1. Do I need to put my Kindle into Diagnostics mode every time I want to access it using PuTTY?
3. Should I be able to run the "Hello World" kindlet on my Kindle 4 NT (https://www.mobileread.com/forums/sho...php?t=102386)? I have built the program on my PC, but through PuTTY the only directories I can see on the Kindle under /opt are eink, ar6k and factory. There is no amazon directory as per the steps detailed here.
4. The final step in the post above states "Copy signed jar into Kindle". Where do I copy it to?

Regards, Ger
Those questions should be answered where I told you to look. Instead of saying RTFM, here:
1. No. You can copy the /usr/local folder from diags to main, as shown in the K4 Hacking wiki.
2. You can put it in the documents folder. Follow the instructions provided with other kindlets. Be sure to install the combined developer keystore, as shown in the K4 Hacking wiki.

Last edited by geekmaster; 06-14-2012 at 05:36 AM.
geekmaster is offline   Reply With Quote
Old 06-14-2012, 06:42 AM   #5
ger1972
Member
ger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with others
 
Posts: 10
Karma: 2600
Join Date: Jun 2012
Device: Kindle NT
Thanks geekmaster, just a few more clarifications:

1. No. You can copy the /usr/local folder from diags to main, as shown in the K4 Hacking wiki.
Can I just clarify, when you say K4 Hacking Wiki - do you mean here -> https://wiki.mobileread.com/wiki/Kindle4NTHacking. I dont see where this is covered. Do you mind adding a link to the post to the page you're referring to?

2. You can put it in the documents folder.
After that, what do I do to run the kindlet?


3. Follow the instructions provided with other kindlets. Be sure to install the combined developer keystore, as shown in the K4 Hacking wiki.

Can you add a link to where you mean by "Follow the instructions provided with other kindlets"

Apologies if this makes you feel like a broken record.

Thanks, Ger
ger1972 is offline   Reply With Quote
Advert
Old 06-14-2012, 06:50 AM   #6
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ger1972 View Post
Thanks geekmaster, just a few more clarifications:

1. No. You can copy the /usr/local folder from diags to main, as shown in the K4 Hacking wiki.
Can I just clarify, when you say K4 Hacking Wiki - do you mean here -> https://wiki.mobileread.com/wiki/Kindle4NTHacking. I dont see where this is covered. Do you mind adding a link to the post to the page you're referring to?

2. You can put it in the documents folder.
After that, what do I do to run the kindlet?


3. Follow the instructions provided with other kindlets. Be sure to install the combined developer keystore, as shown in the K4 Hacking wiki.

Can you add a link to where you mean by "Follow the instructions provided with other kindlets"

Apologies if this makes you feel like a broken record.

Thanks, Ger
There should be at least one kindle in the Kindlet Index wiki, linked from the Master Index sticky thread. Others can be found by searching for "kindlet", or look in the "kindle hacks" sticky...

To run kindlets, just click on them just like documents, on your home screen...
geekmaster is offline   Reply With Quote
Old 06-14-2012, 08:02 AM   #7
ger1972
Member
ger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with others
 
Posts: 10
Karma: 2600
Join Date: Jun 2012
Device: Kindle NT
Thanks geekmaster, I'm starting to find my way around a bit better now.

One final question for now. Is there any difference between Kindle 3 and Kindle 4 NT kindlets? Assuming I have installed the combined developer keystore should I just be able to drop an .azw2 file that works on a Kindle 3 onto my Kindle 4. Do I need to rebuild the source for a Kindle 4 NT?


Ger
ger1972 is offline   Reply With Quote
Old 06-14-2012, 09:15 AM   #8
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ger1972 View Post
Thanks geekmaster, I'm starting to find my way around a bit better now.

One final question for now. Is there any difference between Kindle 3 and Kindle 4 NT kindlets? Assuming I have installed the combined developer keystore should I just be able to drop an .azw2 file that works on a Kindle 3 onto my Kindle 4. Do I need to rebuild the source for a Kindle 4 NT?


Ger
It depends on the kindlet and what features it uses. The k4 does not have sound, for example.
geekmaster is offline   Reply With Quote
Old 06-15-2012, 01:29 AM   #9
ger1972
Member
ger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with othersger1972 plays well with others
 
Posts: 10
Karma: 2600
Join Date: Jun 2012
Device: Kindle NT
Thanks again geekmaster, it worked like a charm.

For any other newbie kindlet developers out there with a Kindle 4 NT, I can confirm the following works to get a custom kindlet installed and working.

1. Jailbreak your Kindle are describe on the Kindle4NTHacking wiki
2. Download a kindlet to your PC. I took the kindlet named kapp.azw2 contained in the tar file kapp.tar.bz2 from the "Guide: How to write a Kindlet" page as the source code is also there.
3. Copy the keystore file to your Kindle through USB. In kapp.tar.bz2 this is under the dist directory, named developer.keystore.
4. Copy the .azw2 file to the documents directory on your Kindle via USB
5. Connect to your Kindle using PuTTY and copy developer.keystore to /var/local/java/keystore/developer. You will find developer.keystore under /mnt/us after you copy it to your Kindle.
6. Restart you Kindle and you should see your application (in this case kapp) listed with your documents
7. Click on your application and it should load.

Hope this helps,

Ger
ger1972 is offline   Reply With Quote
Old 06-15-2012, 02:43 AM   #10
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by ger1972 View Post
For any other newbie kindlet developers out there with a Kindle 4 NT, I can confirm the following works to get a custom kindlet installed and working......
.....

Hope this helps,

Ger
you can use merged developer keystore to be able to use "all" kindlets at the same time
thomass is offline   Reply With Quote
Old 06-15-2012, 11:45 AM   #11
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ger1972 View Post
Thanks again geekmaster, it worked like a charm.

For any other newbie kindlet developers out there with a Kindle 4 NT, I can confirm the following works to get a custom kindlet installed and working.

1. Jailbreak your Kindle are describe on the Kindle4NTHacking wiki
2. Download a kindlet to your PC. I took the kindlet named kapp.azw2 contained in the tar file kapp.tar.bz2 from the "Guide: How to write a Kindlet" page as the source code is also there.
3. Copy the keystore file to your Kindle through USB. In kapp.tar.bz2 this is under the dist directory, named developer.keystore.
4. Copy the .azw2 file to the documents directory on your Kindle via USB
5. Connect to your Kindle using PuTTY and copy developer.keystore to /var/local/java/keystore/developer. You will find developer.keystore under /mnt/us after you copy it to your Kindle.
6. Restart you Kindle and you should see your application (in this case kapp) listed with your documents
7. Click on your application and it should load.

Hope this helps,

Ger
Welcome to the "2600 club".
geekmaster is offline   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
Guide: How to write Kindlets KukMan Kindle Developer's Corner 67 07-08-2013 07:23 AM
List of Kindlets available inameiname Kindle Developer's Corner 27 04-14-2012 07:16 AM
Directory contents & opening books through kindlets firefoxpdm Kindle Developer's Corner 5 08-10-2011 10:28 AM
Reading from text files in Kindlets s.august Kindle Developer's Corner 2 05-19-2011 07:20 PM
Is is possible to use the internal API when writing kindlets? kindle3zeng Kindle Developer's Corner 6 02-07-2011 10:35 PM


All times are GMT -4. The time now is 12:29 PM.


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