View Single Post
Old 04-29-2012, 08:32 AM   #16
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by jmseight View Post

1) I understand that I can compile in the Kindle with gcc with Debian and OptWare. Debian istaking up 500MB in my Kindle and I am seriously thinking about deleting. I am sure I don't want to take another 250MB for OptWare. Is there a more resource efficient way.
Yes, build your own "minimum system" including only those things __you__ need (and/or want).

Here is how (presumes a native build environment):
http://www.linuxfromscratch.org/lfs/read.html

If cross-compiling your new system, start here:
http://trac.cross-lfs.org/
Although you might still find that referencing the native build book (first link) will be helpful. The CLFS project often assumes you are already familar with LFS.

Less than a 100mb system is relatively easy, special pupose systems less than 10mb are possible.

- - - -

Since this thread might be read by those without system development experience...

The main LFS book, based on a native build, is probably the most informative.

With the limited amount of RAM on a Kindle, you will not get very far unless you setup a swap file or partition and enable swapping.

Enabling swap with the swap resource placed on the internal eMMC device is not recommended. It is rather hard to replace if you wear it out.
The directions for using an external swap resource with the Kindle is a bit too much for someone at the "just learning" stage.

(Plus, the CPU instruction rate is a bit low for building an entire system - although I have done such on my own NSLU-2 at 1/2 the Kindle clock speed.)

So using a machine with a bit more computer resources than a Kindle is a good idea.

And if you happen to have an x86 based "powerhouse" machine - then you can do a native build under a virtual ARM environment.
There is an app for that:
http://landley.net/aboriginal/about.html

One of Rob's objectives is to be able to do a full LFS build in any of the generated virtual environments. So this stands a good chance of working at any time but be sure to read his current release notes before starting.
His "release notes" can usually be found under "news":
http://landley.net/aboriginal/

He provides a binary image for the purpose of doing an LFS build, see:
http://landley.net/aboriginal/downlo...ages/binaries/

Last edited by knc1; 04-29-2012 at 01:07 PM.
knc1 is offline   Reply With Quote