-
I've written an 8086-based emulator with 128K of RAM. The emulator can run ELKS 0.8.0-pre2 from ROM and runs I've reproduced the behavior in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
Also, for ROM-based systems its probably a good idea to compile in the amount of RAM in use, as otherwise ELKS may try to determine it on its own using a value from setup.S, which is complicated and may not work. This can be done by setting the following in config.h:
(There are different sections within config.h, make sure you set the above within the CONFIG_ROMCODE section). There are quite a few other ways to tune the system once you have this running, see include/linuxmt/limits.h. It looks like you're using Thank you! |
Beta Was this translation helpful? Give feedback.
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:
Also, for ROM-based systems its probably a good idea to compile in the amount of RAM in use, as otherwise ELKS …