![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
To run your own kindlets, you need to install the combined developer keys. Look in the kindlets wiki index. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#5 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
To run kindlets, just click on them just like documents, on your home screen... |
|
![]() |
![]() |
![]() |
#7 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#8 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
you can use merged developer keystore to be able to use "all" kindlets at the same time
|
![]() |
![]() |
![]() |
#11 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |