* Build optimization question
@ 2014-11-08 14:00 Dean
2014-11-08 14:23 ` Brian Hutchinson
0 siblings, 1 reply; 6+ messages in thread
From: Dean @ 2014-11-08 14:00 UTC (permalink / raw)
To: yocto@yoctoproject.org
So I am using core-image-minimal and trying to shrink things as much as
possible for boot speed. I wrap the bitbake command in some other
commands to basically extract the image and then attach it to a kernel
as a ramdisk. So the size of the image is critical to boot speed.
In some of my custom packages I have used -Os in the gcc command line.
Is there a way to set this globally for all the packages built into the
image?
Any other hints or tips to reduce the size of the build? Or potential
changes to u-boot to make it load faster? This is running on a
beaglebone black.
Thanks,
Dean
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Build optimization question
2014-11-08 14:00 Build optimization question Dean
@ 2014-11-08 14:23 ` Brian Hutchinson
2014-11-08 14:29 ` Brian Hutchinson
2014-11-08 14:53 ` Burton, Ross
0 siblings, 2 replies; 6+ messages in thread
From: Brian Hutchinson @ 2014-11-08 14:23 UTC (permalink / raw)
To: Dean; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
On Nov 8, 2014 9:02 AM, "Dean" <dean@ripperd.com> wrote:
>
> So I am using core-image-minimal and trying to shrink things as much as
possible for boot speed. I wrap the bitbake command in some other commands
to basically extract the image and then attach it to a kernel as a ramdisk.
So the size of the image is critical to boot speed.
>
> In some of my custom packages I have used -Os in the gcc command line.
> Is there a way to set this globally for all the packages built into the
image?
>
> Any other hints or tips to reduce the size of the build? Or potential
changes to u-boot to make it load faster? This is running on a beaglebone
black.
>
>
> Thanks,
> Dean
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
... I've been noticing over the last few releases that core - image -
minimal isn't so minimal anymore. Its been picking up weight as it ages
(like me).
I'm planning to just start excluding some of the packages in it ... I don't
need sound, wireless, Bluetooth etc.
Regards,
Brian
[-- Attachment #2: Type: text/html, Size: 1504 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Build optimization question
2014-11-08 14:23 ` Brian Hutchinson
@ 2014-11-08 14:29 ` Brian Hutchinson
2014-11-08 14:53 ` Burton, Ross
1 sibling, 0 replies; 6+ messages in thread
From: Brian Hutchinson @ 2014-11-08 14:29 UTC (permalink / raw)
To: Dean; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
On Nov 8, 2014 9:23 AM, "Brian Hutchinson" <b.hutchman@gmail.com> wrote:
>
>
> On Nov 8, 2014 9:02 AM, "Dean" <dean@ripperd.com> wrote:
> >
> > So I am using core-image-minimal and trying to shrink things as much as
possible for boot speed. I wrap the bitbake command in some other commands
to basically extract the image and then attach it to a kernel as a ramdisk.
So the size of the image is critical to boot speed.
> >
> > In some of my custom packages I have used -Os in the gcc command line.
> > Is there a way to set this globally for all the packages built into the
image?
> >
> > Any other hints or tips to reduce the size of the build? Or potential
changes to u-boot to make it load faster? This is running on a beaglebone
black.
> >
> >
> > Thanks,
> > Dean
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
> ... I've been noticing over the last few releases that core - image -
minimal isn't so minimal anymore. Its been picking up weight as it ages
(like me).
>
> I'm planning to just start excluding some of the packages in it ... I
don't need sound, wireless, Bluetooth etc.
>
> Regards,
>
> Brian
... going from memory about my last dizzy build, /use/share was 35M. I've
been using the rootfs tar to build my image and exclude some of this stuff
but I need to look into ways to tame this kind of thing with recipes etc.
Regards,
Brian
[-- Attachment #2: Type: text/html, Size: 2044 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Build optimization question
2014-11-08 14:23 ` Brian Hutchinson
2014-11-08 14:29 ` Brian Hutchinson
@ 2014-11-08 14:53 ` Burton, Ross
2014-11-08 18:03 ` Diego Sueiro
1 sibling, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2014-11-08 14:53 UTC (permalink / raw)
To: Brian Hutchinson; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
On 8 November 2014 14:23, Brian Hutchinson <b.hutchman@gmail.com> wrote:
> I'm planning to just start excluding some of the packages in it ... I
> don't need sound, wireless, Bluetooth etc.
>
>
If you don't need sound, wifi, and bluetooth then remove the relevant flags
from DISTRO_FEATURES and they'll never be built.
Ross
[-- Attachment #2: Type: text/html, Size: 729 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Build optimization question
2014-11-08 14:53 ` Burton, Ross
@ 2014-11-08 18:03 ` Diego Sueiro
2014-11-09 4:27 ` nick
0 siblings, 1 reply; 6+ messages in thread
From: Diego Sueiro @ 2014-11-08 18:03 UTC (permalink / raw)
To: Ross Burton; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
Take a look at poky-tiny distro:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-yocto/conf/distro/poky-tiny.conf
As you are using BBB you can optimize u-boot code and remove some board
detection steps.
I noticed that MLO generated by u-boot 2014.07 mainline is too much faster
than the old ones.
Regards,
--
*dS
Diego Sueiro
sent from mobile.
Em 08/11/2014 12:54, "Burton, Ross" <ross.burton@intel.com> escreveu:
>
> On 8 November 2014 14:23, Brian Hutchinson <b.hutchman@gmail.com> wrote:
>
>> I'm planning to just start excluding some of the packages in it ... I
>> don't need sound, wireless, Bluetooth etc.
>>
>>
> If you don't need sound, wifi, and bluetooth then remove the relevant
> flags from DISTRO_FEATURES and they'll never be built.
>
> Ross
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
[-- Attachment #2: Type: text/html, Size: 1891 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Build optimization question
2014-11-08 18:03 ` Diego Sueiro
@ 2014-11-09 4:27 ` nick
0 siblings, 0 replies; 6+ messages in thread
From: nick @ 2014-11-09 4:27 UTC (permalink / raw)
To: Diego Sueiro, Ross Burton; +Cc: yocto
Diego,
I agree with Ross here in from my experience with embedded systems the three best ways to strip your root
file system are by removing unneeded boot loader coe, removing unneeded kernel components and that of striping
your middle ware to smaller versions like Busybox and other similiar packages like elibc. Also running strip
after your debugging is done for the target can strip your code even further, there are cases of stripping large
programs like the kernel down from 20 megabytes to 2. Lastly, linking Busybox statically is great if you don't need
a reason to link it against a C library implementation as static versions of Busybox can easily be less then 10
megabytes from my reading and experience.
Regards Nick
On 14-11-08 01:03 PM, Diego Sueiro wrote:
> Take a look at poky-tiny distro:
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-yocto/conf/distro/poky-tiny.conf
>
> As you are using BBB you can optimize u-boot code and remove some board
> detection steps.
>
> I noticed that MLO generated by u-boot 2014.07 mainline is too much faster
> than the old ones.
>
> Regards,
>
> --
> *dS
> Diego Sueiro
> sent from mobile.
> Em 08/11/2014 12:54, "Burton, Ross" <ross.burton@intel.com> escreveu:
>
>>
>> On 8 November 2014 14:23, Brian Hutchinson <b.hutchman@gmail.com> wrote:
>>
>>> I'm planning to just start excluding some of the packages in it ... I
>>> don't need sound, wireless, Bluetooth etc.
>>>
>>>
>> If you don't need sound, wifi, and bluetooth then remove the relevant
>> flags from DISTRO_FEATURES and they'll never be built.
>>
>> Ross
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-11-09 4:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-08 14:00 Build optimization question Dean
2014-11-08 14:23 ` Brian Hutchinson
2014-11-08 14:29 ` Brian Hutchinson
2014-11-08 14:53 ` Burton, Ross
2014-11-08 18:03 ` Diego Sueiro
2014-11-09 4:27 ` nick
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.