[meta-ti] has anyone actually tested sdcard_image.bbclass?
Robert P. J. Day
rpjday at crashcourse.ca
Fri Jan 11 04:02:06 PST 2013
On Thu, 10 Jan 2013, Trevor Woerner wrote:
> On Thu, Jan 10, 2013 at 10:11 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
> >> > ===== 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
>
> > i'm going to be testing all of the above again shortly from scratch
> > to make sure it wasn't something silly i did. but if someone wants to
> > see if they can reproduce it, all i did was a standard configure using
> > meta-ti layer for a beaglebone and i built a core-image-minimal.
>
>
> I followed the same procedure and met the same end.
... snip ...
just to recap what seems to be an obvious bug in meta-ti, all i want
to do is add the image class of "sdcard_image" to create an SD card
image of core-image-minimal for a beaglebone.
from a fresh configuration and adjusting to select a machine of
beaglebone, i can do all the fetching to start things off:
$ bitbake -c fetchall core-image-minimal
and i can use bitbake-env to examine the relevant variables:
$ bitbake-env -r core-image-minimal IMAGE_CLASSES IMAGE_FSTYPES
Parsing recipes..WARNING: No recipes available for:
/home/rpjday/oe/dist/layers/meta-ti/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend
done.
IMAGE_CLASSES="image_types"
IMAGE_FSTYPES=" tar.bz2 "
$
so far, so good. now, AIUI, to add the SD card image type to the
generated artifacts, i need only add this line to my local.conf:
IMAGE_CLASSES += "sdcard_image"
but after i do that:
$ bitbake-env -r core-image-minimal IMAGE_CLASSES IMAGE_FSTYPES
Parsing recipes..ERROR: Error executing a python function in <code>:
NameError: global name 'imagetypes_getdepends' is not defined
... huge snip here ...
using the raspberry pi layer as a model, i made the following change
in meta-ti's sdcard_image.bbclass file:
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"
and now, at least bitbake-env works:
$ bitbake-env -r core-image-minimal IMAGE_CLASSES IMAGE_FSTYPES
Parsing recipes..WARNING: No recipes available for:
/home/rpjday/oe/dist/layers/meta-ti/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend
done.
IMAGE_CLASSES=" sdcard_image"
IMAGE_FSTYPES=" tar.bz2 tar.bz2 sdimg"
$
so, is it fair to say that that's a bug in sdcard_image.bbclass?
or is there something else that needs to be adjusted?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the meta-ti
mailing list