Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2009, 11:03 PM   #1
ahsanmostafa
Junior Member
ahsanmostafa began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2009
Device: Kindle 2
Starting Kindle Development

Hi All,

I want to start the Kindle development from the scratch.
But I do not have enough knowledge to start and what development tools
is required. As I know there is no Kindle SDK available.

Would you please suggest what development kit and what knowledge is required to start development from the scratch ?

Hope to hear some nice advice from you.

Have a good day.

Mostafa
ahsanmostafa is offline   Reply With Quote
Old 10-19-2009, 11:55 PM   #2
Timoleon
Time Enough at Last
Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.
 
Timoleon's Avatar
 
Posts: 387
Karma: 1151316
Join Date: Feb 2008
Location: New England
Device: iPad 3, iPhone 5, Kindle 3, Fire, Sony PRS-350
I misread your header as "Startling Kindle Development."
Timoleon is offline   Reply With Quote
Advert
Old 10-26-2009, 06:46 PM   #3
pub
Junior Member
pub began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2009
Device: kindle2
Quote:
Originally Posted by ahsanmostafa View Post
Hi All,

Would you please suggest what development kit and what knowledge is required to start development from the scratch ?
1) Get USB networking working so you can ssh into the kindle (see the thread on this forum).

2) You'll need a Linux box. Download Scratchbox (http://scratchbox.org/) and install it enough to get the "cs2007q3-glibc2.5-arm6" compiler.

3) cross-compile your code using the cs2007* compiler and transfer
the file to your kindle via ssh

4) ssh into your kindle and execute the program.

cheers
pub is offline   Reply With Quote
Old 10-26-2009, 06:55 PM   #4
pub
Junior Member
pub began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2009
Device: kindle2
Here's a sample log:

Add the cross-compiler to your path:
Code:
  export PATH=$PATH:/scratchbox/compilers/cs2007q3-glibc2.5-arm6/bin
A small program:
Code:
~> cat hello.c
#include <stdio.h>

int main(int argc, char **argv)
{
  printf("Hello, World.\n");
  return 0;
}
Compile:
Code:
arm-none-linux-gnueabi-gcc hello.c -o hello-kindle
Verify that you have an arm executable
Code:
file hello-kindle
hello-kindle: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped
Transfer program to Kindle:
Code:
cat hello-kindle | ssh root@192.168.2.2 "cat - > /tmp/hello-arm"
SSH into Kindle and run:
Code:
~> ssh root@192.168.2.2
root@192.168.2.2's password:

[root@kindle root]# cd /tmp/

[root@kindle tmp]# ls -la hello-arm
-rw-r--r--    1 root     root         5064 Oct 26 15:49 hello-arm
[root@kindle tmp]# chmod +x hello-arm
[root@kindle tmp]# ./hello-arm
Hello, World.
pub is offline   Reply With Quote
Old 10-27-2009, 08:36 AM   #5
dr_g100k
Member
dr_g100k began at the beginning.
 
Posts: 19
Karma: 12
Join Date: Aug 2009
Device: Kindle DX
Hi,
what about /opt/amazon/ebook/booklet folder? Did Someone Already reverse engineer the firmware?
dr_g100k is offline   Reply With Quote
Advert
Old 10-27-2009, 09:38 PM   #6
DairyKnight
Connoisseur
DairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with others
 
Posts: 63
Karma: 2600
Join Date: Oct 2008
Device: PRS-505
Quote:
Originally Posted by dr_g100k View Post
Hi,
what about /opt/amazon/ebook/booklet folder? Did Someone Already reverse engineer the firmware?
So far as I know, to implement a Booklet, you have to extend your class from
the following interfaces:

com.amazon.ebook.framework.a - Booklet interface
com.amazon.ebook.framework.gui.event.a = java.awt.event.KeyListener
com.amazon.ebook.framework.kos.event.b = Kindle OS Events listener

For the booklet interface, you have to implement the following methods:

public abstract interface a
{
public abstract String C(); // Returns the booklet name as String

public abstract void c(); // Init booklet, set up keypad/mimetype hooks?

public abstract void B(); // Load booklet ?
// Use com.amazon.ebook.framework.gui.d.d.j().a(String booklet_title); to set booklet titles

public abstract void b(); // Some method gets called in the init chain. deals with filenames

public abstract void A();

/** @deprecated */
public abstract void a(y paramy, Graphics paramGraphics); // Painting surface - y is some Component similar to JFrame/Frame
/*



It's just toooo hard to peek through the obfuscated codes. That's why I'd suggest to only decode the JNI part and 'reinvent the wheels' with Java.
DairyKnight is offline   Reply With Quote
Old 05-28-2011, 10:01 AM   #7
myfreeforum
Junior Member
myfreeforum began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2011
Device: kindle3 3g UK
Would just like to say thank for the info.

I have managed the "hello world" bit.
myfreeforum is offline   Reply With Quote
Old 05-28-2011, 10:51 AM   #8
Gizmor
Junior Member
Gizmor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
https://www.mobileread.com/forums/sho...d.php?t=102386
https://www.mobileread.com/forums/sho...d.php?t=100736
Gizmor is offline   Reply With Quote
Old 06-01-2011, 04:59 PM   #9
liuto
Connoisseur
liuto is on a distinguished road
 
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
Quote:
Originally Posted by pub View Post
1) Get USB networking working so you can ssh into the kindle (see the thread on this forum).

2) You'll need a Linux box. Download Scratchbox (http://scratchbox.org/) and install it enough to get the "cs2007q3-glibc2.5-arm6" compiler.

3) cross-compile your code using the cs2007* compiler and transfer
the file to your kindle via ssh

4) ssh into your kindle and execute the program.

cheers
What compiler do I need to just compile my applications with using the exists libraries inside Kindle (DXG,3)?
liuto is offline   Reply With Quote
Old 12-12-2011, 11:06 AM   #10
noisy
Member
noisy began at the beginning.
 
Posts: 22
Karma: 12
Join Date: Oct 2011
Device: kindle 3
btw, scratchbox-toolchain-cs2007q3-glibc2.5-arm6_1.0.12-9_i386.deb can be found at

http://www.scratchbox.org/download/f...s/apophis/deb/

noisy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a Second Library? Fith Calibre 9 03-07-2010 08:28 AM
Shelby Foote's Civil War Kindle starting with Vol2? dwallbaum Amazon Kindle 3 01-28-2010 03:45 PM
Amazon Announces Kindle Development Kit koland News 56 01-23-2010 03:36 PM
Starting dev on Kindle JPDeckers Kindle Developer's Corner 1 09-21-2009 03:22 AM
Starting out on the right format Vulcan Sony Reader 15 12-30-2008 10:09 PM


All times are GMT -4. The time now is 03:43 PM.


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