2010-11-12 15:59:48     Pruning romfs

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-11-12 15:59:48     Pruning romfs

Wojtek Skulski (UNITED STATES)

Message: 95805   

 

Hi:

 

I need to decrease the size of my uImage. Pruning romfs is a good idea in this situation, but I do not want to prune too much. Is there a wiki which would describe what is doing what in romfs, and what is a good candidate to be removed?

 

For example, I am now looking at romfs/lib and it looks I can remove quite a lot because my work which is plain C at the moment. Can I remove fortran and c++ and not get bitten? I marked with arrows the stuff which looks like candidates for pruning. Are they described somewhere?

 

-rwxr-xr-x  1 uclinux uclinux  30360 Sep 30 15:04 ld-uClibc.so.0

-rwxr-xr-x  1 uclinux uclinux 258356 Sep 30 15:04 libc.so.0    <-------

-rwxr-xr-x  1 uclinux uclinux   9540 Sep 30 15:04 libcrypt.so.0

-rwxr-xr-x  1 uclinux uclinux  10196 Sep 30 15:04 libdl.so.0

-rwxr-xr-x  1 uclinux uclinux  52304 Sep 30 15:04 libgcc_s.so.1

-rwxr-xr-x  1 uclinux uclinux 323244 Sep 30 15:04 libgfortran.so.1 <--------

-rwxr-xr-x  1 uclinux uclinux 452996 Sep 30 15:04 libgfortran.so.3 <--------

-rwxr-xr-x  1 uclinux uclinux  24316 Sep 30 15:04 libgomp.so.1

-rwxr-xr-x  1 uclinux uclinux  66708 Sep 30 15:04 libm.so.0

-rwxr-xr-x  1 uclinux uclinux  89248 Sep 30 15:04 libmudflap.so.0

-rwxr-xr-x  1 uclinux uclinux  93632 Sep 30 15:04 libmudflapth.so.0

-rwxr-xr-x  1 uclinux uclinux   1744 Sep 30 15:04 libnsl.so.0

-rwxr-xr-x  1 uclinux uclinux  80964 Sep 30 15:04 libobjc.so.2

-rwxr-xr-x  1 uclinux uclinux  43208 Sep 30 15:04 libpthread.so.0

-rwxr-xr-x  1 uclinux uclinux   1756 Sep 30 15:04 libresolv.so.0

-rwxr-xr-x  1 uclinux uclinux   3248 Sep 30 15:04 librt.so.0

-rwxr-xr-x  1 uclinux uclinux 819696 Sep 30 15:04 libstdc++.so.6   <---------

-rwxr-xr-x  1 uclinux uclinux   9724 Sep 30 15:04 libthread_db.so.1

-rwxr-xr-x  1 uclinux uclinux   4056 Sep 30 15:04 libutil.so.0

QuoteReplyEditDelete

 

 

2010-11-12 17:15:20     Re: Pruning romfs

Mike Frysinger (UNITED STATES)

Message: 95807   

 

install pax-utils and enable CONFIG_INSTALL_ELF_TRIM_LIBS to let the build system scrub shared libs not needed by any files in the romfs/ dir

QuoteReplyEditDelete

 

 

2010-11-12 20:01:48     Re: Pruning romfs

Wojtek Skulski (UNITED STATES)

Message: 95809    > Mike, thank you for the advice.

Attachments

    Outcomes