Re: [PATCH] swap=<device> kernel commandline

From: Werner Almesberger (Werner.Almesberger@epfl.ch)
Date: Sun Nov 19 2000 - 07:27:49 EST


Eric W. Biederman wrote:
> Hmm. What does it take to mount an NFS partition?

Mainly Sun RPC :-(

> Anyway. All I did was wrote a tiny libc that is just a bunch of
> wrappers for syscalls, and some string functions.

Certainly a good approach. It's also basically the idea behind newlib,
although newlib has more overhead.

Ultimately, I want to be able to compile regular Unix/Linux programs
out of the box. Right now, this works for a bunch of trivial programs,
and it almost works for ash.

> Now if glibc wouldn't link in 200k of unused crap when you make a
> trivial static binary I'd much prefer to use it...

Precisely why I went to newlib ... It's really a pity that glibc is
such a monster.

> Though I wish it was possible to have a ramfs preloader instead of
> initrd. An initramfs would allow me to not even compile in the block
> device driver layer, and be more efficient.

Hmm, this would be tricky. You could do it by implementing a simple
tar file reader in the kernel, which reads from /dev/initrd (well, it's
in-kernel representation), but I'm not sure if this buys you that much
in the end. (How much overhead is in block devices anyway ?)

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH           Werner.Almesberger@epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:17 EST