[meta-freescale] SD card image for LS1021a
zhenhua.luo at freescale.com
zhenhua.luo at freescale.com
Wed Mar 4 01:30:51 PST 2015
Hi Tomas,
You can add the following line in local.conf to build sdcard images.
UBOOT_CONFIG = “sdcard”
Best Regards,
Zhenhua
From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-bounces at yoctoproject.org] On Behalf Of Thomas T
Sent: Monday, February 23, 2015 5:14 PM
To: meta-freescale at yoctoproject.org
Subject: [meta-freescale] SD card image for LS1021a
Hi,
I tried to add support for sd card image generation (enable IMAGE_FSTYPES="sdcard" in fsl-image-full.bb<http://fsl-image-full.bb>) to the SDK1.7.
Based on the file image_types_fsl.bbclass I want to creat a file image_types_ls1.bbclass. To make bitbake aware of the new file I assume I have to add "IMAGE_CLASSES += "image_types_ls1"" to the file fsl-default-settings.inc.
Finally I added "echo "start SD"" to the function IMAGE_CMD_sdcard in image_types_ls1.bbclass to see if the command is executed. But I ended up with lots of red lines ...
I am sure that I do not understand the bitbake internals, but also I didn't found any documentation. Do you have some hints?
Best regards
Thomas
ERROR: Error executing a python function in /home/thomas/QorIQ-SDK-V1.7-20141218-yocto/meta-fsl-networking/images/fsl-image-full.bb<http://fsl-image-full.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: '/home/thomas/QorIQ-SDK-V1.7-20141218-yocto/poky/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: '/home/thomas/QorIQ-SDK-V1.7-20141218-yocto/poky/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: '/home/thomas/QorIQ-SDK-V1.7-20141218-yocto/poky/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
ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/thomas/QorIQ-SDK-V1.7-20141218-yocto/build_ls1021atwr_release/tmp/work/ls1021atwr-fsl-linux-gnueabi/fsl-image-full/1.0-r0/temp/log.do_rootfs.6453
ERROR: Task 6 (/home/thomas/QorIQ-SDK-V1.7-20141218-yocto/meta-fsl-networking/images/fsl-image-full.bb<http://fsl-image-full.bb>, do_rootfs) failed with exit code '1'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150304/49621cc3/attachment-0001.html>
More information about the meta-freescale
mailing list