01-03-2012, 11:24 AM | #1 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Newbies Guide to Kindle Development
(This first post is a place holder that will describe a new wiki that we can refer new members to, who just got a new kindle and their desire to add features to it brought them to our forum.) We need to consolidate old and new information scattered deeply throughout the mobileread forums, which is necessary knowledge needed by beginning kindle developers, who may have little or no linux knowledge and may have never heard of bash. We need to put this information in a clean and easy to read format into a new wiki. Here is the brand new empty wiki: https://wiki.mobileread.com/w/index.p...le_Development EDIT: It's alive! It is not so empty anymore. The wiki has begun to acquire basic content! It should be much more general than typical answers to questions posted in the forums, and it should target beginners as its intended audience. Complex details should be avoided. Being a guide, it should have simplified explanations, with pointers to other places to go to read more about a subject to gain a deeper understanding. It also needs an easy to read style, so important information does not get lost in a flood of details. Please feel free to add to the new forum. Do not be angry if we move or change the information that you provide in order to consolidate it with other similar information. Please help, and please enjoy! Thanks. Last edited by geekmaster; 01-03-2012 at 12:55 PM. |
01-03-2012, 11:27 AM | #2 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Here is a snippet from the IRC channel about this thread and its corresponding new wiki:
Spoiler:
Last edited by geekmaster; 01-03-2012 at 04:24 PM. |
01-05-2012, 04:19 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Kindle 4 NT
|
Updating Kindle software in case of data corruption
I'm new to Kindles, though relatively experienced in Android hacking/dev. My qns:
Device: Kindle 4 Ad supported, Non touch If I ssh/sftp and corrupt some important files, and prevent it from booting up, how can I restore the firmware? Is there a flashable update file available for my device, and how can I flash it? If not, then can I do a dd command to backup and restore a whole file system image? How does the Kindle boot process happen? What init scripts are used, and where? How can I setup init via a bash script so that root file systems are mounted in normal boot mode? I had a look at /etc/init.d, but couldnt follow the bootup process I saw a package of source code for the Kindle on amazon. Is it a whole source (is the Kindle firmware open source), or is it only a kernel? Again same qn as in Q1. How can I flash the compiled binaries? How can I compile binaries for Kindle? Is there a precompiled toolchain available (If someone could upload one, it would be really helpful). If not, can I use the config.gz for my .config. |
01-05-2012, 04:57 AM | #4 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
dd if=/dev/mmcblk0p1 of=/mnt/us/mmcblk0p1.bin bs=1024 flash update uses USB HID device. People are trying to discover how to use that. Not ready yet. The k4nt has a diagnostics mode that gives all you need to fix damage to the primary partition, especially if you backed it up with dd as shown above. From diags you can just do same procedure used to enable root developer mode, but also fix your broken script, or worst case, use dd to replace /dev/mmcblk0p1 with you backup copy. Last edited by geekmaster; 01-05-2012 at 05:01 AM. |
|
01-06-2012, 03:45 AM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Kindle 4 NT
|
Thank you. Could you also tell me what kind of kernel the Kindle uses, and how to write the kernel to it? The USB HID driver ought to be writable to the kernel, and if kernel has the driver, it should show up like an adb device would?
|
01-06-2012, 04:03 AM | #6 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Patching the kernel may prevent firmware updates. yifanlu would be the person to talk to about upgrading kernel versions. He did the version 3 firmware upgrade for kindle DX. |
|
01-06-2012, 07:15 PM | #7 |
Zealot
Posts: 128
Karma: 5792
Join Date: Mar 2011
Location: Australia
Device: Kindle 3
|
Hi,
Could someone here teach me how to use the software found under the Signing applications heading here: http://www.cowlark.com/kindle/getting-started.html ie, how would I use it to create a developer.keystore file, and (more importantly for my uses), how would I use it to create a *.bin update file. I've tried running the python script with the developer.keystore file in the same location, but I'm afraid that doesn't work. I'm working from within windows. |
01-06-2012, 07:21 PM | #8 |
Antonio Bueno
Posts: 1
Karma: 10
Join Date: Jan 2012
Location: Spain
Device: Kindle 4
|
I'm not able to install the RNDIS drivers on x64 Windows7. It's about the linux.inf file, which seems not to be the proper one. Help?
|
01-08-2012, 04:55 AM | #9 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
You can override this behavior with a boot option to allow using unsigned drivers. Or you can use VirtualBox and run linux in it, or run a 32-bit Windows in it (like XP for example). Virtualbox lets you connect USB devices directly to the OS running in the emulated Virtual Machine. |
|
01-08-2012, 05:40 AM | #10 |
Grand Sorcerer
Posts: 5,606
Karma: 23165369
Join Date: Dec 2010
Device: Kindle PW2
|
I've a couple of questions that still puzzle me:
- Why is it possible to start some homebrew apps via launchpad, while others require keystore updates? Do these apps work because the jailbreak adds their keys to the keystore? - I really hate the language limitations of the dictionary lookup and had a look at the KDK API, but there doesn't seem to be any method to get the word under the cursor. Is this a hard-coded feature that is not accessible to apps? - I noticed that the alternative Kindle 3 OS Duokan 2012 installs a minimal Python build. Is there any easy way to create Python based apps on K3s? |
01-08-2012, 05:46 AM | #11 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Different kindlets (java apps) use different developer keys. Jailbreak does not add all of the developer keys. Check out the combined keystore by PoP, which you can find in the kindle hacks sticky at the top of the Kindle Developer Corner forum threads.
Launchpad can also use native mode apps (such as the onscreen console, mplayer, and others), which do not need or use a developer key. |
Tags |
kindle developer guide |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Fire Department Should Help Some Newbies | robertc88 | Kindle Fire | 0 | 12-25-2011 12:20 PM |
Starting Kindle Development | ahsanmostafa | Kindle Developer's Corner | 9 | 12-12-2011 11:06 AM |
Recipe development: any user guide? | dino_hsu_1019 | Recipes | 1 | 08-21-2011 08:18 PM |
Working my Way through The Busy Coder's Guide to Android Development | kennyc | Android Developer's Corner | 22 | 09-25-2010 12:58 PM |
Amazon Announces Kindle Development Kit | koland | News | 56 | 01-23-2010 03:36 PM |