Hi,
I am trying to build kernel snap and I am getting below build error
/initrd.img.old is now a symlink to boot/initrd.img-4.4.0-1109-raspi2
I: /vmlinuz is now a symlink to boot/vmlinuz-4.4.0-1109-raspi2
I: /initrd.img is now a symlink to boot/initrd.img-4.4.0-1109-raspi2
Setting up linux-image-raspi2 (4.4.0.1109.109) …
Setting up raspberrypi-wireless-firmware (2.0.1) …
Processing triggers for linux-image-4.4.0-1109-raspi2 (4.4.0-1109.117) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.4.0-1109-raspi2
Warning: root device does not exist
Unable to abort; system will probably be broken!
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.0~rc.4ubuntu62.2) …
Unsupported platform.
dpkg: error processing package flash-kernel (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
flash-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)
Makefile:68: recipe for target ‘all’ failed
make: *** [all] Error 100
Failed to run ‘make KERNEL=linux-image-raspi2 PKGS=raspberrypi-wireless-firmware bluez-firmware PROPOSED=true -j4’ for ‘kernel’: Exited with code 2.
Verify that the part is using the correct parameters and try again.
My snapcraft.yaml is
name: pi2-kernel
version: 4.4.0-1109.117
summary: The canonical raspi2 armhf kernel
description: The Ubuntu linux-raspi2 kernel package as a snap
type: kernel
confinement: strict
parts:
kernel:
source: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-snap/+git/xenial
source-type: git
source-branch: master
plugin: make
make-parameters:
- KERNEL=linux-image-raspi2
- PKGS=raspberrypi-wireless-firmware bluez-firmware
- PROPOSED=true
build-packages:
- debootstrap
- lsb-release
Can you point what is the issue here.
Thanks
Muthiah