ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Way to calculate uncompressed image size..


From: Stuart Hughes
Subject: Re: [Ltib] Way to calculate uncompressed image size..
Date: Sat, 15 Mar 2008 10:40:49 +0000

Hi Erik/Peter,

Yes I think this is the best way as it reflects what will go into
jffs2/ext2gz-ramdisk images.  The rootfs area has nothing removed (man
pages etc) so will be bigger.

Note that you can select: 
--- Target Image Generation/Options
 [ ] Keep temporary staging directory

This will stop rootfs.tmp being removed and so you could do more
detailed analysis if you like.

Regards, Stuart


On Fri, 2008-03-14 at 12:04 -0700, Erik Peterson wrote:
> Hi,
> 
> After building your image, you should see the sizes listed for example  
> ( otherwise, I am not sure you want to use df on your host ):
> 
> WARN: /auto/freescale/ltib/ltib-mpc8544ds-20071122/rootfs.tmp/sbin/ 
> ldconfig statically linked
> 
> Filesystem stats, including padding:
> 
>      Total size            = 343396k
>      Total number of files = 13263
> 
> Your ramdisk exceeds the old default size of 4096k, you may need to
> set the command line argument for ramdisk_size in your bootloader
> allowing 10% free this gives 377735k .  For instance, for u-boot:
> 
> 
> setenv bootargs root=/dev/ram rw ramdisk_size=377735
> 
> creating an ext2 compressed filesystem image: rootfs.ext2.gz
> creating a uboot ramdisk image: rootfs.ext2.gz.uboot
> Image Name:   uboot ext2 ramdisk rootfs
> Created:      Fri Mar 14 11:57:51 2008
> Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
> Data Size:    111426142 Bytes = 108814.59 kB = 106.26 MB
> Load Address: 0x00000000
> Entry Point:  0x00000000
> 
> Started: Fri Mar 14 11:50:33 2008
> Ended:   Fri Mar 14 11:57:55 2008
> Elapsed: 442 seconds
> 
> Build Succeeded
> 
> 
> 
> cheers,
> ~erik
> 
> On Mar 14, 2008, at 11:17 AM, Stephens, Peter A. wrote:
> 
> >
> > If I want to calculate the uncompressed size of an image can I just  
> > add
> > the packages I want.  Build it.  Change directories to "rootfs" and  
> > run
> > "du . -ckS"?  Here is an example...
> >
> > address@hidden rootfs]$ du . -ckS | sort -rn | head -n 20
> > 118524  total
> > 33896   ./usr/lib
> > 26076   ./usr/lib/gstreamer-0.10
> > 15520   ./usr/bin
> > 6804    ./boot
> > 4904    ./lib
> > 3984    ./usr/share/gtk-doc/html/glib
> > 2676    ./usr/share/gtk-doc/html/libxml2
> > 2660    ./usr/info
> > 2540    ./usr/share/doc/libxml2-2.6.28/html/html
> > 1980    ./usr/share/gtk-doc/html/gobject
> > 1772    ./sbin
> > 1600    ./bin
> > 1252    ./usr/share/sounds/alsa
> > 976     ./usr/share/gtk-doc/html/liboil
> > 808     ./usr/share/man/man3
> > 692     ./usr/share/man/man1
> > 580     ./usr/sbin
> > 528     ./usr/share/doc/libxml2-2.6.28/html
> > 508     ./usr/include/gstreamer-0.10/gst
> >
> > Peter A. Stephens
> > address@hidden <mailto:address@hidden>
> > 765-451-7074
> >
> >
> > ****************************************************************************************
> >
> > Note:  If the reader of this message is not the intended recipient,  
> > or an employee or agent responsible for delivering this message to  
> > the intended recipient, you are hereby notified that any  
> > dissemination, distribution or copying of this communication is  
> > strictly prohibited. If you have received this communication in  
> > error, please notify us immediately by replying to the message and  
> > deleting it from your computer. Thank you.
> >
> > ****************************************************************************************
> >
> >
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> >
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
> 
> 
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]