09-08-2009, 03:36 AM | #1 |
Junior Member
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
|
09-08-2009, 04:00 AM | #2 |
Junior Member
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 |
Advert | |
|
09-10-2009, 03:21 AM | #3 |
Connoisseur
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. |
09-12-2009, 02:31 AM | #4 |
Junior Member
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. |
05-04-2011, 05:34 AM | #5 |
Junior Member
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. |
Advert | |
|
10-22-2011, 07:30 AM | #6 |
Member
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. |
|
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 |