Fwd: Problem creating Mender Raspberry pi 3 image

243 views
Skip to first unread message

Javier Talens

unread,
Sep 14, 2017, 6:58:43 AM9/14/17
to mender

Forwarded conversation
Subject: Problem creating Mender Raspberry pi 3 image
------------------------

From: <naveen...@gmail.com>
Date: Tue, Aug 29, 2017 at 6:16 PM
To: mender <men...@lists.mender.io>


Hello all,

I'm trying to create the yocto project image with Mender for Raspberry pi3.

I used morty branch for all layers(poky, meta-raspberrypi and meta-mender) and or-meta-go from master branch

I added the layers in bblayers.conf and my local.conf has,

MENDER_ARTIFACT_NAME = "release-1"
INHERIT += "mender-full"
#INHERIT += "mender-artifactimg mender-image mender-image-sd mender-install mender-uboot"
MACHINE = "raspberrypi3"
PREFERRED_VERSION_pn-mender = "1.2.0b1"

DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""

IMAGE_FSTYPES = "ext4"
KERNEL_IMAGETYPE = "uImage"

MENDER_PARTITION_ALIGNMENT_KB = "4096"
MENDER_BOOT_PART_SIZE_MB = "40"

do_image_sdimg[depends] += " bcm2835-bootfiles:do_populate_sysroot"

# raspberrypi files aligned with mender layout requirements
IMAGE_BOOT_FILES_append = " boot.scr u-boot.bin;${SDIMG_KERNELIMAGE}"
IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
IMAGE_FSTYPES_remove += " rpi-sdimg"

I'm getting the following error,

 ExpansionError during parsing /root/poky-morty/meta-mender/meta-mender-co                                                                                        re/recipes-mender/mender/mender_git.bb
Traceback (most recent call last):
  File "/root/poky-morty/meta/classes/base.bbclass", line 436, in __anon_656__ro                                                                                        ot_poky_morty_meta_classes_base_bbclass(d=<bb.data_smart.DataSmart object at 0x7                                                                                        fe37b77e5c0>):
         license = d.getVar('LICENSE', True)
    >    if license == "INVALID":
             bb.fatal('This recipe does not have the LICENSE field set (%s)' % p                                                                                        n)
  File "/root/poky-morty/bitbake/lib/bb/data_smart.py", line 569, in DataSmart.g                                                                                        etVar(var='LICENSE', expand=True, noweakdefault=False, parsing=False):
         def getVar(self, var, expand, noweakdefault=False, parsing=False):
    >        return self.getVarFlag(var, "_content", expand, noweakdefault, pars                                                                                        ing)

  File "/root/poky-morty/bitbake/lib/bb/data_smart.py", line 737, in DataSmart.g                                                                                        etVarFlag(var='LICENSE', flag='_content', expand=True, noweakdefault=False, pars                                                                                        ing=False):
                     cachename = var + "[" + flag + "]"
    >            value = self.expand(value, cachename)

  File "/root/poky-morty/bitbake/lib/bb/data_smart.py", line 410, in DataSmart.e                                                                                        xpand(s="${@mender_license(d.getVar('MENDER_BRANCH'))['license']}", varname='LIC                                                                                        ENSE'):
         def expand(self, s, varname = None):
    >        return self.expandWithRefs(s, varname).value

  File "/root/poky-morty/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.e                                                                                        xpandWithRefs(s="${@mender_license(d.getVar('MENDER_BRANCH'))['license']}", varn                                                                                        ame='LICENSE'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc

bb.data_smart.ExpansionError: Failure expanding variable LICENSE, expression was                                                                                         ${@mender_license(d.getVar('MENDER_BRANCH'))['license']} which triggered except                                                                                        ion TypeError: getVar() missing 1 required positional argument: 'expand'


Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Am I doing anything wrong?

Any insights will be appreciated!!

Naveen




--
You received this message because you are subscribed to the Google Groups "mender" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+unsubscribe@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.
To view this discussion on the web visit https://groups.google.com/a/lists.mender.io/d/msgid/mender/917fff0c-57f1-4120-92c0-ec1443b42374%40lists.mender.io.

----------
From: <naveen...@gmail.com>
Date: Tue, Aug 29, 2017 at 9:15 PM
To: mender <men...@lists.mender.io>
Cc: naveen...@gmail.com


When I used the local.conf file from this post https://groups.google.com/a/lists.mender.io/forum/#!topic/mender/UDwJaJMUpl4 I get this error 


ERROR: Nothing PROVIDES 'wic-tools'. Close matches:
  i2c-tools
  kexec-tools
ERROR: Required build target 'rpi-basic-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['rpi-basic-image', 'wic-tools']
To view this discussion on the web visit https://groups.google.com/a/lists.mender.io/d/msgid/mender/d9e52652-22d9-4eca-84b3-63effd423031%40lists.mender.io.

----------
From: 'Drew Moseley' via mender <men...@lists.mender.io>
Date: Wed, Aug 30, 2017 at 10:46 PM
To: naveen...@gmail.com, mender <men...@lists.mender.io>


Hello Naveen,

It looks like you have a mix of morty and pyro branches somehow.  The wic-tools package did not get introduced into poky until pyro.  Additionally the Mender 1.2.0b1 version also does not exist in morty; only in pyro and master.  Can you check all your repos and make sure?

Drew

To view this discussion on the web visit https://groups.google.com/a/lists.mender.io/d/msgid/mender/3837b416-3c65-b551-bb58-d97d2fcf0c1b%40northern.tech.


Reply all
Reply to author
Forward
0 new messages