Hi Adrian,
On 01/04/2016 12:02, Adrian McGrath wrote:
> Hi Stefano, all
>
> I'm trying to build Swupdate for a Freescale SabreSD derived i.MX6Q
> board using Yocto Fido.
>
> I cloned the git repo and used the beagleboard files as templates for my
> board files.
>
> When invoking: $ MACHINE=imx6qswan bitbake swan-swu-image, I see:
>
> *Exception: IOError: [Errno 2] No such file or directory:
> '/xxx/yyy/zzz/yocto/build/tmp/work/imx6qswan-poky-linux-gnueabi/swan-swu-image/1.0-r1/sw-description'**
> *
> ERROR: Function failed: do_swuimage
>
> The error message clearly states that bitbake can't find my
> sw-description file.
>
> From the exchanges between yourself and Bjorn, bitbake should find my
> sw-description file as I have used the same directory/file naming
> convention as you for the BBB example provided in the git repo.
>
>
> /My question is why is my sw-description file not found? Have I
> misunderstood something?//
> //
>
> /Many thanks and kind regards
>
> Adrian
>
>
> Supporting information below:
>
> _*sources/meta-swupdate/recipes-extended/images/
swan-swu-image.bb*_
> DESCRIPTION = "Compound image for Swan "
> SECTION = ""
>
> PR = "r1"
>
> SRC_URI_imx6qswan = "file://sw-description "
This is the line identifying sw-description. Can you try also without
target extension ?
SRC_URI = "file://sw-description"
IMHO file is copied simply by bitbake "fetch" task, and later it should
be find in working directory. You can check this running
MACHINE=imx6qswan bitbake -c fetch swan-swu-image
and then check in
/xxx/yyy/zzz/yocto/build/tmp/work/imx6qswan-poky-linux-gnueabi/swan-swu-image/1.0-r1/.
You should find sw-description, if not there is something wrong with the
SRC_URI (anyway, I cannot find an evident error).
Best regards,
Stefano Babic
> inherit swupdate
>
> LICENSE = "MIT"
> LIC_FILES_CHKSUM =
> "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
>
> file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
>
> S = "${WORKDIR}"
>
> IMAGE_DEPENDS = "swan-image"
> SWUPDATE_IMAGES = " \
> swan-image \
> zImage \
> "
> SWUPDATE_IMAGES_FSTYPES[swan-image] = ".ext3"
>
> COMPATIBLE = "imx6qswan"
>
>
> _*sources/meta-swan/recipes-swan/images/
swan-image.bb*_
> LICENSE = "CLOSED"
> include recipes-fsl/images/
fsl-image-gui.bb
>
> PR = "r1"
>
> IMAGE_INSTALL += " \
> iperf \
> pciutils \
> kernel-modules "
>
> export IMAGE_BASENAME = "swan-image"
>
>
> _*_*sources/meta-swupdate/recipes-extended/images/swan-swu-image/imx6qswan/*_sw-description*_
> software =
> {
> version = "0.1.0";
>
> hardware-compatibility: [ "revA"];
>
> images: (
> {
> filename = "swan-image-imx6qswan.ext3";
> device = "/dev/mmcblk2p2";
> type = "raw";
> }
> );
> }
>
>
> _*Directory Tree: sources/meta-swupdate*_
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swupdate+u...@googlegroups.com
> <mailto:
swupdate+u...@googlegroups.com>.
> To post to this group, send email to
swup...@googlegroups.com
> <mailto:
swup...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================