ramdisk size using montevista
Hello
I am trying to boot hardhat linux with a small ram disk. However, libc is more than 4 megs by itself. Is there something obvious I can do/read? I tried using busybox, but that only makes the bin directory small. I don't really know what I should do about the /lib directory.
John
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · John F. Davis
I am trying to boot hardhat linux with a small ram disk. However, libc is more than 4 megs by itself. Is there something obvious I can do/read?
Strip the library. It will remove symbols that are handy for debugging, but leave the ones that are needed for dynamic linking.
--
Joe Green <[email protected]>
MontaVista Software, Inc.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · John F. Davis
I am trying to boot hardhat linux with a small ram disk...
.... Is there something obvious I can do/read?
Well, you could have purchased a subscription, and have already called someone and received the answer. Or, you could read the documentation that comes with the distribution. Or, you can just use 'strip' and reduce the size to about 1 Mbyte or so..... That will get you started, but I'm sure there are more questions to come.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · In message <[email protected]> you wrote:
I am trying to boot hardhat linux with a small ram disk. However, libc is more than 4 megs by itself. Is there something obvious I can do/read? I tried using busybox, but that only makes the bin directory small. I don't really know what I should do about the /lib directory.
Read the FAQ, and use strip.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] ######## This message was made from 100% recycled electrons. ########
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
In addition to strip you'll probably want to rebuild glibc as well without debug info and optimize for size (not that gcc does all that much with -Os but it'll certainly be better than -g).
----- Original Message -----
From: "John F. Davis" <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 21, 2001 5:57 PM
Subject: ramdisk size using montevista
Quoted 4 lines
Hello
I am trying to boot hardhat linux with a small ram disk. However, libc is
more
Quoted 1 line
than 4 megs by itself. Is there something obvious I can do/read? I tried
using
Quoted 6 lines
busybox, but that only makes the bin directory small. I don't really know what I should do about the /lib directory.
John
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/