From: Gary Thomas <gary@mlbassoc.com>
To: meta-ti@yoctoproject.org
Subject: Re: has anyone actually tested sdcard_image.bbclass?
Date: Thu, 10 Jan 2013 08:07:36 -0700 [thread overview]
Message-ID: <50EED938.8080108@mlbassoc.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1301100943340.32462@oneiric>
On 2013-01-10 07:48, Robert P. J. Day wrote:
>
> testing SD card image creation under meta-ti for the first time and
> the first issue seems to be that this is necessary:
>
> diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
> index f9b8d46..45374e2 100644
> --- a/classes/sdcard_image.bbclass
> +++ b/classes/sdcard_image.bbclass
> @@ -1,4 +1,4 @@
> -inherit image
> +inherit image_types
>
> # Add the fstypes we need
> IMAGE_FSTYPES_append = " tar.bz2 sdimg"
>
> also, even after i make that change, i get:
>
> ===== start =====
> ... big snip ...
> | /etc/fstab entries need to be created with the user flag for the
> loop devices like:
> | /dev/loop2
> /home/rpjday/oe/builds/ti/bone/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/tmp-mnt-boot
> vfat user 0 0
> | ERROR: Function failed: do_rootfs (see
> /home/rpjday/oe/builds/ti/bone/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.1938
> for further information)
> ERROR: Task 7
> (/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/images/core-image-minimal.bb,
> do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 1922 tasks of which 1901 didn't need to
> be rerun and 1 failed.
> No currently running tasks (1922 of 1923)
>
> Summary: 1 task failed:
>
> /home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/images/core-image-minimal.bb,
> do_rootfs
> ===== end =====
>
> but i'm willing to believe that's something i did stupidly so i'll
> look at it further.
>
> thoughts? all i did for a test was add this to local.conf:
>
> IMAGE_CLASSES += "sdcard_image"
>
> and run:
>
> $ bitbake core-image-minimal
>
> the previous build worked fine without trying to create the SD card
> image.
Did you look at the log to see why it failed? Last time I tried this,
it required horrible set up to make it work (something I never wanted
to take the time to accomplish).
Interestingly enough, the meta-fsl-arm layer also has an SD card image
layout (class) which works perfectly and needs no magic to make it work.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2013-01-10 15:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 14:48 has anyone actually tested sdcard_image.bbclass? Robert P. J. Day
2013-01-10 15:07 ` Gary Thomas [this message]
2013-01-10 15:11 ` Robert P. J. Day
2013-01-10 23:01 ` Trevor Woerner
2013-01-11 12:02 ` Robert P. J. Day
2013-01-11 13:38 ` Trevor Woerner
2013-01-11 15:47 ` Chris Larson
2013-01-12 10:20 ` Robert P. J. Day
2013-01-12 19:16 ` Chris Larson
2013-01-13 10:04 ` Robert P. J. Day
2013-01-10 22:50 ` Trevor Woerner
2013-01-11 15:50 ` Chris Larson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50EED938.8080108@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=meta-ti@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.