6 Replies Latest reply on Jan 5, 2016 5:16 AM by FlexerUwe

    Error building image (ERROR: Function failed: do_rootfs)

    AndreiE

      Hi,

       

      Dis anybody see this error:

       

      ...

      NOTE: ###### Generate images #######

      NOTE: Executing mklibs_optimize_image ...

      DEBUG: Executing shell function mklibs_optimize_image

      DEBUG: Shell function mklibs_optimize_image finished

      NOTE: Executing prelink_image ...

      DEBUG: Executing shell function prelink_image

      Size before prelinking 52744.

      Size after prelinking 53068.

      DEBUG: Shell function prelink_image finished

      NOTE: The image creation groups are: [['${INITRAMFS_TYPES}']]

      ERROR: Error executing a python function in meta-clanton_v1.1.0-dirty/meta-iot-devkit/recipes-core/images/image-spi.bb:

       

      The stack trace of python calls that resulted in this exception/failure was:

      File: 'do_rootfs', lineno: 17, function: <module>

           0013:    # generate final images

           0014:    create_image(d)

           0015:

           0016:

      *** 0017:do_rootfs(d)

           0018:

      File: 'do_rootfs', lineno: 14, function: do_rootfs

           0010:    # generate rootfs

           0011:    create_rootfs(d)

           0012:

           0013:    # generate final images

      *** 0014:    create_image(d)

           0015:

           0016:

           0017:do_rootfs(d)

           0018:

      File: 'meta-clanton_v1.1.0-dirty/meta/lib/oe/image.py', lineno: 329, function: create_image

           0325:        execute_pre_post_process(self.d, post_process_cmds)

           0326:

           0327:

           0328:def create_image(d):

      *** 0329:    Image(d).create()

           0330:

           0331:if __name__ == "__main__":

           0332:    """

           0333:    Image creation can be called independent from bitbake environment.

      File: 'meta-clanton_v1.1.0-dirty/meta/lib/oe/image.py', lineno: 307, function: create

           0303:        execute_pre_post_process(self.d, pre_process_cmds)

           0304:

           0305:        self._remove_old_symlinks()

           0306:

      *** 0307:        image_cmd_groups = self._get_imagecmds()

           0308:

           0309:        for image_cmds in image_cmd_groups:

           0310:            # create the images in parallel

           0311:            nproc = multiprocessing.cpu_count()

      File: 'meta-clanton_v1.1.0-dirty/meta/lib/oe/image.py', lineno: 277, function: _get_imagecmds

           0273:                localdata.setVar('OVERRIDES', '%s:%s' % (type, old_overrides))

           0274:                bb.data.update_data(localdata)

           0275:                localdata.setVar('type', type)

           0276:

      *** 0277:                cmds.append("\t" + localdata.getVar("IMAGE_CMD", True))

           0278:                cmds.append(localdata.expand("\tcd ${DEPLOY_DIR_IMAGE}"))

           0279:

           0280:                if type in cimages:

           0281:                    for ctype in cimages[type]:

      Exception: TypeError: cannot concatenate 'str' and 'NoneType' objects

       

      DEBUG: Python function do_rootfs finished

      ERROR: Function failed: do_rootfs