[yocto] Image size

Zielinski, Dave Zielinski_Dave at shure.com
Thu Jan 28 10:35:51 PST 2016


> On Sat, Jan 23, 2016 at 6:12 AM, Max Sht <maxx1109 at gmail.com> wrote:
> > Hi.
> >
> > Thank you in advance for your support.
> > I'm using Yocto project Linux for the iMX6 CPU and imx6ulevk board.
> >
> > I think that I have a problem with image size. I've seen the basic
> > image for that board and it's size was about 6Mb, but it didn't
> > contain any graphical library.
> > I need a basic graphical library, so I added FB library. My image size
> > is now larger than 350Mb.
> > Is it normal? Is there a possibility to make the image much smaller
> > with some other graphic library?
> >
> > I'm very to new to Linux, and hope that you can help me.
> 
> you can look into buildhistory to help you find the dependency chain in
> local.conf you need to enable buildhistory generation
> 
> then do a build before adding FB lib and after adding libs then go into
> buildhistory repo and do git show
> 
> it will show you top commit showing all the changes in packages and image
> after you added FB lib
> 
> https://lists.yoctoproject.org/listinfo/yocto


I haven't used the Freescale/NXP imx6ulevk board specifically, but I have used just about all the other dev boards so I think what you're talking about is the general SD card images built in Yocto.  

The architecture of the Freescale/NXP SD card images are not optimized for size.  If you build core-image-minimal it's going to be about 30 MB I think.  To go down to 6MB with the current SD card architecture I don't believe is possible.  That image was probably something else, like a baremetal SDK binary or something other than the standard SD card image.  Or maybe just a kernel binary or something.

There are other image architectures that are a lot more space efficient such as having the root fs as an initramfs... 



------------------------------------------------------------

This e-mail message (including any attachments) contains confidential, non-public information. It also may be protected by the attorney/client or other applicable privileges. It is intended to be communicated only to the designated recipient(s). Unauthorized use, reproduction, dissemination, or communication of this message or any information contained in this message is strictly prohibited and may be unlawful. If you are not an intended recipient of this message, please notify the sender promptly by e-mail or telephone at the sender's location indicated above or contact Shure Incorporated at info at shure.com or 800-25-SHURE (800-257-4873).

------------------------------------------------------------



More information about the yocto mailing list