I am trying to build a custom ubuntu-core image for Olimex Lime2 platform board with a custom gadget snap and kernel snap(“linux-armhf” ) already available on store.
I signed the assertion and have a valid assertion model. Below is my assertion:
{
“type”: “model”,
“series”: “16”,
“model”: “olimex-a20-olinuxino-lime2”,
“architecture”: “armhf”,
“kernel”: “linux-armhf”,
“gadget”: “olimex-a20-olinuxino-lime2”,
“authority-id”: “authority-id removed”,
“brand-id”: “brand-id removed”,
“timestamp”: “2017-05-23T05:32:36+00:00”
}
I have used below command to create custom build image.
$ sudo /snap/bin/ubuntu-image -c edge --image-size 4G --extra-snaps olimex-a20-olinuxino-lime2_16.04-0.8_armhf.snap --extra-snaps linux-armhf -O olimex-a20-olinuxino-lime2.img model/Olimex-lime2.model
When above command is issued to build custom image using ubuntu-image tool then core and linux kernel Image file is fetched properly from ubuntu store.
But when tool try to use linux kernel image then it is throwing error “cannot use linux-armhf kernel”. Please find below snippet of error.
Fetching core
Fetching linux-armhf
error: cannot use kernel “linux-armhf” published by “vxj7EkYOlg15uAHRswTXIUpzWqO2sTBi” for model by "JBnNNIwM0UkIctEoX5NQZYvef4rFeUc2"
COMMAND FAILED: snap prepare-image --channel=edge --extra-snaps=olimex-a20-olinuxino-lime2_16.04-0.8_armhf.snap --extra-snaps=linux-armhf model/Olimex-lime2.model /tmp/tmpajmccdln/unpack
Any help would be greatly appreciated.