Skip to content

Running ELKS with 128K of RAM #1971

Answered by ghaerr
decrazyo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @decrazyo,

Pretty cool! Yes, with only 128K RAM, you've got only 62K free as indicated above in your boot message. That's not enough to run /bin/sh, although looks like it is enough for /bin/sash, but then not enough left over to fork itself to run anything else.

Notice that the kernel "heap" shows around 61k free. This can be lowered quite a bit by setting the following variable in include/linuxmt/config.h and recompiling the kernel:

#define SETUP_HEAPSIZE            19744         /* force kernel heap size */ // <--- set to this or a lower value, depending on resources used

Also, for ROM-based systems its probably a good idea to compile in the amount of RAM in use, as otherwise ELKS …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by decrazyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants