08-13-2016, 10:04 AM | #16 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
any operating system that supports ext2/3/4 file systems. In fact, most 'inode' based file systems support sparse files. Another application that uses sparse files; VirtualBox |
|
08-13-2016, 10:13 AM | #17 |
Groupie
Posts: 175
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
|
For 2 GB I wouldn't think about sparse files. Also don't forget the fun involved when the parent FS is full and the sparse file can not allocate blocks.
|
Advert | |
|
08-13-2016, 11:00 AM | #18 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I was referring to the steps at twobob's linked code. I should have established context. Yes, exyending from 500 ro 2000, does need it (as I also mentioned).
|
08-13-2016, 11:11 AM | #19 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
EDIT: I see now that twobob's code wrapped in my smartphone browser (no code tags) -- I missed the append flag. My comment was moot. |
|
08-15-2016, 05:45 PM | #20 | |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Quote:
Last edited by encol; 08-16-2016 at 05:11 PM. |
|
Advert | |
|
08-15-2016, 06:18 PM | #21 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
|
01-01-2017, 08:22 AM | #22 |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Hello, All!
I'm a rank amateur/beginner/dilettante/newbie as regards cross compiling. Though I've helped out with bug testing and feature suggestions for some applications. A few years back, twobob exhorted me to try. He gave his example - how he learnt stuff, tried and succeeded. Well, It was inspiring, but I was too lazy to do anything further. Now, there is a fairly stable open source chess problem solving program called Popeye (https://github.com/thomas-maeder/popeye). It's a CLI program. I managed to compile this and run it on my netbook running Ubuntu 14.04. Earlier, I was using the pre-compiled windows .EXEs. So, you can guess where I'm leading this up to! I would very much like to compile and get it running on my Kindles. I wasn't able to persuade anybody to do it for me, so looks like I've to jump into the pool after all! To start off, I need one help from you experts: Which cross compiling tool chain should I first install on Ubuntu? I'm confused between "armel", "armeabi", "armhf", etc. I read somewhere here that Kindles are armel. Obviously, I'll update my progress and hopefully upload/link the finished Kindle executable here when I've succeeded! Thank you, in advance! |
01-01-2017, 05:10 PM | #23 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Instructions in this thread are a good place to start.
Use the first method (the others should be equivalent, but this is what i tested). An important thing: when you test gtk apps, remember that in kindles all windows must follow a particular title convention: read this (in particular posts #11 and #13) Last edited by encol; 01-01-2017 at 07:16 PM. |
01-02-2017, 02:53 AM | #24 |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Thanks for your reply, encol!
Ok. From looking at your instructions, it looks like Kindles need an armel tool chain. The application I'm interested in porting is not a gtk app... as far as I can make out. Also, it looks like you're creating a full armel environment inside your linux box, by using qemu emulation, etc. Maybe you use this for testing the ported app within your linux box itself, before copying it over to the kindle I don't know whether that's required in my case. I'm OK with producing an armel specific image of the final executable on linux and copying it over to kindles for testing. |
01-02-2017, 08:15 AM | #25 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Yes, Kindles are ARMel - softfloat - eabi Although it is possible to run ARMhf concurrently with the factory system images. - I wrote a thread on that with worked examples. Do you have the serial port connection set up on your Kindle? If not, find a way to test your program off of the Kindle. If you would describe your application - we could probably give you more specific advice. And if it is a closed source application - go away - we don't do that here. |
|
01-02-2017, 11:55 AM | #26 | |||
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Hello, knc1! Was waiting for you to join in!
Quote:
I assume I can copy the cross compiled executable from my Linux box over to my Kindles and test it there? Quote:
It was first written for MS-DOS around 1984 in COMAL, a PASCAL derivative. Later it was converted to C and made to run on a wide variety of platforms. From the Wikipedia entry: Quote:
Other inormation: It's a pure CLI application. It takes input from a text file or from the keyboard and outputs to screen and/or text file. It uses a hash table. It's able to work with memory from 16M to 1G or more. |
|||
01-02-2017, 12:04 PM | #27 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I had no way of knowing that you had not changed the subject.
Yeah, I know, it was all clear in your mind when you wrote the post. A command line program is about the safest thing you could be building. At worst, you might have to re-boot the Kindle. Have you checked any of the major Linux distributors package libraries (like Debian/Jessie) to see if it is already built for you? |
01-02-2017, 12:19 PM | #28 |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Thanks for your reply, knc1!
I've not checked. But I don't think Popeye is something that would be pre-built and added into any Linux distribution. Its audience is small. At most, I would estimate less than 1000 users. I've written to the current maintainer, but don't think he'll oblige by giving me a nice compiled executable! Someone like twobob, baf or niluje could do it, i'm sure. But they're busy. So, with your blessings, I'll start myself! |
01-02-2017, 12:51 PM | #29 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
That is the way to get started, just start.
I have (**somewhere**) Sargon, both the manual and the source. Also, I am pretty sure I have seen an x86 emulator (for ARM) that can run PC-DOS (well, FreeDOS). Just if you want to run the original binaries on the Kindle. Small audience? You can't get much smaller than the "Mainframe in a zipper case" thread (system-s (360, 370, 390) emulator for the Kindles). I think there have been about 10 downloads of that in four years. And that is probably just WebBots that are lost. |
01-02-2017, 01:52 PM | #30 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
... or maybe encol
|
Tags |
cross compile, debian, source |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Voyage 5.6.2.1 Serial Jailbreak Step-by-Step | noismaster | Kindle Developer's Corner | 72 | 11-08-2021 08:04 PM |
Mac OSX: Idiot-Proof Font Scaling Fix [Step-by-step] | Jelbee | Kobo Reader | 2 | 06-14-2010 12:16 PM |
Step by step instructions for font changing (Polish) | Jabberwock | Sony Reader | 2 | 09-04-2007 06:21 PM |