All of lore.kernel.org
 help / color / mirror / Atom feed
* Large rootfs corrupted by build system
@ 2014-02-02  8:19 George Hilliard
  2014-02-06  2:02 ` Otavio Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: George Hilliard @ 2014-02-02  8:19 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

I have run into a very odd issue when building a custom Yocto "dora" image for the i.MX6 SABRE Auto.  When building a small image (final image is around 80MB), the image is generated just fine.  However, when I build a much larger image (around 2GB), the root filesystem is generated corrupt!  This is not a fluke; every time I regenerate the image, it is corrupt (according to fsck).

I worked around it by actually removing packages (git and kernel-dev) from the recipe, causing the image to fall to about 1.91GB.  After this, the rootfs was generated correctly.  This doesn't look like anything but a bug in the build system to me; maybe the 2GB threshold is significant (?).  I'm currently building fsl-image-test to see if the problem occurs with that image too.

Am I doing everything right?  Attached are my two build scripts.  The -dev image is the bigger one.

Thanks!
George Hilliard

[-- Attachment #2: custom-image-production-dev.bb --]
[-- Type: text/plain, Size: 484 bytes --]

require custom-image-production.bb

# Add extra image features; this is like Debian's package groups
IMAGE_FEATURES += " \
    dev-pkgs \
    dbg-pkgs \
    tools-sdk \
    tools-debug \
    tools-testapps \
    ssh-server-dropbear \
    package-management \
    debug-tweaks \
"

# Add individual recipes
IMAGE_INSTALL += " \
    python-scons \
    kernel-dev \
    jsoncpp \
    libsocket \
    git \
"

export IMAGE_BASENAME = "custom-image-production-dev"

[-- Attachment #3: custom-image-production.bb --]
[-- Type: text/plain, Size: 340 bytes --]

include recipes-core/images/core-image-base.bb

# Add extra image features; this is like Debian's package groups
IMAGE_FEATURES += " \
"

# Add individual recipes
IMAGE_INSTALL += " \
    canutils \
    iproute2 \
    hostap-daemon \
    dnsmasq \
"

LICENSE = "CLOSED"

export IMAGE_BASENAME = "custom-image-production"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-06  2:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-02  8:19 Large rootfs corrupted by build system George Hilliard
2014-02-06  2:02 ` Otavio Salvador

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.