Hi Adrian,
Yocto recipe is correct. The reason is in the sw-description. I checked
with your sw-description and image is skipped as you report.
The reason is that you use "selections", and for them a suitable path in
the sw-description must be found. That means, starting from the root of
the document, a board -> release -> path, and in your sw-description the
part related to the board is missing.
I adjusted your sw-description in this way, supposing that your board's
name is "imx6fimx":
software =
{
version = "1.9.53";
imx6fimx : {
hardware-compatibility: [ "1.0", "1.1" ];
stable : {
mmcblk2p2: {
images: (
{
filename = "plugin-image-imx6fimx.ext3";
device = "/dev/mmcblk2p2";
type = "raw";
installed-directly = true;
}
);
};
mmcblk2p3: {
images: (
{
filename = "plugin-image-imx6fimx.ext3";
device = "/dev/mmcblk2p3";
type = "raw";
installed-directly = true;
}
);
};
};
}
}
With current SWUpdate you can check the correctness your SWU on the
host. I ran then:
./swupdate -v -H imx6fimx:1.0 -c -e "stable,mmcblk0p2" -i
tests/auto/boards/pc/test1/software_pc_test1.swu
And this is the output:
Swupdate v2016.10.0-rc1
Licensed under GPLv2. See source distribution for detailed copyright
notices.
Searching for custom LUA handlers :[string "require
("swupdate_handlers")"]:1: module 'swupdate_handlers' not found:
no field package.preload['swupdate_handlers']
no file '/usr/local/share/lua/5.2/swupdate_handlers.lua'
no file '/usr/local/share/lua/5.2/swupdate_handlers/init.lua'
no file '/usr/local/lib/lua/5.2/swupdate_handlers.lua'
no file '/usr/local/lib/lua/5.2/swupdate_handlers/init.lua'
no file '/usr/share/lua/5.2/swupdate_handlers.lua'
no file '/usr/share/lua/5.2/swupdate_handlers/init.lua'
no file './swupdate_handlers.lua'
no file '/usr/local/lib/lua/5.2/swupdate_handlers.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/swupdate_handlers.so'
no file '/usr/lib/lua/5.2/swupdate_handlers.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './swupdate_handlers.so'
Custom handlers not found, no error, skipping...
Running on imx6fimx Revision 1.0
Registered handlers:
archive
tar
flash
raw
rawfile
ubivol
ubipartition
lua
shellscript
preinstall
postinstall
remote
uboot
software set: stable mode: mmcblk0p2
[NOTIFY] : SWUPDATE running : [extract_sw_description] : Found file:
filename sw-description
size 527
checksum 0x889e VERIFIED
Version 1.9.53
[NOTIFY] : SWUPDATE running : [parse_hw_compatibility] : Accepted Hw
Revision : 1.0
[NOTIFY] : SWUPDATE running : [parse_hw_compatibility] : Accepted Hw
Revision : 1.1
[NOTIFY] : SWUPDATE running : [check_hw_compatibility] : Hardware
imx6fimx Revision: 1.0
[NOTIFY] : SWUPDATE running : [check_hw_compatibility] : Hardware
compatibility verified
[NOTIFY] : SWUPDATE running : [cpio_scan] : Found file:
filename core-image-full-cmdline-beaglebone.ext3
size 99340288
not required
successfully checked 'tests/auto/boards/pc/test1/software_pc_test1.swu'