On 08/16/2013 11:17:06 AM, Herbei Dacian wrote:
my system should run in far less memory. something like 2-4MB.
but first I need to have a system running so that I can monitor with
qemu the addresses accessed for read execute and write by the code
run by the emulator.
if I reach that is a real big deal.
dacian
Linux 2.6 and later won't run in 2 megs at all. You can trim it down to
4 megs on a nommu system (the page tables take up too much ram
otherwise), but won't be able to do much.
Really, things like kobjects in the modern kernel take up too much
space. Getting anything to work in 4 megs requires diabling all the
printk strings at compile time. (The last time I saw somebody do a 4
meg system was CELF in 2006. 32 bit x86.)
Look at the uClinux project. Or try to bolt your app onto uboot and run
it on the bare metal.
Rob