Re: serial.c

From: David Woodhouse (dwmw2@infradead.org)
Date: Mon May 15 2000 - 06:29:55 EST


rfb6435@osfmail.isc.rit.edu said:
> The amount of RAM that I run in isn't the issue at all, but rather
> the type of boot medium that I have. This board doesn't have a floppy
> drive, only ROM. The ROM isn't big enough to hold the sytem so the
> amount of RAM really means nothing at all. Flash might be an answer,
> but I will have to talk to the guy designing the board. I just don't
> see Linux as viable in this type of system since I need to have a
> megabyte of static storage somewhere bit it disk, rom, flash or
> network to simply boot it. Correct me if I am wrong.

Assume flash or ROM directly in your CPU's address space, so that with
execute-in-place mapping so you don't have to copy your executables to
valuable RAM before running them.

You need enough for your kernel and for whatever you put in place of
/sbin/init.

Let's call the kernel 400Kb - perhaps I'm being a little optimistic, but it
shouldn't be _too_ far out. Your userspace is entirely up to you - if it's a
router with only a statically-linked /sbin/init which simply sets up IP and
sleeps forever, you could fit it in only be only a few tens of Kb.

That's before you start stripping syscalls out of your kernel image and
coding your userspace in asm :)

--
dwmw2

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:25 EST