[PATCH] [SRU][X/raspi2] Fix kernel snap creation

Paolo Pisati paolo.pisati at canonical.com
Thu Aug 2 15:23:44 UTC 2018


BugLink: http://bugs.launchpad.net/bugs/1785075

Impact:

the Xenial/raspi2 kernel fails to generate a kernel snap since the wifi fw files
are now part of linux-firmware and were removed from
raspberrypi-wireless-firmware

How test it:

git clone the Xenial tree[1], checkout the raspi2 branch and try to snap it:

$ git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial
$ cd linux
$ git checkout raspi2
linux$ snapcraft --target-arch=arm
...
Preparing to build raspiwififw
Building raspiwififw
--2018-08-02 15:04:14--
http://ppa.launchpad.net/snappy-dev/image/ubuntu/pool/main/r/raspberrypi-wireless-firmware/raspberrypi-wireless-firmware_2.0.1_armhf.deb
Resolving ppa.launchpad.net (ppa.launchpad.net)... 91.189.95.83
Connecting to ppa.launchpad.net (ppa.launchpad.net)|91.189.95.83|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 8568 (8.4K) [application/x-debian-package]
Saving to: ‘raspberrypi-wireless-firmware_2.0.1_armhf.deb’

raspberrypi-wireless-firmware_2.0.1_a
100%[=========================================================================>]
8.37K --.-KB/s in 0s

2018-08-02 15:04:14 (114 MB/s) - ‘raspberrypi-wireless-firmware_2.0.1_armhf.deb’
saved [8568/8568]

mv: cannot stat 'unpack/lib/firmware/brcm80211/brcm/*': No such file or directory
Failed to run 'install': Exit code was 1.

Apply the attached patch and redo the above steps: you will get a kernel snap
now.

Regression:

None, it actually fixes the kernel snap creation

Paolo Pisati (1):
  UBUNTU: snapcraft.yaml: wifi fw files are now part of linux-firmware

 snapcraft.yaml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

-- 
2.7.4





More information about the kernel-team mailing list