Reflash custom yocto build

Hi,

I managed to build a custom Yocto image. Now, under

yocto/build_bin/tmp/deploy/images/swi-mdm9x15$

I have those files:

fjanicki@ubuntu:/media/fjanicki/af6066b6-484f-46ad-b326-23311b05137f/yocto_clean/yocto/build_bin/tmp/deploy/images/swi-mdm9x15$ tree .
.
├── appsboot.mbn
├── appsboot.raw
├── boot_wp85.cwe
├── boot-yocto-mdm9x15-20180508202625.2k.img -> boot-yocto-mdm9x15-20180508202625.2k.initramfs.img
├── boot-yocto-mdm9x15-20180508202625.2k.initramfs.img
├── boot-yocto-mdm9x15-20180508202625.4k.img -> boot-yocto-mdm9x15-20180508202625.4k.initramfs.img
├── boot-yocto-mdm9x15-20180508202625.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509013611.2k.img -> boot-yocto-mdm9x15-20180509013611.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509013611.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509013611.4k.img -> boot-yocto-mdm9x15-20180509013611.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509013611.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509014102.2k.img -> boot-yocto-mdm9x15-20180509014102.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509014102.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509014102.4k.img -> boot-yocto-mdm9x15-20180509014102.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509014102.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509210425.2k.img -> boot-yocto-mdm9x15-20180509210425.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509210425.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509210425.4k.img -> boot-yocto-mdm9x15-20180509210425.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509210425.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509210748.2k.img -> boot-yocto-mdm9x15-20180509210748.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509210748.2k.initramfs.img
├── boot-yocto-mdm9x15-20180509210748.4k.img -> boot-yocto-mdm9x15-20180509210748.4k.initramfs.img
├── boot-yocto-mdm9x15-20180509210748.4k.initramfs.img
├── boot-yocto-mdm9x15.2k.img -> boot-yocto-mdm9x15-20180509210748.2k.img
├── boot-yocto-mdm9x15.2k.initramfs.img -> boot-yocto-mdm9x15-20180509210748.2k.initramfs.img
├── boot-yocto-mdm9x15.4k.img -> boot-yocto-mdm9x15-20180509210748.4k.img
├── boot-yocto-mdm9x15.4k.initramfs.img -> boot-yocto-mdm9x15-20180509210748.4k.initramfs.img
├── boot-yocto-mdm9x15.img -> boot-yocto-mdm9x15.4k.img
├── boot-yocto_wp85.cwe
├── kernel -> boot-yocto-mdm9x15.img
├── mdm9x15-image-initramfs-swi-mdm9x15-20180508202625.rootfs.cpio.gz
├── mdm9x15-image-initramfs-swi-mdm9x15-20180508202625.rootfs.manifest
├── mdm9x15-image-initramfs-swi-mdm9x15-20180508202625.rootfs.tar.bz2
├── mdm9x15-image-initramfs-swi-mdm9x15.cpio.gz -> mdm9x15-image-initramfs-swi-mdm9x15-20180508202625.rootfs.cpio.gz
├── mdm9x15-image-initramfs-swi-mdm9x15.manifest -> mdm9x15-image-initramfs-swi-mdm9x15-20180508202625.rootfs.manifest
├── mdm9x15-image-initramfs-swi-mdm9x15.tar.bz2 -> mdm9x15-image-initramfs-swi-mdm9x15-20180508202625.rootfs.tar.bz2
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.rootfs.4k.yaffs2
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.rootfs.manifest
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.rootfs.squashfs
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.rootfs.tar.bz2
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625.rootfs.version
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625-user1.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180508202625-user1.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.4k.yaffs2
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.manifest
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.squashfs
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.tar.bz2
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.version
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.yaffs2 -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.4k.yaffs2
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611-user1.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-20180509013611-user1.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15.2k.default -> mdm9x15-image-minimal-swi-mdm9x15.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15.2k.ubi -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15.4k.default -> mdm9x15-image-minimal-swi-mdm9x15.4k.yaffs2
├── mdm9x15-image-minimal-swi-mdm9x15.4k.ubi -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15.4k.yaffs2 -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.4k.yaffs2
├── mdm9x15-image-minimal-swi-mdm9x15.manifest -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.manifest
├── mdm9x15-image-minimal-swi-mdm9x15.squashfs -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.squashfs
├── mdm9x15-image-minimal-swi-mdm9x15.tar.bz2 -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.tar.bz2
├── mdm9x15-image-minimal-swi-mdm9x15.ubi -> mdm9x15-image-minimal-swi-mdm9x15.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-user1.2k.ubi -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611-user1.2k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15-user1.4k.ubi -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611-user1.4k.ubi
├── mdm9x15-image-minimal-swi-mdm9x15.version -> mdm9x15-image-minimal-swi-mdm9x15-20180509013611.rootfs.version
├── modules–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.tgz
├── modules-swi-mdm9x15.tgz -> modules–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.tgz
├── README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
├── rootfs -> mdm9x15-image-minimal-swi-mdm9x15.2k.default
├── user1-single-part-ubifs-empty_wp85.cwe
├── yocto_wp85.cwe
├── zImage -> zImage–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.bin
├── zImage–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-qcom-msm9615-20180508202625.dtb
├── zImage–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.bin
├── zImage-initramfs-3.14.29+gitAUTOINC+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.bin
├── zImage-initramfs-swi-mdm9x15.bin -> zImage-initramfs-3.14.29+gitAUTOINC+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.bin
├── zImage-qcom-msm9615.dtb -> zImage–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-qcom-msm9615-20180508202625.dtb
└── zImage-swi-mdm9x15.bin -> zImage–3.14.29+git0+961ca71325_ed9f616cc8-r0.1-swi-mdm9x15-20180508202625.bin

Still unsure what to flash and how to do it.

1 Like

You can flash yocto_wp85.cwe by fwupdate command on target.
‎https://legato.io/legato-docs/latest/toolsTarget_fwUpdate.html

Or you can use developer studio to flash it after device is connected.

You can build a spk file with it using swicwe tool i use boot-yocto_wp85.cwe and add a build of legato, not build with yocto.

including the firmware/mcu files with the legato/yocto is then deployed as a full deploy bundle.

After creating spk file we can use swiflash to flash spk image
swiflash -m -i /
Example:
swiflash -m WP76XX -i
Also we can use for flashing .cwe file

1 Like