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 09-08-2009, 03:36 AM   #1
cdisou
Junior Member
cdisou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2009
Device: Kindle DX
How to compile for Kindle DX?

I used Scratchbox to compile. The complier I chose was "cs2007q3-glibc2.5-arm7" and all other settings were default. The simple "Hello world" program worked fine on Kindle, but when I try something more complicated, I got "Illegal instruction" error. Could anyone tell me where I was wrong? Thanks
cdisou is offline   Reply With Quote
Old 09-08-2009, 04:00 AM   #2
cdisou
Junior Member
cdisou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2009
Device: Kindle DX
Solved!
the command should be:
gcc -mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -O2 file.c
cdisou is offline   Reply With Quote
Advert
Old 09-10-2009, 03:21 AM   #3
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
How do you build the toolchain and deploy the applications? Through USBNetworking?

Hope some more details could be disclosed here.
DairyKnight is offline   Reply With Quote
Old 09-12-2009, 02:31 AM   #4
cdisou
Junior Member
cdisou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2009
Device: Kindle DX
Recently I found this toolchain from scratchbox
scratchbox-toolchain-cs2007q3-glibc2.5-arm6-1.0.12-9-i386
and it worked without further tweak.

To copy files to Kindle, just use scp with usbnetwork established.
cdisou is offline   Reply With Quote
Old 05-04-2011, 05:34 AM   #5
djtm
Junior Member
djtm began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2011
Device: Kindle 3 Wifi
Did you two ever try compiling powertop for the kindle? I can't find anything about that, except that it was in the gpl sources for the kindle. I'd love to have a powertop binary, but I have no build environment set up.

Update:
Never mind. The kindle includes a powertop binary. But the kernel support for it is disable so it's useless unless you create your own kernel...

Last edited by djtm; 05-05-2011 at 04:58 AM.
djtm is offline   Reply With Quote
Advert
Old 10-22-2011, 07:30 AM   #6
anthonyb
Member
anthonyb began at the beginning.
 
Posts: 16
Karma: 24
Join Date: Sep 2011
Device: Kindle 3 WiFi v3.2.1
I saw this comment by tjwei on github:
[use] toolchain-cs2007q3-glibc2.5-arm6-1.0.12-8-i386 (from stable release).
Do not use toolchain-cs2007q3-glibc2.5-arm6-1.0.12-9-i386.
1.0.12-9 tool chain contains eventfd patch. So it is more like glibc2.7 than glibc2.5.
anthonyb is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xcode compile errors KLUTCH Sigil 3 10-04-2010 10:42 AM
Compile from Source krischik Calibre 8 06-04-2010 08:17 AM
Who can compile a .c program for me? owl123 Workshop 14 04-19-2009 04:26 AM
iLiad Anyone able to compile liberregxml? Adam B. iRex Developer's Corner 11 10-27-2008 07:08 PM
iLiad Trying to compile xvnc viewer Mythago iRex Developer's Corner 3 03-27-2007 04:20 PM


All times are GMT -4. The time now is 12:21 AM.


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