David Olofson wrote:
>
> Wed, 25 Oct 2000 Paolo Meriggi wrote:
> > Dear all RTers, is there anybody out there who could give me (please,
> > please please...) some hints on the following topic:
> > I am managing and run RTLinux on an embedded system (as almost most of
> > you...). I developed everything on a common HD, but now I have to take
> > everything to just a 32 Mb flash disk, and some problems come out.
>
> Exactly what I'm facing eventually. However; 32 MB!? Lucky you! :-) I'll
> probably have to run at least some versions (the one that will replace the
> current DOS version when upgrading old instruments) of my software from floppy
> disks...
If you don't need X or compilers etc, but a reasonably full-up standard
system, you can whittle RH-6.2 down to about 5 Megs uncompressed, one of
the most obnoxious things to deal with is the pam libraries (by that I
mean the extra complexity hence size they cause you). In the end I
reduce pam.d to have just 'other', and put in the following:
#
# default; standard UNIX access
#
auth required /lib/security/pam_unix_auth.so
account required /lib/security/pam_unix_acct.so
password required /lib/security/pam_unix_passwd.so
session required /lib/security/pam_unix_session.so
This cuts the library cruft down considerable, even so, this is still a
fairly fat (but standard system).
Also, remember to strip -g your executables & libraries.
If you want to go further, things become less standard, and you need to
follow the ways of the linux router project and the like. In
particular, busybox can be used to remove many fat utilities and replace
them with a single executable.
If hand tweaking is too problematic, tools have been developed that can
take most of the pain out of this.
Regards, Stuart
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/