Please add meta/kernel.yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Snapd will soon support to have DTBs in the kernel snap that are automatically installed on kernel refreshes. To support this, please add the following file to the pi-kernel:
This should also add "assumes: [kernel-assets]" to the meta/snap.yaml so
that the updated kernel/gadget are only used by a snap version that
understand this, see https:/
$ cat meta/kernel.yaml
assets:
pidtbs:
update: true
content:
- dtbs/
This will allow the gadget to select DTBs from the kernel. The arm64 gadget needs to be updated to have all dtb files removed. And the gadget.yaml needs to change to something like
$ head -20 meta/gadget.yaml
device-tree: bcm2709-
volumes:
pi:
schema: mbr
bootloader: u-boot
structure:
- name: ubuntu-seed
role: system-seed
filesystem: vfat
type: 0C
size: 1200M
content:
- source: $kernel:
target: /
- source: $kernel:
target: /overlays
- source: boot-assets/
target: /
- name: ubuntu-boot
role: system-boot
...
AFAICT the armhf needs to be updated differently because the layout
of the dtbs folder is different in the armhf kernel:
$ head -20 meta/gadget.yaml
volumes:
pi:
schema: mbr
bootloader: u-boot
structure:
- name: ubuntu-seed
role: system-seed
filesystem: vfat
type: 0C
size: 1200M
content:
- source: $kernel:
target: /
- source: boot-assets/
target: /
- name: ubuntu-boot
role: system-boot
If those could be provided in a snap branch that would be *amazing*
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in snapd: | |
status: | New → Confirmed |
The kernel wants to use:
```
assets:
pidtbs:
update: true
content:
- dtbs/
```
instead of the one suggested above because the pi-kernel on arm64 and armhf have different dtbs/ dir layout:
arm64: dtbs/broadcom/ *.dtb, dtbs/overlays
armhf: dtbs/*.dtb, dtbs/overlays
So the armhf has all the dtb files under dtbs/ directly and the arm64 has it under broadcom/.
The suggestion is then that the gadget maps it from here to the right places.