* Making live images bigger
@ 2011-03-21 19:00 Gary Thomas
2011-03-22 7:39 ` Tom Zanussi
0 siblings, 1 reply; 2+ messages in thread
From: Gary Thomas @ 2011-03-21 19:00 UTC (permalink / raw)
To: Poky
I'm running a live (USB) image on my Atom-PC and would like to
install more programs. Now that I've figured out the magic to
use zypper and rpm (thanks, Mark), I have a new problem. The
image on the USB device is too small - basically no free space :-(
So, I tried to adjust this by setting:
/tmp/poky-amltd/meta-yocto/conf/machine/atom-pc.conf:IMAGE_ROOTFS_SIZE_ext3 ?= "1000000"
which I think should give me a 1GB USB setup. Sadly, the result was exactly the
same size as when I ran it with the default size.
Any ideas what I'm doing wrong? I edited the config as above, then simply ran
% bitbake poky-image-sato-live
I can see that it rebuilt the images, but they're just too small still.
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Making live images bigger
2011-03-21 19:00 Making live images bigger Gary Thomas
@ 2011-03-22 7:39 ` Tom Zanussi
0 siblings, 0 replies; 2+ messages in thread
From: Tom Zanussi @ 2011-03-22 7:39 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky
On Mon, 2011-03-21 at 12:00 -0700, Gary Thomas wrote:
> I'm running a live (USB) image on my Atom-PC and would like to
> install more programs. Now that I've figured out the magic to
> use zypper and rpm (thanks, Mark), I have a new problem. The
> image on the USB device is too small - basically no free space :-(
>
> So, I tried to adjust this by setting:
> /tmp/poky-amltd/meta-yocto/conf/machine/atom-pc.conf:IMAGE_ROOTFS_SIZE_ext3 ?= "1000000"
> which I think should give me a 1GB USB setup. Sadly, the result was exactly the
> same size as when I ran it with the default size.
>
> Any ideas what I'm doing wrong? I edited the config as above, then simply ran
> % bitbake poky-image-sato-live
> I can see that it rebuilt the images, but they're just too small still.
>
According to this in image.bbclass, the size should end up with 20% free
space (IMAGE_OVERHEAD_FACTOR = 1.2) regardless.
ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR}; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'`
But in any case, IMAGE_ROOTFS_SIZE_ext3 seems to be getting ignored -
the only way I was able to get a 1G image was to use the straight
IMAGE_ROOTFS_SIZE e.g. using
IMAGE_ROOTFS_SIZE ?= "1000000"
instead of
IMAGE_ROOTFS_SIZE_ext3 = "2000000"
in emenlow.conf. The image sizes before and after:
-rw-r--r-- 1 trz trz 582105088 2011-03-22 01:58 poky-image-sato-live-emenlow-20110322065226.hddimg
-rw-r--r-- 1 trz trz 581939200 2011-03-22 01:58 poky-image-sato-live-emenlow-20110322065226.iso
-rw-r--r-- 1 trz trz 1032947712 2011-03-22 02:21 poky-image-sato-live-emenlow-20110322071321.hddimg
-rw-r--r-- 1 trz trz 1032779776 2011-03-22 02:21 poky-image-sato-live-emenlow-20110322071321.iso
But 1000000 is half of what the default is supposed to in the first
place - if it was working correctly, it should have gotten 2Gb by
default apparently...
Tom
> Thanks
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-22 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 19:00 Making live images bigger Gary Thomas
2011-03-22 7:39 ` Tom Zanussi
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.